[ACA-20] Sidenav - navigate to first child route when expanded for the first time (#798)

* bradcrumb root title

* use correct i18n string reference

* expansion panel state directive

* takeUntil

* fix text

* parameter type

* fix title error message reference

* fix My Libraries test and add separate one for Favourite Libraries
This commit is contained in:
Cilibiu Bogdan
2018-11-14 12:09:24 +02:00
committed by GitHub
parent b592ea8635
commit 031198e784
11 changed files with 240 additions and 11 deletions

View File

@@ -24,6 +24,7 @@
*/
import { ElementFinder, ElementArrayFinder, by, element } from 'protractor';
import { SIDEBAR_LABELS } from '../../configs';
import { Menu } from '../menu/menu';
import { Component } from '../component';
import { Utils } from '../../utilities/utils';
@@ -101,6 +102,10 @@ export class Sidenav extends Component {
}
}
async isFileLibrariesMenuExpanded() {
return await element(by.cssContainingText('.mat-expanded', SIDEBAR_LABELS.FILE_LIBRARIES)).isPresent();
}
async expandMenu(label: string) {
try{
@@ -117,4 +122,5 @@ export class Sidenav extends Component {
console.log('---- sidebar navigation catch expandMenu: ', e);
}
}
}