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.
This commit is contained in:
SnapOtter
2026-06-06 11:10:27 +08:00
parent 26465cd844
commit 60e4d7b02f
+2 -2
View File
@@ -12,7 +12,7 @@ test.describe("GUI Settings - Dialog Navigation", () => {
await expect(page.locator("h2").filter({ hasText: "Settings" })).toBeVisible(); 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); await openSettings(page);
const dialog = page.locator(".relative.bg-background.border.border-border.rounded-xl"); 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 // Verify the dialog uses the expected sizing classes
await expect(dialog).toHaveClass(/max-w-3xl/); 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 }) => { test("dialog sidebar lists navigable section tabs", async ({ loggedInPage: page }) => {