Remove flaky test (#1320)

This commit is contained in:
Luke Vella 2024-09-06 15:40:26 +01:00 committed by GitHub
parent f647fa0824
commit 8156dfd0a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,21 +16,6 @@ test.describe("Timezone Change", () => {
await expect(modal).toBeHidden();
});
test("does not show modal if stored timezone matches current timezone", async ({
page,
}) => {
const currentTimeZone = await page.evaluate(
() => Intl.DateTimeFormat().resolvedOptions().timeZone,
);
await page.evaluate(
(tz) => localStorage.setItem("previousTimeZone", tz),
currentTimeZone,
);
await page.reload();
const modal = page.locator("text=Timezone Change Detected");
await expect(modal).toBeHidden();
});
test("shows modal if stored timezone is different from current timezone", async ({
page,
}) => {