diff --git a/tests/playwright/pages/Dashboard/Grid/AggregationBar.ts b/tests/playwright/pages/Dashboard/Grid/AggregationBar.ts index dec3fdc1ea..d42f1acbb3 100644 --- a/tests/playwright/pages/Dashboard/Grid/AggregationBar.ts +++ b/tests/playwright/pages/Dashboard/Grid/AggregationBar.ts @@ -42,7 +42,7 @@ export class AggregaionBarPage extends BasePage { }); } else { await clickAggregation(aggregation); - await this.rootPage.waitForTimeout(200); + await this.rootPage.waitForTimeout(500); } } diff --git a/tests/playwright/tests/db/features/column-aggregation.spec.ts b/tests/playwright/tests/db/features/column-aggregation.spec.ts index 4405872b98..6900fda461 100644 --- a/tests/playwright/tests/db/features/column-aggregation.spec.ts +++ b/tests/playwright/tests/db/features/column-aggregation.spec.ts @@ -609,7 +609,7 @@ test.describe('Field Aggregation', () => { multiSelect: false, }); - await page.reload(); + await page.reload({ waitUntil: 'networkidle' }); for (const x of Object.entries(verificationStringData)) { const colName = x[0]; @@ -635,8 +635,6 @@ test.describe('Field Aggregation', () => { }, ]); - await page.reload(); - await dashboard.grid.toolbar.clickFilter(); await dashboard.grid.toolbar.filter.add({ @@ -645,9 +643,9 @@ test.describe('Field Aggregation', () => { value: 'Sample', }); - await page.waitForTimeout(4000); + await page.waitForTimeout(2000); - await dashboard.grid.toolbar.clickFilter(); + await page.reload({ waitUntil: 'networkidle' }); for (const x of Object.entries(verificationStringDataAfterFilter)) { const colName = x[0]; @@ -702,9 +700,9 @@ test.describe('Field Aggregation', () => { value: 'Sample', }); - await page.waitForTimeout(1000); + await page.waitForTimeout(2000); - await page.reload(); + await page.reload({ waitUntil: 'networkidle' }); for (const x of Object.entries(verificationNUmericalDataAfterFilter)) { const colName = x[0]; @@ -751,8 +749,6 @@ test.describe('Field Aggregation', () => { }, ]); - await page.reload(); - await dashboard.grid.toolbar.clickFilter(); await dashboard.grid.toolbar.filter.add({ @@ -761,9 +757,9 @@ test.describe('Field Aggregation', () => { value: 'Sample', }); - await page.waitForTimeout(4000); + await page.waitForTimeout(2000); - await dashboard.grid.toolbar.clickFilter(); + await page.reload({ waitUntil: 'networkidle' }); for (const x of Object.entries(verificationDateTimeDataAfterFilter)) { const colName = x[0];