π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix(pw): erd test update
Ramesh Mane25756dc3c406
diff --git a/tests/playwright/pages/Dashboard/TreeView.ts b/tests/playwright/pages/Dashboard/TreeView.tsindex 3e5af15644..bfac678e7a 100644--- a/tests/playwright/pages/Dashboard/TreeView.ts+++ b/tests/playwright/pages/Dashboard/TreeView.ts@@ -223,6 +223,9 @@ export class TreeViewPage extends BasePage {requestUrlPathToMatch: `/api/v1/db/meta/projects/`,responseJsonMatcher: json => json.title === title && json.type === 'table',});++ // After table create we navigate to that table and sidebar will be base homepage instead of baselist, so we have to wait for that+ await this.dashboard.leftSidebar.active_base.waitFor({ state: 'visible' });}async verifyTable({ title, index, exists = true }: { title: string; index?: number; exists?: boolean }) {diff --git a/tests/playwright/tests/db/features/erd.spec.ts b/tests/playwright/tests/db/features/erd.spec.tsindex 5aad65937e..1e8536d385 100644--- a/tests/playwright/tests/db/features/erd.spec.ts+++ b/tests/playwright/tests/db/features/erd.spec.ts@@ -54,7 +54,7 @@ test.describe('Erd', () => {};const openErdOfATable = async (tableName: string) => {- await dashboard.treeView.openTable({ title: tableName });+ await dashboard.treeView.openTable({ title: tableName, baseTitle: context.base.title });await dashboard.grid.topbar.openDetailedTab();await dashboard.details.clickRelationsTab();};@@ -279,8 +279,10 @@ test.describe('Erd', () => {// Create table and verify ERDawait dashboard.treeView.createTable({ title: 'Test', baseTitle: context.base.title });+// Verify in Settings ERD and table ERD- await dashboard.treeView.openProject({ title: context.base.title, context });+ await dashboard.sidebar.baseNode.verifyActiveProject({ baseTitle: context.base.title, open: true });+await openProjectErd();await dashboard.details.relations.verifyNode({tableName: `Test`,