π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix(pw): import test update
Ramesh Manef49759fccbb1
diff --git a/tests/playwright/quickTests/commonTest.ts b/tests/playwright/quickTests/commonTest.tsindex 78d82c4a9b..bb8abacc41 100644--- a/tests/playwright/quickTests/commonTest.ts+++ b/tests/playwright/quickTests/commonTest.ts@@ -61,7 +61,7 @@ const quickVerify = async ({airtableImport?: boolean;context: NcContext;}) => {- await dashboard.treeView.openTable({ title: 'Film' });+ await dashboard.treeView.openTable({ title: 'Film', baseTitle: context.base.title });// Verify tablesfor (let i = 0; i < tn.length; i++) {@@ -145,7 +145,7 @@ const quickVerify = async ({submitAnotherForm: true,});- await dashboard.treeView.openTable({ title: 'Actor' });+ await dashboard.treeView.openTable({ title: 'Actor', baseTitle: context.base.title });if (!airtableImport) {// Verify webhooks@@ -223,7 +223,7 @@ const quickVerify = async ({// Verify views// todo: Wait for 800ms, issue related to vue routerawait dashboard.rootPage.waitForTimeout(800);- await dashboard.treeView.openTable({ title: 'Producer' });+ await dashboard.treeView.openTable({ title: 'Producer', baseTitle: context.base.title });await dashboard.viewSidebar.verifyView({ index: 0, title: 'Grid view' });await dashboard.viewSidebar.verifyView({ index: 1, title: 'Grid 2' });diff --git a/tests/playwright/tests/db/features/import.spec.ts b/tests/playwright/tests/db/features/import.spec.tsindex 1b32839d51..30491d91cf 100644--- a/tests/playwright/tests/db/features/import.spec.ts+++ b/tests/playwright/tests/db/features/import.spec.ts@@ -55,7 +55,7 @@ test.describe('Import', () => {result: expected,});- await dashboard.treeView.openTable({ title: 'Sheet2' });+ await dashboard.treeView.openTable({ title: 'Sheet2', baseTitle: context.base.title });const recordCells = { number: '1', float: '1.1', text: 'abc' };diff --git a/tests/playwright/tests/db/features/timezone.spec.ts b/tests/playwright/tests/db/features/timezone.spec.tsindex 9364eb8b1d..c9939d821b 100644--- a/tests/playwright/tests/db/features/timezone.spec.ts+++ b/tests/playwright/tests/db/features/timezone.spec.ts@@ -157,7 +157,7 @@ test.describe.serial('Timezone-XCDB : Japan/Tokyo', () => {if (!isSqlite(context)) return;await dashboard.treeView.openBase({ title: `xcdb${context.workerId}` });- await dashboard.treeView.openTable({ title: 'dateTimeTable' });+ await dashboard.treeView.openTable({ title: 'dateTimeTable', baseTitle: `xcdb${context.workerId}` });// DateTime inserted using API without timezone is converted to db-timezone (server timezone in case of sqlite)// Display value is converted to Asia/Tokyo@@ -257,7 +257,7 @@ test.describe.serial('Timezone-XCDB : Asia/Hong-kong', () => {*/test('API insert, verify display value', async () => {await dashboard.treeView.openBase({ title: `xcdb${context.workerId}` });- await dashboard.treeView.openTable({ title: 'dateTimeTable' });+ await dashboard.treeView.openTable({ title: 'dateTimeTable', baseTitle: `xcdb${context.workerId}` });// DateTime inserted using API without timezone is converted to UTC// Display value is converted to Asia/Hong_Kong@@ -548,7 +548,7 @@ test.describe.serial('Timezone- ExtDB : DateTime column, Browser Timezone same a// insert a record to work with formula experiments//await dashboard.treeView.openBase({ title: `datetimetable01${counter}` });- await dashboard.treeView.openTable({ title: 'MyTable' });+ await dashboard.treeView.openTable({ title: 'MyTable', baseTitle: `datetimetable01${counter}` });// Create formula column (dummy)api = new Api({@@ -709,7 +709,7 @@ test.describe.serial('Timezone- ExtDB : DateTime column, Browser Timezone same aconst formattedOffset = getBrowserTimezoneOffset();await dashboard.treeView.openBase({ title: `datetimetable01${counter}` });- await dashboard.treeView.openTable({ title: 'MyTable' });+ await dashboard.treeView.openTable({ title: 'MyTable', baseTitle: `datetimetable01${counter}` });if (isSqlite(context)) {// For SQLite, we assume that the browser timezone is the same as the server timezone@@ -877,7 +877,7 @@ test.describe.serial('Timezone- ExtDB : DateTime column, Browser Timezone set to// insert a record to work with formula experiments//await dashboard.treeView.openBase({ title: 'datetimetable02' });- await dashboard.treeView.openTable({ title: 'MyTable' });+ await dashboard.treeView.openTable({ title: 'MyTable', baseTitle: 'datetimetable02' });// Insert new rowawait dashboard.grid.cell.dateTime.setDateTime({index: 2,@@ -1029,7 +1029,7 @@ test.describe.serial('Timezone- ExtDB (MySQL Only) : DB Timezone configured as Hawait dashboard.rootPage.waitForTimeout(2000);await dashboard.treeView.openBase({ title: 'datetimetable03' });- await dashboard.treeView.openTable({ title: 'MyTable' });+ await dashboard.treeView.openTable({ title: 'MyTable', baseTitle: 'datetimetable03' });// display value for datetime column without tz should be same as stored value// display value for datetime column with tz should be converted to browser timezone (HK in this case)