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:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user