π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix(test): some flaky test issue
Ramesh Mane4c2fb45217b7
diff --git a/tests/playwright/pages/Dashboard/Grid/Column/index.ts b/tests/playwright/pages/Dashboard/Grid/Column/index.tsindex bf89c108c1..5b4e682ec8 100644--- a/tests/playwright/pages/Dashboard/Grid/Column/index.ts+++ b/tests/playwright/pages/Dashboard/Grid/Column/index.ts@@ -115,9 +115,12 @@ export class ColumnPageObject extends BasePage {await this.grid.get().locator(`th[data-title="${insertAfterColumnTitle}"] .nc-ui-dt-dropdown`).click();await this.rootPage.locator('li[role="menuitem"]:has-text("Insert right"):visible').click();} else {+ await this.grid.get().locator('.nc-column-add').waitFor({ state: 'visible' });await this.grid.get().locator('.nc-column-add').click();}+ await this.get().waitFor({ state: 'visible' });+await this.rootPage.waitForTimeout(500);await this.fillTitle({ title });await this.rootPage.waitForTimeout(500);diff --git a/tests/playwright/pages/Dashboard/TreeView.ts b/tests/playwright/pages/Dashboard/TreeView.tsindex 16f47a25f4..4d238c5a8d 100644--- a/tests/playwright/pages/Dashboard/TreeView.ts+++ b/tests/playwright/pages/Dashboard/TreeView.ts@@ -156,6 +156,8 @@ export class TreeViewPage extends BasePage {await this.get().locator(`[data-testid="nc-tbl-title-${title}"]`).click({// x:10, y:10});++ await this.rootPage.waitForLoadState('networkidle');}}diff --git a/tests/playwright/tests/db/columns/columnFormula.spec.ts b/tests/playwright/tests/db/columns/columnFormula.spec.tsindex 6838dfe12c..e17666d054 100644--- a/tests/playwright/tests/db/columns/columnFormula.spec.ts+++ b/tests/playwright/tests/db/columns/columnFormula.spec.ts@@ -1,7 +1,7 @@import { test } from '@playwright/test';import { DashboardPage } from '../../../pages/Dashboard';import setup, { NcContext, unsetup } from '../../../setup';-import { enableQuickRun, isMysql, isPg, isSqlite } from '../../../setup/db';+import { enableQuickRun, isPg } from '../../../setup/db';// Add formula to be verified here & store expected results for 5 rows// Column data from City table (Sakila DB)@@ -274,7 +274,7 @@ test.describe('Virtual Columns', () => {type: 'Formula',formula: formulaData[i].formula,});- console.log(`running test function: ${formulaData[i].formula}`);+if (formulaData[i].unSupDbType?.includes(dbType)) {// assert for message not supported or greyed out save button.await dashboard.grid.column.checkMessageAndClose({ errorMessage: new RegExp('Function .* is not available') });