|
|
@ -539,6 +539,8 @@ test.describe.serial('Timezone- ExtDB : DateTime column, Browser Timezone same a |
|
|
|
let dashboard: DashboardPage; |
|
|
|
let dashboard: DashboardPage; |
|
|
|
let context: any; |
|
|
|
let context: any; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let counter = 0; |
|
|
|
|
|
|
|
|
|
|
|
const expectedDisplayValues = { |
|
|
|
const expectedDisplayValues = { |
|
|
|
pg: { |
|
|
|
pg: { |
|
|
|
// PG ignores timezone information for datetime without timezone
|
|
|
|
// PG ignores timezone information for datetime without timezone
|
|
|
@ -587,8 +589,8 @@ test.describe.serial('Timezone- ExtDB : DateTime column, Browser Timezone same a |
|
|
|
'xc-auth': context.token, |
|
|
|
'xc-auth': context.token, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
counter++; |
|
|
|
await createTableWithDateTimeColumn(context.dbType, 'datetimetable01'); |
|
|
|
await createTableWithDateTimeColumn(context.dbType, `datetimetable01${counter}`); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// ExtDB : DateAdd, DateTime_Diff verification
|
|
|
|
// ExtDB : DateAdd, DateTime_Diff verification
|
|
|
@ -596,13 +598,13 @@ test.describe.serial('Timezone- ExtDB : DateTime column, Browser Timezone same a |
|
|
|
// - verify API response value
|
|
|
|
// - verify API response value
|
|
|
|
//
|
|
|
|
//
|
|
|
|
test('Formula, verify display value', async () => { |
|
|
|
test('Formula, verify display value', async () => { |
|
|
|
await connectToExtDb(context, 'datetimetable01'); |
|
|
|
await connectToExtDb(context, `datetimetable01${counter}`); |
|
|
|
await dashboard.rootPage.reload(); |
|
|
|
await dashboard.rootPage.reload(); |
|
|
|
await dashboard.rootPage.waitForTimeout(2000); |
|
|
|
await dashboard.rootPage.waitForTimeout(2000); |
|
|
|
|
|
|
|
|
|
|
|
// insert a record to work with formula experiments
|
|
|
|
// insert a record to work with formula experiments
|
|
|
|
//
|
|
|
|
//
|
|
|
|
await dashboard.treeView.openBase({ title: 'datetimetable01' }); |
|
|
|
await dashboard.treeView.openBase({ title: `datetimetable01${counter}` }); |
|
|
|
await dashboard.treeView.openTable({ title: 'MyTable' }); |
|
|
|
await dashboard.treeView.openTable({ title: 'MyTable' }); |
|
|
|
|
|
|
|
|
|
|
|
// Create formula column (dummy)
|
|
|
|
// Create formula column (dummy)
|
|
|
@ -756,14 +758,14 @@ test.describe.serial('Timezone- ExtDB : DateTime column, Browser Timezone same a |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
test('Verify display value, UI insert, API response', async () => { |
|
|
|
test('Verify display value, UI insert, API response', async () => { |
|
|
|
await connectToExtDb(context, 'datetimetable01'); |
|
|
|
await connectToExtDb(context, `datetimetable01${counter}`); |
|
|
|
await dashboard.rootPage.reload(); |
|
|
|
await dashboard.rootPage.reload(); |
|
|
|
await dashboard.rootPage.waitForTimeout(2000); |
|
|
|
await dashboard.rootPage.waitForTimeout(2000); |
|
|
|
|
|
|
|
|
|
|
|
// get timezone offset
|
|
|
|
// get timezone offset
|
|
|
|
const formattedOffset = getBrowserTimezoneOffset(); |
|
|
|
const formattedOffset = getBrowserTimezoneOffset(); |
|
|
|
|
|
|
|
|
|
|
|
await dashboard.treeView.openBase({ title: 'datetimetable01' }); |
|
|
|
await dashboard.treeView.openBase({ title: `datetimetable01${counter}` }); |
|
|
|
await dashboard.treeView.openTable({ title: 'MyTable' }); |
|
|
|
await dashboard.treeView.openTable({ title: 'MyTable' }); |
|
|
|
|
|
|
|
|
|
|
|
if (isSqlite(context)) { |
|
|
|
if (isSqlite(context)) { |
|
|
|