|
|
@ -29,6 +29,15 @@ export class AccountTokenPage extends BasePage { |
|
|
|
await this.verifyToast({ message: 'Token generated successfully' }); |
|
|
|
await this.verifyToast({ message: 'Token generated successfully' }); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getTokenRow({ idx = 0 }) { |
|
|
|
|
|
|
|
return this.get().locator(`tr:nth-child(${idx})`); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async toggleVisibility({ idx = 0 }) { |
|
|
|
|
|
|
|
const row = this.getTokenRow({ idx }); |
|
|
|
|
|
|
|
await row.locator('.nc-toggle-token-visibility').click(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async openRowActionMenu({ description }: { description: string }) { |
|
|
|
async openRowActionMenu({ description }: { description: string }) { |
|
|
|
const userRow = this.get().locator(`tr:has-text("${description}")`); |
|
|
|
const userRow = this.get().locator(`tr:has-text("${description}")`); |
|
|
|
return userRow.locator(`.nc-token-menu`).click(); |
|
|
|
return userRow.locator(`.nc-token-menu`).click(); |
|
|
|