Browse Source

fix: increase test timeout

nc-agg/tests
DarkPhoenix2704 5 months ago
parent
commit
f0da6040af
  1. 2
      tests/playwright/pages/Dashboard/Grid/AggregationBar.ts
  2. 18
      tests/playwright/tests/db/features/column-aggregation.spec.ts

2
tests/playwright/pages/Dashboard/Grid/AggregationBar.ts

@ -42,7 +42,7 @@ export class AggregaionBarPage extends BasePage {
}); });
} else { } else {
await clickAggregation(aggregation); await clickAggregation(aggregation);
await this.rootPage.waitForTimeout(200); await this.rootPage.waitForTimeout(500);
} }
} }

18
tests/playwright/tests/db/features/column-aggregation.spec.ts

@ -609,7 +609,7 @@ test.describe('Field Aggregation', () => {
multiSelect: false, multiSelect: false,
}); });
await page.reload(); await page.reload({ waitUntil: 'networkidle' });
for (const x of Object.entries(verificationStringData)) { for (const x of Object.entries(verificationStringData)) {
const colName = x[0]; const colName = x[0];
@ -635,8 +635,6 @@ test.describe('Field Aggregation', () => {
}, },
]); ]);
await page.reload();
await dashboard.grid.toolbar.clickFilter(); await dashboard.grid.toolbar.clickFilter();
await dashboard.grid.toolbar.filter.add({ await dashboard.grid.toolbar.filter.add({
@ -645,9 +643,9 @@ test.describe('Field Aggregation', () => {
value: 'Sample', 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)) { for (const x of Object.entries(verificationStringDataAfterFilter)) {
const colName = x[0]; const colName = x[0];
@ -702,9 +700,9 @@ test.describe('Field Aggregation', () => {
value: 'Sample', 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)) { for (const x of Object.entries(verificationNUmericalDataAfterFilter)) {
const colName = x[0]; const colName = x[0];
@ -751,8 +749,6 @@ test.describe('Field Aggregation', () => {
}, },
]); ]);
await page.reload();
await dashboard.grid.toolbar.clickFilter(); await dashboard.grid.toolbar.clickFilter();
await dashboard.grid.toolbar.filter.add({ await dashboard.grid.toolbar.filter.add({
@ -761,9 +757,9 @@ test.describe('Field Aggregation', () => {
value: 'Sample', 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)) { for (const x of Object.entries(verificationDateTimeDataAfterFilter)) {
const colName = x[0]; const colName = x[0];

Loading…
Cancel
Save