From f37dc5dd60cb20853a8167aed27f6acc38d23050 Mon Sep 17 00:00:00 2001 From: connoratrug Date: Thu, 10 Oct 2024 15:45:16 +0200 Subject: [PATCH] update test --- apps/nuxt3-ssr/tests/header-items.spec.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/nuxt3-ssr/tests/header-items.spec.ts b/apps/nuxt3-ssr/tests/header-items.spec.ts index b758958156..a342bcac8b 100644 --- a/apps/nuxt3-ssr/tests/header-items.spec.ts +++ b/apps/nuxt3-ssr/tests/header-items.spec.ts @@ -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" }); });