[ACS-4708] Implemented user initials (#3184)

* added user initials

* modified spec file

* changes for config files

* class name renamed

* implemented the review comments
This commit is contained in:
Yasa-Nataliya
2023-05-16 14:25:43 +05:30
committed by GitHub
parent 9603c0a36b
commit adbbc1c152
21 changed files with 735 additions and 295 deletions

View File

@@ -33,7 +33,7 @@ import { BrowserActions } from '@alfresco/adf-testing';
export class Header extends Component {
logoLink = this.byCss('.app-menu__title');
moreActions = browser.element(by.id('app.header.more'));
userMenuButton = this.byCss(`.aca-user-menu-button`);
sidenavToggle = this.byCss(`.sidenav-header-title-logo`);
userInfo = new UserInfo();
@@ -46,12 +46,12 @@ export class Header extends Component {
}
async openMoreMenu(): Promise<void> {
await BrowserActions.click(this.moreActions);
await BrowserActions.click(this.userMenuButton);
await this.menu.waitForMenuToOpen();
}
async closeMoreMenu(): Promise<void> {
await BrowserActions.click(this.moreActions);
await BrowserActions.click(this.userMenuButton);
await this.menu.waitForMenuToClose();
}