Browse Source

test: updates for mysql extDB handling

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/5642/head
Raju Udava 2 years ago
parent
commit
deac3a1a03
  1. 12
      tests/playwright/tests/db/timezone.spec.ts

12
tests/playwright/tests/db/timezone.spec.ts

@ -460,8 +460,8 @@ test.describe('External DB - DateTime column', async () => {
DatetimeWithTz: ['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')],
}, },
mysql: { mysql: {
DatetimeWithoutTz: ['2023-04-27 10:00', '2023-04-27 04:30'], DatetimeWithoutTz: ['2023-04-27 10:00', getDateTimeInLocalTimeZone('2023-04-27 04:30:00+00:00')],
DatetimeWithTz: ['2023-04-27 10:00', '2023-04-27 04:30'], DatetimeWithTz: ['2023-04-27 10:00', getDateTimeInLocalTimeZone('2023-04-27 04:30:00+00:00')],
}, },
}; };
@ -616,8 +616,12 @@ test.describe('External DB - DateTime column', async () => {
new Date('2023-04-27T10:00:00').toISOString(), new Date('2023-04-27T10:00:00').toISOString(),
]; ];
} else if (isMysql(context)) { } else if (isMysql(context)) {
expectedDateTimeWithoutTz = ['2023-04-27 10:00:00', '2023-04-27 04:30:00', '2023-04-27 10:00:00']; expectedDateTimeWithoutTz = [
expectedDateTimeWithTz = ['2023-04-27 10:00:00', '2023-04-27 04:30:00', '2023-04-27 10:00:00']; '2023-04-27 10:00:00+00:00',
'2023-04-27 04:30:00+00:00',
'2023-04-27 04:30:00+00:00',
];
expectedDateTimeWithTz = ['2023-04-27 10:00:00+00:00', '2023-04-27 04:30:00+00:00', '2023-04-27 04:30:00+00:00'];
} }
// reset seconds to 00 using string functions in dateTimeWithoutTz // reset seconds to 00 using string functions in dateTimeWithoutTz

Loading…
Cancel
Save