From 7ff0da5ab5b76e15f4d358f679f8035b24f035f9 Mon Sep 17 00:00:00 2001 From: Nawaz Dhandala Date: Tue, 6 Jan 2026 11:19:07 +0000 Subject: [PATCH] fix: Update navigation for Enterprise dropdown and adjust Request Demo link --- E2E/Tests/Home/Navigation.spec.ts | 26 +++++++++++++++++++------- Home/Views/nav.ejs | 2 +- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/E2E/Tests/Home/Navigation.spec.ts b/E2E/Tests/Home/Navigation.spec.ts index 95517485a4..f071d90e0e 100644 --- a/E2E/Tests/Home/Navigation.spec.ts +++ b/E2E/Tests/Home/Navigation.spec.ts @@ -45,14 +45,20 @@ test.describe("navigation bar", () => { if (!IS_BILLING_ENABLED) { return; } - const navEnterpriseLink: Locator = page + // Enterprise is now a dropdown button, not a direct link + const navEnterpriseButton: Locator = page .getByRole("navigation") - .getByRole("link", { name: "Enterprise" }); - await navEnterpriseLink.click(); - await navEnterpriseLink.hover(); - await expect(navEnterpriseLink).toBeVisible(); - await expect(navEnterpriseLink).toBeInViewport(); - await expect(navEnterpriseLink).toHaveText(/Enterprise/); + .getByRole("button", { name: "Enterprise" }); + await navEnterpriseButton.click(); + await expect(navEnterpriseButton).toBeVisible(); + await expect(navEnterpriseButton).toBeInViewport(); + await expect(navEnterpriseButton).toHaveText(/Enterprise/); + + // Click on Enterprise Overview link in the dropdown + const enterpriseOverviewLink: Locator = page + .getByRole("link", { name: "Enterprise Overview" }) + .first(); + await enterpriseOverviewLink.click(); await expect(page).toHaveURL(/.*enterprise\/overview/); }); @@ -60,6 +66,12 @@ test.describe("navigation bar", () => { if (!IS_BILLING_ENABLED) { return; } + // Request Demo is now inside the Enterprise dropdown + const navEnterpriseButton: Locator = page + .getByRole("navigation") + .getByRole("button", { name: "Enterprise" }); + await navEnterpriseButton.click(); + await page.getByTestId("request-demo-desktop-link").click(); await expect(page).toHaveURL(/.*enterprise\/demo/); }); diff --git a/Home/Views/nav.ejs b/Home/Views/nav.ejs index 213a221fa3..0a2c78f066 100644 --- a/Home/Views/nav.ejs +++ b/Home/Views/nav.ejs @@ -336,7 +336,7 @@

Scale with confidence

- +