Browse Source

test: mysql corrections

pull/5642/head
Raju Udava 1 year ago
parent
commit
1c2604eef6
  1. 4
      .run/test-debug.run.xml
  2. 14
      tests/playwright/tests/db/timezone.spec.ts

4
.run/test-debug.run.xml

@ -6,7 +6,9 @@
<script value="test:debug" /> <script value="test:debug" />
</scripts> </scripts>
<node-interpreter value="project" /> <node-interpreter value="project" />
<envs /> <envs>
<env name="E2E_DEV_DB_TYPE" value="mysql" />
</envs>
<method v="2" /> <method v="2" />
</configuration> </configuration>
</component> </component>

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

@ -460,8 +460,14 @@ 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', getDateTimeInLocalTimeZone('2023-04-27 04:30:00+00:00')], DatetimeWithoutTz: [
DatetimeWithTz: ['2023-04-27 10:00', getDateTimeInLocalTimeZone('2023-04-27 04:30:00+00:00')], 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'),
],
}, },
}; };
@ -632,8 +638,8 @@ test.describe('External DB - DateTime column', async () => {
dateTimeString => dateTimeString.substring(0, 17) + '00' + dateTimeString.substring(19) dateTimeString => dateTimeString.substring(0, 17) + '00' + dateTimeString.substring(19)
); );
// console.log('dateTimeWithoutTz', dateTimeWithoutTz); console.log('dateTimeWithoutTz', dateTimeWithoutTz);
// console.log('dateTimeWithTz', dateTimeWithTz); console.log('dateTimeWithTz', dateTimeWithTz);
expect(dateTimeWithoutTz).toEqual(expectedDateTimeWithoutTz); expect(dateTimeWithoutTz).toEqual(expectedDateTimeWithoutTz);
expect(dateTimeWithTz).toEqual(expectedDateTimeWithTz); expect(dateTimeWithTz).toEqual(expectedDateTimeWithTz);

Loading…
Cancel
Save