From 35529ddd64e84c28b26bb3b9de4c4a5a28d38e62 Mon Sep 17 00:00:00 2001 From: l0ng-ai Date: Fri, 4 Dec 2026 08:33:19 +0800 Subject: [PATCH] test(project-view): use a project name that fits a narrow tree on Linux too (#7897) On the Linux runner's font the old project name alone was wider than the narrow tree, so the spec failed on every main run; a shorter name still needs the path to give way and fits on both platforms. --- e2e/projectTreeLabels.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/projectTreeLabels.spec.ts b/e2e/projectTreeLabels.spec.ts index a9cc7ce383..1bfb6f0fb9 100644 --- a/e2e/projectTreeLabels.spec.ts +++ b/e2e/projectTreeLabels.spec.ts @@ -4,7 +4,7 @@ test("gives the project name room before its path in a narrow tree", async ({ wo await page.evaluate(async () => { const storeModule = "/src/features/project-tree/store.ts"; const { useProjectTree } = await import(/* @vite-ignore */ storeModule); - useProjectTree.setState({ name: "checkout-order-processing" }); + useProjectTree.setState({ name: "checkout-orders" }); }); const pane = page.getByRole("region", { name: "Project", exact: true }); @@ -13,7 +13,7 @@ test("gives the project name room before its path in a narrow tree", async ({ wo await page.getByRole("menuitemcheckbox", { name: "Horizontal Scrolling" }).click(); const tree = pane.getByRole("tree", { name: "Project" }); - const name = tree.getByText("checkout-order-processing", { exact: true }); + const name = tree.getByText("checkout-orders", { exact: true }); await expect(name).toBeVisible(); await expect.poll(() => name.evaluate((element) => element.scrollWidth <= element.clientWidth)).toBe(true); await expect.poll(() => tree.evaluate((element) => element.scrollWidth <= element.clientWidth)).toBe(true);