Browse Source

fix: undo redo

pull/5537/head
Raju Udava 1 year ago
parent
commit
b6758c449f
  1. 4
      tests/playwright/pages/Dashboard/Grid/index.ts

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

@ -72,10 +72,12 @@ export class GridPage extends BasePage {
networkValidation?: boolean;
} = {}) {
const rowValue = value ?? `Row ${index}`;
// wait for render to complete before count
await this.get().locator('.nc-grid-row').nth(0).waitFor({ state: 'attached' });
const rowCount = await this.get().locator('.nc-grid-row').count();
await this.get().locator('.nc-grid-add-new-cell').click();
await expect(this.get().locator('.nc-grid-row')).toHaveCount(rowCount + 1);
await expect(await this.get().locator('.nc-grid-row')).toHaveCount(rowCount + 1);
await this._fillRow({ index, columnHeader, value: rowValue });

Loading…
Cancel
Save