Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
connoratrug committed Oct 10, 2024
1 parent 4ebe1e0 commit f37dc5d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion apps/nuxt3-ssr/tests/header-items.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,12 @@ test("should show variables in menu if there are variables", async ({
goto,
}) => {
await goto("/catalogue-demo/ssr-catalogue/all", { waitUntil: "hydration" });
await expect(page.getByRole("navigation")).toContainText("Variables");
await expect(page.getByRole("navigation")).toContainText("Resources");
await expect(page.getByRole("navigation")).toContainText("Cohort studies");
await expect(page.getByRole("navigation")).toContainText("Cohort studies");
await expect(page.getByRole("navigation")).toContainText("Data sources");
await expect(page.getByRole("navigation")).toContainText("Databanks");
await expect(page.getByRole("navigation")).toContainText("More");
await page.getByRole("button", { name: "More" }).hover();
await page.locator("li").filter({ hasText: "Variables" });
});

0 comments on commit f37dc5d

Please sign in to comment.