Browse Source

test: fix2

pull/8192/head
Raju Udava 7 months ago
parent
commit
15f63eb1a8
  1. 4
      tests/playwright/pages/Dashboard/Grid/index.ts
  2. 2
      tests/playwright/tests/db/features/undo-redo.spec.ts

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

@ -211,10 +211,12 @@ export class GridPage extends BasePage {
return await expect(this.get().locator(`td[data-testid="cell-Title-${index}"]`)).toHaveCount(0);
}
async deleteRow(index: number, title = 'Title') {
async clickRow(index: number, title = 'Title') {
await this.get().getByTestId(`cell-${title}-${index}`).click();
await this.rootPage.waitForTimeout(300);
}
async deleteRow(index: number, title = 'Title') {
await this.get().getByTestId(`cell-${title}-${index}`).click({
button: 'right',
});

2
tests/playwright/tests/db/features/undo-redo.spec.ts

@ -144,7 +144,9 @@ test.describe('Undo Redo', () => {
await verifyRecords([555, 666]);
// Row.Delete
await grid.clickRow(10, 'Number');
await grid.deleteRow(10, 'Number');
await grid.clickRow(10, 'Number');
await grid.deleteRow(10, 'Number');
await verifyRecords([]);

Loading…
Cancel
Save