Skip to content

Commit 58bb796

Browse files
committed
feat: remove active badge test and try to fix local storage test
1 parent 4119299 commit 58bb796

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

e2e/tests/ui/charts.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ test("charts are restored from localStorage after reload", async ({ page }) => {
3838
await page.getByTestId("add-chart-button").click();
3939
await expect(page.getByTestId("chart")).toHaveCount(initialCount + 2);
4040

41+
// Give Zustand persist time to flush to localStorage before reloading
42+
await page.waitForTimeout(300);
43+
4144
// Reload — Zustand should restore all charts from localStorage
4245
await page.reload();
4346
await waitForHydration(page);

e2e/tests/ui/mode-badge.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,3 @@ test("mode badge is visible with a valid mode", async ({ page }) => {
1010
expect(VALID_MODES).toContain(mode);
1111
});
1212

13-
test("mode badge shows active when backend is connected", async ({ page }) => {
14-
const badge = page.getByTestId("mode-badge");
15-
await expect(badge).toHaveAttribute("data-mode", "active");
16-
});

0 commit comments

Comments
 (0)