Browse Source

test: formula corrections for datetime

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

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

@ -645,11 +645,11 @@ test.describe.serial('External DB - DateTime column', async () => {
}); });
await verifyFormula({ await verifyFormula({
formula: ['DATEADD(DatetimeWithoutTz, 1, "month")', 'DATEADD(DatetimeWithTz, 1, "month")'], formula: ['DATEADD(DatetimeWithoutTz, 1, "month")', 'DATEADD(DatetimeWithTz, 1, "month")'],
expectedDisplayValue: ['2023-05-28 10:00', '2023-05-28 10:00'], expectedDisplayValue: ['2023-05-27 10:00', '2023-05-27 10:00'],
}); });
await verifyFormula({ await verifyFormula({
formula: ['DATEADD(DatetimeWithoutTz, 1, "year")', 'DATEADD(DatetimeWithTz, 1, "year")'], formula: ['DATEADD(DatetimeWithoutTz, 1, "year")', 'DATEADD(DatetimeWithTz, 1, "year")'],
expectedDisplayValue: ['2024-05-28 10:00', '2024-05-28 10:00'], expectedDisplayValue: ['2024-04-27 10:00', '2024-04-27 10:00'],
}); });
await dashboard.grid.cell.dateTime.setDateTime({ await dashboard.grid.cell.dateTime.setDateTime({

Loading…
Cancel
Save