mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 13:26:57 +00:00
25 lines
527 B
TypeScript
25 lines
527 B
TypeScript
import BasePage from '../../../Base';
|
|
import { SidebarPage } from '..';
|
|
|
|
export class SidebarUserMenuObject extends BasePage {
|
|
readonly sidebar: SidebarPage;
|
|
|
|
constructor(parent: SidebarPage) {
|
|
super(parent.rootPage);
|
|
|
|
this.sidebar = parent;
|
|
}
|
|
|
|
get() {
|
|
return this.rootPage.getByTestId('nc-sidebar-userinfo');
|
|
}
|
|
|
|
async click() {
|
|
await this.rootPage.getByTestId('nc-sidebar-userinfo').click();
|
|
}
|
|
|
|
async clickLogout() {
|
|
await this.rootPage.getByTestId('nc-sidebar-user-logout').click();
|
|
}
|
|
}
|