diff --git a/tests/e2e/sidebar-takeover.spec.ts b/tests/e2e/sidebar-takeover.spec.ts index e979aaa1a4e..8c5831bb757 100644 --- a/tests/e2e/sidebar-takeover.spec.ts +++ b/tests/e2e/sidebar-takeover.spec.ts @@ -60,7 +60,7 @@ test.describe("Contextual sidebar companion", () => { }, COLLAPSED_STORAGE_KEY); }); - test("replaces global navigation with Settings navigation", async ({ page }) => { + test("renders contextual labels at full width", async ({ page }) => { await page.goto(`/${prefix}/company/settings`); const contextual = page.locator('[data-contextual-sidebar="settings"]'); @@ -75,14 +75,8 @@ test.describe("Contextual sidebar companion", () => { await expect(page.getByRole("link", { name: "Dashboard" })).toHaveCount(0); await expect(page.getByLabel(APP_SIDEBAR_EXPANDED_MARKER)).toHaveCount(0); - }); - test("renders contextual labels at full width", async ({ page }) => { - await page.goto(`/${prefix}/company/settings`); - - const contextual = page.locator('[data-contextual-sidebar="settings"]'); const envLabel = contextual.getByText("Environments", { exact: true }); - await expect(envLabel).toBeVisible(); const labelBox = await envLabel.boundingBox(); expect(labelBox).not.toBeNull(); expect(labelBox!.width).toBeGreaterThan(20);