From c06fa8cacd1a11c9430d808280f17847325b30ec Mon Sep 17 00:00:00 2001 From: Arthur Brongniart Date: Tue, 3 Mar 2026 09:01:15 +0100 Subject: [PATCH] Fix e2e tests: navigate to /ui instead of / Navigate directly to `/ui` instead of relying on the root redirect, making the tests resilient to changes in the root redirect target. Co-Authored-By: Claude Opus 4.6 --- quickwit/quickwit-ui/e2e/homepage.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickwit/quickwit-ui/e2e/homepage.spec.ts b/quickwit/quickwit-ui/e2e/homepage.spec.ts index 3c24d2414f6..73b86b64f06 100644 --- a/quickwit/quickwit-ui/e2e/homepage.spec.ts +++ b/quickwit/quickwit-ui/e2e/homepage.spec.ts @@ -16,7 +16,7 @@ import { expect, test } from "@playwright/test"; test.describe("Home navigation", () => { test("Should display sidebar links", async ({ page }) => { - await page.goto("/"); + await page.goto("/ui"); await expect(page.locator("a")).toContainText([ "Query editor", "Indexes", @@ -25,7 +25,7 @@ test.describe("Home navigation", () => { }); test("Should navigate to cluster state", async ({ page }) => { - await page.goto("/"); + await page.goto("/ui"); await page.getByRole("link", { name: "Cluster" }).click(); await expect(page.getByLabel("breadcrumb")).toContainText("Cluster"); await expect(page.getByText("cluster_id")).toBeVisible();