mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
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:
@@ -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 }) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user