|
|
@ -84,13 +84,17 @@ export class DashboardPage extends BasePage { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async gotoSettings() { |
|
|
|
async gotoSettings() { |
|
|
|
await this.projectMenuLink.click(); |
|
|
|
await this.rootPage.getByTestId('nc-project-menu').click(); |
|
|
|
await this.getProjectMenuLink({ title: ' Team & Settings' }).click(); |
|
|
|
await this.rootPage.locator('div.nc-project-menu-item:has-text(" Team & Settings")').click(); |
|
|
|
|
|
|
|
// await this.projectMenuLink.click();
|
|
|
|
|
|
|
|
// await this.getProjectMenuLink({ title: ' Team & Settings' }).click();
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async gotoProjectSubMenu({ title }: { title: string }) { |
|
|
|
async gotoProjectSubMenu({ title }: { title: string }) { |
|
|
|
await this.projectMenuLink.click(); |
|
|
|
await this.rootPage.getByTestId('nc-project-menu').click(); |
|
|
|
await this.getProjectMenuLink({ title }).click(); |
|
|
|
await this.rootPage.locator(`div.nc-project-menu-item:has-text("${title}")`).click(); |
|
|
|
|
|
|
|
// await this.projectMenuLink.click();
|
|
|
|
|
|
|
|
// await this.getProjectMenuLink({ title }).click();
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async verifyInTabBar({ title }: { title: string }) { |
|
|
|
async verifyInTabBar({ title }: { title: string }) { |
|
|
@ -162,7 +166,8 @@ export class DashboardPage extends BasePage { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async signOut() { |
|
|
|
async signOut() { |
|
|
|
await this.projectMenuLink.click(); |
|
|
|
await this.rootPage.getByTestId('nc-project-menu').click(); |
|
|
|
|
|
|
|
// await this.projectMenuLink.click();
|
|
|
|
const projMenu = this.rootPage.locator('.nc-dropdown-project-menu'); |
|
|
|
const projMenu = this.rootPage.locator('.nc-dropdown-project-menu'); |
|
|
|
await projMenu.locator('[data-menu-id="account"]:visible').click(); |
|
|
|
await projMenu.locator('[data-menu-id="account"]:visible').click(); |
|
|
|
await this.rootPage.locator('div.nc-project-menu-item:has-text("Sign Out"):visible').click(); |
|
|
|
await this.rootPage.locator('div.nc-project-menu-item:has-text("Sign Out"):visible').click(); |
|
|
|