test(27-00): wave 0 E2E scaffolding for Phase 27 nav restructure

- Update dashboard.spec.ts: replace old card heading tests with discovery section tests
- Add TopNav presence test (Home/Collection/Setups links in nav)
- Add mobile bottom tab bar test with 375px viewport
- Mark removed dashboard card tests as test.fixme with explanatory comments
- Update collection.spec.ts: replace setups tab test with fallback-to-gear test
- Add standalone /setups route test in new Setups page describe block
- All tests expected to fail until Plans 01-03 implement the new UI
This commit is contained in:
2026-04-10 23:44:10 +02:00
parent 7fd9845c13
commit 94e2094b9b
2 changed files with 75 additions and 28 deletions

View File

@@ -74,11 +74,12 @@ test.describe("Collection page", () => {
await expect(page.getByText("New Backpack")).toBeVisible();
});
test("navigates to setups tab", async ({ page }) => {
// Post-Phase-27: ?tab=setups no longer exists in Collection — falls back to gear tab
test("setups tab URL falls back to gear tab", async ({ page }) => {
await page.goto("/collection?tab=setups");
await page.waitForLoadState("networkidle");
// Setups tab shows the seeded setup
await expect(page.getByText("Weekend Overnighter")).toBeVisible();
// Setups tab no longer exists in Collection, should fall back to gear
await expect(page.getByText("Zpacks Duplex")).toBeVisible();
});
test("gear tab is default and shows items", async ({ page }) => {
@@ -87,3 +88,12 @@ test.describe("Collection page", () => {
});
});
});
// Post-Phase-27: Setups is now a standalone top-level route
test.describe("Setups page", () => {
test("navigates to /setups and shows seeded setup", async ({ page }) => {
await page.goto("/setups");
await page.waitForLoadState("networkidle");
await expect(page.getByText("Weekend Overnighter")).toBeVisible();
});
});