mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-03 11:11:48 +02:00
✅ Remove flaky test (#1320)
This commit is contained in:
parent
f647fa0824
commit
8156dfd0a3
1 changed files with 0 additions and 15 deletions
|
@ -16,21 +16,6 @@ test.describe("Timezone Change", () => {
|
||||||
await expect(modal).toBeHidden();
|
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 ({
|
test("shows modal if stored timezone is different from current timezone", async ({
|
||||||
page,
|
page,
|
||||||
}) => {
|
}) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue