diff --git a/e2e/app.e2e-spec.ts b/e2e/app.e2e-spec.ts index 4fbc0cf3..5946e71e 100644 --- a/e2e/app.e2e-spec.ts +++ b/e2e/app.e2e-spec.ts @@ -1,10 +1,10 @@ -import { AppPage } from './app.po'; +import { Fuse2Page } from './app.po'; -describe('angular5 App', () => { - let page: AppPage; +describe('Fuse2 App', () => { + let page: Fuse2Page; beforeEach(() => { - page = new AppPage(); + page = new Fuse2Page(); }); it('should display welcome message', () => { diff --git a/e2e/app.po.ts b/e2e/app.po.ts index 9b2eef22..8327f3c3 100644 --- a/e2e/app.po.ts +++ b/e2e/app.po.ts @@ -1,14 +1,11 @@ -import { AppPage } from './app.po'; +import { browser, by, element } from 'protractor'; -describe('Fuse App', () => { - let page: AppPage; +export class Fuse2Page { + navigateTo() { + return browser.get('/'); + } - beforeEach(() => { - page = new AppPage(); - }); - - it('should display welcome message', () => { - page.navigateTo(); - expect(page.getParagraphText()).toEqual('Welcome to app!'); - }); -}); + getParagraphText() { + return element(by.css('app-root h1')).getText(); + } +} diff --git a/src/app/core/directives/mat-sidenav-helper/mat-sidenav-helper.directive.ts b/src/app/core/directives/fuse-mat-sidenav-helper/fuse-mat-sidenav-helper.directive.ts similarity index 96% rename from src/app/core/directives/mat-sidenav-helper/mat-sidenav-helper.directive.ts rename to src/app/core/directives/fuse-mat-sidenav-helper/fuse-mat-sidenav-helper.directive.ts index 55161597..334d66bc 100644 --- a/src/app/core/directives/mat-sidenav-helper/mat-sidenav-helper.directive.ts +++ b/src/app/core/directives/fuse-mat-sidenav-helper/fuse-mat-sidenav-helper.directive.ts @@ -1,9 +1,9 @@ import { Directive, Input, OnInit, HostListener, OnDestroy, HostBinding } from '@angular/core'; import { MatSidenav } from '@angular/material'; -import { FuseMatSidenavHelperService } from 'app/core/directives/mat-sidenav-helper/mat-sidenav-helper.service'; -import { FuseMatchMedia } from '../../services/match-media.service'; import { ObservableMedia } from '@angular/flex-layout'; import { Subscription } from 'rxjs/Subscription'; +import { FuseMatchMedia } from '../../services/match-media.service'; +import { FuseMatSidenavHelperService } from './fuse-mat-sidenav-helper.service'; @Directive({ selector: '[fuseMatSidenavHelper]' diff --git a/src/app/core/directives/mat-sidenav-helper/mat-sidenav-helper.service.ts b/src/app/core/directives/fuse-mat-sidenav-helper/fuse-mat-sidenav-helper.service.ts similarity index 100% rename from src/app/core/directives/mat-sidenav-helper/mat-sidenav-helper.service.ts rename to src/app/core/directives/fuse-mat-sidenav-helper/fuse-mat-sidenav-helper.service.ts diff --git a/src/app/core/modules/shared.module.ts b/src/app/core/modules/shared.module.ts index bc7edd29..d08dba5a 100644 --- a/src/app/core/modules/shared.module.ts +++ b/src/app/core/modules/shared.module.ts @@ -8,13 +8,13 @@ import { ColorPickerModule } from 'ngx-color-picker'; import { NgxDnDModule } from '@withinpixels/ngx-dnd'; import { NgxDatatableModule } from '@swimlane/ngx-datatable'; -import { FuseMatSidenavHelperDirective, FuseMatSidenavTogglerDirective } from '../directives/mat-sidenav-helper/mat-sidenav-helper.directive'; +import { FuseMatSidenavHelperDirective, FuseMatSidenavTogglerDirective } from '../directives/fuse-mat-sidenav-helper/fuse-mat-sidenav-helper.directive'; +import { FuseMatSidenavHelperService } from '../directives/fuse-mat-sidenav-helper/fuse-mat-sidenav-helper.service'; import { FusePipesModule } from '../pipes/pipes.module'; import { FuseConfirmDialogComponent } from '../components/confirm-dialog/confirm-dialog.component'; import { FuseCountdownComponent } from '../components/countdown/countdown.component'; import { FuseMatchMedia } from '../services/match-media.service'; import { FuseNavbarVerticalService } from '../../main/navbar/vertical/navbar-vertical.service'; -import { FuseMatSidenavHelperService } from '../directives/mat-sidenav-helper/mat-sidenav-helper.service'; import { FuseHljsComponent } from '../components/hljs/hljs.component'; import { FusePerfectScrollbarDirective } from '../directives/fuse-perfect-scrollbar/fuse-perfect-scrollbar.directive'; import { FuseIfOnDomDirective } from '../directives/fuse-if-on-dom/fuse-if-on-dom.directive'; diff --git a/src/app/main/content/apps/chat/sidenavs/left/chats/chats.component.ts b/src/app/main/content/apps/chat/sidenavs/left/chats/chats.component.ts index 9a5e0af8..f5520c22 100644 --- a/src/app/main/content/apps/chat/sidenavs/left/chats/chats.component.ts +++ b/src/app/main/content/apps/chat/sidenavs/left/chats/chats.component.ts @@ -1,8 +1,8 @@ import { Component, OnInit } from '@angular/core'; import { ChatService } from '../../../chat.service'; -import { FuseMatSidenavHelperService } from '../../../../../../../core/directives/mat-sidenav-helper/mat-sidenav-helper.service'; import { ObservableMedia } from '@angular/flex-layout'; import { fuseAnimations } from '../../../../../../../core/animations'; +import { FuseMatSidenavHelperService } from '../../../../../../../core/directives/fuse-mat-sidenav-helper/fuse-mat-sidenav-helper.service'; @Component({ selector : 'fuse-chat-chats-sidenav',