Browse Source

feat(testing): Improved flakyness

pull/3848/head
Muhammed Mustafa 2 years ago
parent
commit
f843b420e1
  1. 4
      scripts/playwright/tests/metaSync.spec.ts
  2. 4
      scripts/playwright/tests/toolbarOperations.spec.ts

4
scripts/playwright/tests/metaSync.spec.ts

@ -237,14 +237,14 @@ test.describe("Meta sync", () => {
await dashboard.grid.toolbar.sort.addSort({
columnTitle: "Col1",
isAscending: false,
isLocallySaved: true
isLocallySaved: false
});
await dashboard.grid.toolbar.filter.addNew({
columnTitle: "Col1",
opType: ">=",
value: "5",
isLocallySaved: true
isLocallySaved: false
});
await dashboard.grid.verifyRowCount({ count: 5 });

4
scripts/playwright/tests/toolbarOperations.spec.ts

@ -49,7 +49,7 @@ test.describe("Toolbar operations (GRID)", () => {
await validateFirstRow("Afghanistan");
// Sort column
await toolbar.sort.addSort({ columnTitle: "Country", isAscending: false, isLocallySaved: true });
await toolbar.sort.addSort({ columnTitle: "Country", isAscending: false, isLocallySaved: false });
await validateFirstRow("Zambia");
// reset sort
@ -61,7 +61,7 @@ test.describe("Toolbar operations (GRID)", () => {
columnTitle: "Country",
value: "India",
opType: "is equal",
isLocallySaved: true
isLocallySaved: false
});
await validateFirstRow("India");

Loading…
Cancel
Save