Browse Source

fix(nc-gui): render virtual columns

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

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

@ -23,6 +23,8 @@ export class AggregaionBarPage extends BasePage {
aggregation: string; aggregation: string;
skipNetworkValidation?: boolean; skipNetworkValidation?: boolean;
}) { }) {
await this.parent.renderColumn(column_name);
await this.rootPage.getByTestId(`nc-aggregation-column-${column_name}`).click(); await this.rootPage.getByTestId(`nc-aggregation-column-${column_name}`).click();
const overlay = this.rootPage.locator(`.nc-aggregation-${column_name}-overlay`); const overlay = this.rootPage.locator(`.nc-aggregation-${column_name}-overlay`);

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

@ -686,6 +686,8 @@ test.describe('Field Aggregation', () => {
option: users[0], option: users[0],
multiSelect: false, multiSelect: false,
}); });
await page.reload();
}); });
test.afterEach(async () => { test.afterEach(async () => {
@ -693,8 +695,6 @@ test.describe('Field Aggregation', () => {
}); });
test('Aggregation Grid Test', async ({ page }) => { test('Aggregation Grid Test', async ({ page }) => {
// Write your test here
for (const x of Object.entries(verificationData)) { for (const x of Object.entries(verificationData)) {
const colName = x[0]; const colName = x[0];

Loading…
Cancel
Save