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({ await dashboard.grid.toolbar.sort.addSort({
columnTitle: "Col1", columnTitle: "Col1",
isAscending: false, isAscending: false,
isLocallySaved: true isLocallySaved: false
}); });
await dashboard.grid.toolbar.filter.addNew({ await dashboard.grid.toolbar.filter.addNew({
columnTitle: "Col1", columnTitle: "Col1",
opType: ">=", opType: ">=",
value: "5", value: "5",
isLocallySaved: true isLocallySaved: false
}); });
await dashboard.grid.verifyRowCount({ count: 5 }); 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"); await validateFirstRow("Afghanistan");
// Sort column // 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"); await validateFirstRow("Zambia");
// reset sort // reset sort
@ -61,7 +61,7 @@ test.describe("Toolbar operations (GRID)", () => {
columnTitle: "Country", columnTitle: "Country",
value: "India", value: "India",
opType: "is equal", opType: "is equal",
isLocallySaved: true isLocallySaved: false
}); });
await validateFirstRow("India"); await validateFirstRow("India");

Loading…
Cancel
Save