From 13819ecc49443f284529361cafabde9f21a59f44 Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Sun, 30 Jun 2024 09:45:44 +0000 Subject: [PATCH] fix(nc-gui): render virtual columns --- tests/playwright/pages/Dashboard/Grid/AggregationBar.ts | 2 ++ tests/playwright/tests/db/features/column-aggregation.spec.ts | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/playwright/pages/Dashboard/Grid/AggregationBar.ts b/tests/playwright/pages/Dashboard/Grid/AggregationBar.ts index 32271ffe1a..d42f1acbb3 100644 --- a/tests/playwright/pages/Dashboard/Grid/AggregationBar.ts +++ b/tests/playwright/pages/Dashboard/Grid/AggregationBar.ts @@ -23,6 +23,8 @@ export class AggregaionBarPage extends BasePage { aggregation: string; skipNetworkValidation?: boolean; }) { + await this.parent.renderColumn(column_name); + await this.rootPage.getByTestId(`nc-aggregation-column-${column_name}`).click(); const overlay = this.rootPage.locator(`.nc-aggregation-${column_name}-overlay`); diff --git a/tests/playwright/tests/db/features/column-aggregation.spec.ts b/tests/playwright/tests/db/features/column-aggregation.spec.ts index d4f471a38b..41473da1f3 100644 --- a/tests/playwright/tests/db/features/column-aggregation.spec.ts +++ b/tests/playwright/tests/db/features/column-aggregation.spec.ts @@ -686,6 +686,8 @@ test.describe('Field Aggregation', () => { option: users[0], multiSelect: false, }); + + await page.reload(); }); test.afterEach(async () => { @@ -693,8 +695,6 @@ test.describe('Field Aggregation', () => { }); test('Aggregation Grid Test', async ({ page }) => { - // Write your test here - for (const x of Object.entries(verificationData)) { const colName = x[0];