Browse Source

fix(nc-gui): Playwright issues

pull/6624/head
Muhammed Mustafa 1 year ago
parent
commit
ce24a7d200
  1. 2
      tests/playwright/pages/Dashboard/Grid/Column/index.ts
  2. 2
      tests/playwright/pages/Dashboard/Grid/Group.ts
  3. 2
      tests/playwright/pages/Dashboard/Grid/index.ts

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

@ -260,7 +260,7 @@ export class ColumnPageObject extends BasePage {
await this.rootPage.locator('li[role="menuitem"]:has-text("Delete"):visible').click();
// pressing on delete column button
await this.rootPage.locator('.ant-modal.active button:has-text("Delete Column")').click();
await this.rootPage.locator('.ant-modal.active button:has-text("Delete Field")').click();
// wait till modal is closed
await this.rootPage.locator('.ant-modal.active').waitFor({ state: 'hidden' });

2
tests/playwright/pages/Dashboard/Grid/Group.ts

@ -122,7 +122,7 @@ export class GroupPageObject extends BasePage {
});
// Click text=Delete Row
await this.rootPage.locator('.ant-dropdown-menu-item:has-text("Delete row")').click();
await this.rootPage.locator('.ant-dropdown-menu-item:has-text("Delete record")').click();
// todo: improve selector
await this.rootPage
.locator('span.ant-dropdown-menu-title-content > nc-base-menu-item')

2
tests/playwright/pages/Dashboard/Grid/index.ts

@ -199,7 +199,7 @@ export class GridPage extends BasePage {
});
// Click text=Delete Row
await this.rootPage.locator('.ant-dropdown-menu-item:has-text("Delete row")').click();
await this.rootPage.locator('.ant-dropdown-menu-item:has-text("Delete record")').click();
// todo: improve selector
await this.rootPage

Loading…
Cancel
Save