From 60e4d7b02fd4c18d9e214f2716c85598010bc6fd Mon Sep 17 00:00:00 2001 From: SnapOtter Date: Sat, 6 Jun 2026 11:10:27 +0800 Subject: [PATCH] test: update settings dialog e2e test for dvh unit change The settings dialog height class changed from h-[85vh] to h-[85dvh] as part of the dynamic viewport height migration. --- tests/e2e/gui-settings-general.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/gui-settings-general.spec.ts b/tests/e2e/gui-settings-general.spec.ts index 7a9244e8..e3fa2f11 100644 --- a/tests/e2e/gui-settings-general.spec.ts +++ b/tests/e2e/gui-settings-general.spec.ts @@ -12,7 +12,7 @@ test.describe("GUI Settings - Dialog Navigation", () => { await expect(page.locator("h2").filter({ hasText: "Settings" })).toBeVisible(); }); - test("dialog has correct dimensions (85vh, max-w-3xl)", async ({ loggedInPage: page }) => { + test("dialog has correct dimensions (85dvh, max-w-3xl)", async ({ loggedInPage: page }) => { await openSettings(page); const dialog = page.locator(".relative.bg-background.border.border-border.rounded-xl"); @@ -20,7 +20,7 @@ test.describe("GUI Settings - Dialog Navigation", () => { // Verify the dialog uses the expected sizing classes await expect(dialog).toHaveClass(/max-w-3xl/); - await expect(dialog).toHaveClass(/h-\[85vh\]/); + await expect(dialog).toHaveClass(/h-\[85dvh\]/); }); test("dialog sidebar lists navigable section tabs", async ({ loggedInPage: page }) => {