mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user