import { Menu } from '../menu/menu' ; import { Component } from '../component' ; import { BrowserActions } from '@alfresco/adf-testing' ; export class UserInfo extends Component { fullName = this . byCss ( '.current-user__full-name' ) ; avatar = this . byCss ( '.current-user__avatar' ) ; menu = new Menu ( ) ; constructor ( ancestor ? ) { super ( 'aca-current-user' , ancestor ) ; } async openMenu ( ) { await BrowserActions . click ( this . avatar ) ; await this . menu . wait ( ) ; return this . menu ; } async signOut ( ) { const menu = await this . openMenu ( ) ; await menu . clickMenuItem ( 'Sign out' ) ; } }