diff --git a/tests/playwright/pages/Dashboard/Grid/AggregationBar.ts b/tests/playwright/pages/Dashboard/Grid/AggregationBar.ts index 231dee6e84..c3253e624c 100644 --- a/tests/playwright/pages/Dashboard/Grid/AggregationBar.ts +++ b/tests/playwright/pages/Dashboard/Grid/AggregationBar.ts @@ -27,13 +27,17 @@ export class AggregaionBarPage extends BasePage { const overlay = this.rootPage.locator(`.nc-aggregation-${column_name}-overlay`); - const clickAggregation = (agg: string) => { - return overlay.getByTestId(`nc-aggregation-${agg}`).click(); + const clickAggregation = async (agg: string) => { + const clickElem = overlay.getByTestId(`nc-aggregation-${agg}`); + + await clickElem.scrollIntoViewIfNeeded(); + + return clickElem.click(); }; if (!skipNetworkValidation) { await this.waitForResponse({ - uiAction: () => clickAggregation(aggregation), + uiAction: async () => await clickAggregation(aggregation), httpMethodsToMatch: ['GET'], requestUrlPathToMatch: '/api/v2/tables/', }); diff --git a/tests/playwright/tests/db/features/column-aggregation.spec.ts b/tests/playwright/tests/db/features/column-aggregation.spec.ts index de16f2a790..d4f471a38b 100644 --- a/tests/playwright/tests/db/features/column-aggregation.spec.ts +++ b/tests/playwright/tests/db/features/column-aggregation.spec.ts @@ -742,6 +742,7 @@ test.describe('Field Aggregation', () => { await aggregationBar.updateAggregation({ column_name: colName, aggregation: y[0], + skipNetworkValidation: true, }); await aggregationBar.verifyAggregation({ @@ -768,6 +769,7 @@ test.describe('Field Aggregation', () => { await sharedPage.grid.aggregationBar.updateAggregation({ column_name: colName, aggregation: y[0], + skipNetworkValidation: true, }); await sharedPage.grid.aggregationBar.verifyAggregation({ @@ -988,6 +990,7 @@ test.describe('Column Aggregations - Links', () => { await aggregationBar.updateAggregation({ column_name: colName, aggregation: y[0], + skipNetworkValidation: true, }); await aggregationBar.verifyAggregation({