From f843b420e1c6de68d0316d8595069667bfb1e450 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Wed, 19 Oct 2022 17:17:36 +0530 Subject: [PATCH] feat(testing): Improved flakyness --- scripts/playwright/tests/metaSync.spec.ts | 4 ++-- scripts/playwright/tests/toolbarOperations.spec.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/playwright/tests/metaSync.spec.ts b/scripts/playwright/tests/metaSync.spec.ts index ed45b3e93c..7d8dd964eb 100644 --- a/scripts/playwright/tests/metaSync.spec.ts +++ b/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 }); diff --git a/scripts/playwright/tests/toolbarOperations.spec.ts b/scripts/playwright/tests/toolbarOperations.spec.ts index 17a62f0b00..ac5ed5715c 100644 --- a/scripts/playwright/tests/toolbarOperations.spec.ts +++ b/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");