diff --git a/tests/playwright/pages/Dashboard/common/Cell/index.ts b/tests/playwright/pages/Dashboard/common/Cell/index.ts index 8a716c15bf..3f2a97c681 100644 --- a/tests/playwright/pages/Dashboard/common/Cell/index.ts +++ b/tests/playwright/pages/Dashboard/common/Cell/index.ts @@ -360,4 +360,12 @@ export class CellPageObject extends BasePage { await this.get({ index, columnHeader }).press((await this.isMacOs()) ? 'Meta+C' : 'Control+C'); await this.verifyToast({ message: 'Copied to clipboard' }); } -} \ No newline at end of file + + async pasteFromClipboard({ index, columnHeader }: CellProps, ...clickOptions: Parameters) { + await this.get({ index, columnHeader }).scrollIntoViewIfNeeded(); + await this.get({ index, columnHeader }).click(...clickOptions); + await (await this.get({ index, columnHeader }).elementHandle()).waitForElementState('stable'); + + await this.get({ index, columnHeader }).press((await this.isMacOs()) ? 'Meta+V' : 'Control+V'); + } +} diff --git a/tests/playwright/tests/db/timezone.spec.ts b/tests/playwright/tests/db/timezone.spec.ts index b1921aaae0..9a2e80a9ee 100644 --- a/tests/playwright/tests/db/timezone.spec.ts +++ b/tests/playwright/tests/db/timezone.spec.ts @@ -480,8 +480,14 @@ test.describe('External DB - DateTime column', async () => { // without +HH:MM information, display value is same as inserted value // with +HH:MM information, display value is converted to browser timezone // SQLite doesn't have with & without timezone fields; both are same in this case - DatetimeWithoutTz: ['2023-04-27 10:00', getDateTimeInLocalTimeZone('2023-04-27 04:30:00+00:00')], - DatetimeWithTz: ['2023-04-27 10:00', getDateTimeInLocalTimeZone('2023-04-27 04:30:00+00:00')], + DatetimeWithoutTz: [ + getDateTimeInLocalTimeZone('2023-04-27 10:00:00+00:00'), + getDateTimeInLocalTimeZone('2023-04-27 04:30:00+00:00'), + ], + DatetimeWithTz: [ + getDateTimeInLocalTimeZone('2023-04-27 10:00:00+00:00'), + getDateTimeInLocalTimeZone('2023-04-27 04:30:00+00:00'), + ], }, mysql: { DatetimeWithoutTz: [ @@ -629,12 +635,12 @@ test.describe('External DB - DateTime column', async () => { if (isSqlite(context)) { expectedDateTimeWithoutTz = [ - '2023-04-27 10:00:00', + '2023-04-27 10:00:00+00:00', '2023-04-27 10:00:00+05:30', getDateTimeInUTCTimeZone('2023-04-27 10:00:00+00:00'), ]; expectedDateTimeWithTz = [ - '2023-04-27 10:00:00', + '2023-04-27 10:00:00+00:00', '2023-04-27 10:00:00+05:30', getDateTimeInUTCTimeZone('2023-04-27 10:00:00+00:00'), ];