add playwright for e2e testing (#873)

This commit is contained in:
Alex Johansson authored and GitHub committed 2021-10-07 17:07:57 +02:00
1 parent c62e1a0eeb
commit a9ee2ef9ae
10 files changed
+777 -54

No files matched your search

+2 -3
View File
@@ -8,7 +8,6 @@ dayjs.extend(utc);
const EXPECTED_DATE_STRING = "2021-06-20T11:59:59+02:00";
it("has the right utcOffset regardless of the local timeZone", async () => {
expect(parseZone(EXPECTED_DATE_STRING).utcOffset()).toEqual(120);
expect(parseZone(EXPECTED_DATE_STRING).format()).toEqual(EXPECTED_DATE_STRING);
expect(dayjs(EXPECTED_DATE_STRING).format()).not.toEqual(EXPECTED_DATE_STRING);
expect(parseZone(EXPECTED_DATE_STRING)?.utcOffset()).toEqual(120);
expect(parseZone(EXPECTED_DATE_STRING)?.format()).toEqual(EXPECTED_DATE_STRING);
});