From f49759fccbb1c94e790caf513f229f4a5d1735c0 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Sat, 16 Aug 2025 10:02:15 +0000 Subject: [PATCH] fix(pw): import test update --- tests/playwright/quickTests/commonTest.ts | 6 +++--- tests/playwright/tests/db/features/import.spec.ts | 2 +- tests/playwright/tests/db/features/timezone.spec.ts | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/playwright/quickTests/commonTest.ts b/tests/playwright/quickTests/commonTest.ts index 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 tables for (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 router await 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.ts index 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.ts index 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 a const 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 row await dashboard.grid.cell.dateTime.setDateTime({ index: 2, @@ -1029,7 +1029,7 @@ test.describe.serial('Timezone- ExtDB (MySQL Only) : DB Timezone configured as H await 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)