π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
test: timezone
Raju Udava507dc90b59d1
diff --git a/tests/playwright/pages/Dashboard/TreeView.ts b/tests/playwright/pages/Dashboard/TreeView.tsindex 76d9b27e79..c5629de612 100644--- a/tests/playwright/pages/Dashboard/TreeView.ts+++ b/tests/playwright/pages/Dashboard/TreeView.ts@@ -115,12 +115,14 @@ export class TreeViewPage extends BasePage {networkResponse = false,mobileMode = false,baseTitle,+ sourceTitle,}: {title: string;mode?: string;networkResponse?: boolean;mobileMode?: boolean;baseTitle?: string;+ sourceTitle?: string;}) {await this.dashboard.leftSidebar.verifyBaseListOpen(!!baseTitle);@@ -128,6 +130,10 @@ export class TreeViewPage extends BasePage {await this.dashboard.sidebar.baseNode.verifyActiveProject({ baseTitle, open: true });}+ if (sourceTitle) {+ await this.dashboard.treeView.openSource({ title: sourceTitle });+ }+if (mobileMode) {await this.rootPage.locator('.h-full > div > .nc-sidebar-left-toggle-icon').click();}@@ -480,4 +486,8 @@ export class TreeViewPage extends BasePage {await contextMenu.waitFor();await contextMenu.locator(`.ant-dropdown-menu-item:has-text("Settings")`).click();}++ async openSource(param: { title: string }) {+ await this.get().getByTestId(`nc-sidebar-base-${param.title}`).click();+ }}diff --git a/tests/playwright/pages/Dashboard/common/LeftSidebar/index.ts b/tests/playwright/pages/Dashboard/common/LeftSidebar/index.tsindex 133792e556..ef91056ef8 100644--- a/tests/playwright/pages/Dashboard/common/LeftSidebar/index.ts+++ b/tests/playwright/pages/Dashboard/common/LeftSidebar/index.ts@@ -53,7 +53,8 @@ export class LeftSidebarPage extends BasePage {}async isNewSidebar() {- return await this.miniSidebar.count();+ // will be new sidebar always from now+ return 1;}async verifyBaseListOpen(open: boolean = false) {diff --git a/tests/playwright/tests/db/features/timezone.spec.ts b/tests/playwright/tests/db/features/timezone.spec.tsindex c9939d821b..fe10156493 100644--- a/tests/playwright/tests/db/features/timezone.spec.ts+++ b/tests/playwright/tests/db/features/timezone.spec.ts@@ -547,8 +547,11 @@ 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', baseTitle: `datetimetable01${counter}` });+ await dashboard.treeView.openTable({+ title: 'MyTable',+ baseTitle: `pgExtREST${context.workerId}`,+ sourceTitle: `datetimetable01${counter}`,+ });// Create formula column (dummy)api = new Api({@@ -708,8 +711,11 @@ test.describe.serial('Timezone- ExtDB : DateTime column, Browser Timezone same a// get timezone offsetconst formattedOffset = getBrowserTimezoneOffset();- await dashboard.treeView.openBase({ title: `datetimetable01${counter}` });- await dashboard.treeView.openTable({ title: 'MyTable', baseTitle: `datetimetable01${counter}` });+ await dashboard.treeView.openTable({+ title: 'MyTable',+ baseTitle: `pgExtREST${context.workerId}`,+ sourceTitle: `datetimetable01${counter}`,+ });if (isSqlite(context)) {// For SQLite, we assume that the browser timezone is the same as the server timezone@@ -876,8 +882,13 @@ 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', baseTitle: 'datetimetable02' });+ // await dashboard.treeView.openBase({ title: 'datetimetable02' });+ await dashboard.treeView.openTable({+ title: 'MyTable',+ baseTitle: `pgExtREST${context.workerId}`,+ sourceTitle: `datetimetable02`,+ });+// Insert new rowawait dashboard.grid.cell.dateTime.setDateTime({index: 2,@@ -1028,8 +1039,12 @@ test.describe.serial('Timezone- ExtDB (MySQL Only) : DB Timezone configured as Hawait dashboard.rootPage.reload();await dashboard.rootPage.waitForTimeout(2000);- await dashboard.treeView.openBase({ title: 'datetimetable03' });- await dashboard.treeView.openTable({ title: 'MyTable', baseTitle: 'datetimetable03' });+ // await dashboard.treeView.openBase({ title: 'datetimetable03' });+ await dashboard.treeView.openTable({+ title: 'MyTable',+ baseTitle: `pgExtREST${context.workerId}`,+ sourceTitle: `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)