mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
555 B
22 lines
555 B
import { Page } from '@playwright/test'; |
|
import BasePage from '../Base'; |
|
|
|
export class AccountPage extends BasePage { |
|
constructor(page: Page) { |
|
super(page); |
|
} |
|
|
|
get() { |
|
return this.rootPage.locator('body'); |
|
} |
|
|
|
async openAppMenu() { |
|
await this.rootPage.locator('.nc-menu-accounts').click(); |
|
} |
|
|
|
async signOut() { |
|
await this.openAppMenu(); |
|
await this.rootPage.locator('div.nc-project-menu-item:has-text("Sign Out"):visible').click(); |
|
await this.rootPage.locator('[data-testid="nc-form-signin"]:visible').waitFor(); |
|
} |
|
}
|
|
|