Browse Source

qrcode: playwright tests (cleanup)

pull/4142/head
Daniel Spaude 2 years ago
parent
commit
324c6ad3f7
No known key found for this signature in database
GPG Key ID: 654A3D1FA4F35FFE
  1. 1
      tests/playwright/pages/Dashboard/Grid/Column/index.ts
  2. 25
      tests/playwright/pages/Dashboard/QrCodeOverlay/index.ts

1
tests/playwright/pages/Dashboard/Grid/Column/index.ts

@ -74,7 +74,6 @@ export class ColumnPageObject extends BasePage {
break;
case 'QrCode':
await this.get().locator('.ant-select-single').nth(1).click();
// await this.get().locator('.ant-select-item').fill(qrCodeValueColumnTitle);
await this.rootPage
.locator(`.ant-select-item`, {
hasText: qrCodeValueColumnTitle,

25
tests/playwright/pages/Dashboard/QrCodeOverlay/index.ts

@ -21,32 +21,7 @@ export class QrCodeOverlay extends BasePage {
await expect(foundQrValueLabelText).toContain(expectedValue);
}
// async toggle() {
// await this.rootPage.locator('[data-testid="nc-project-menu"]').click();
// }
async clickCloseButton() {
// const closeButton = await this.get().locator('.ant-modal-close-x').click();
await this.get().locator('.ant-modal-close-x').click();
// const closeButton = await this.rootPage.locator('[data-testid="nc-qr-code-large"]');
}
// async click({ menu, subMenu }: { menu: string; subMenu: string }) {
// const pMenu = await this.rootPage.locator(`.nc-dropdown-project-menu:visible`);
// await pMenu.locator(`div.nc-project-menu-item:has-text("${menu}"):visible`).click();
// await this.rootPage.waitForTimeout(2000);
// if (subMenu) {
// await this.rootPage.locator(`div.nc-project-menu-item:has-text("${subMenu}"):visible`).click();
// await this.rootPage.waitForTimeout(1000);
// }
// }
// async clickPreview(role: string) {
// await this.click({
// menu: 'Preview as',
// subMenu: role,
// });
// await this.rootPage.waitForTimeout(2500);
// }
}

Loading…
Cancel
Save