Browse Source

test: select row function fix

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/5816/head
Raju Udava 2 years ago
parent
commit
2e06521a69
  1. 5
      tests/playwright/pages/Dashboard/Grid/index.ts

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

@ -183,8 +183,9 @@ export class GridPage extends BasePage {
} }
async selectRow(index: number) { async selectRow(index: number) {
await this.get().locator(`td[data-testid="cell-Id-${index}"]`).locator('span.ant-checkbox').click(); const cell: Locator = await this.get().locator(`td[data-testid="cell-Id-${index}"]`);
await this.rootPage.waitForTimeout(300); await cell.hover();
await cell.locator('input[type="checkbox"]').check({ force: true });
} }
async selectAll() { async selectAll() {

Loading…
Cancel
Save