test(viewer): pin the D97 view-switch spec to the desktop width (#450)

This commit is contained in:
Vito Sansevero
2026-10-28 19:38:12 -07:00
parent 4c33c97f28
commit d7a95216d4
@@ -73,6 +73,7 @@ test('the button beside ✕ switches between Centered and Full screen and names
test('switching back to Centered keeps the collapse setting\'s toggle and hidden details (D97)', async ({ page }) => {
await page.addInitScript(() => localStorage.setItem('gallerySettings', JSON.stringify({ sidebarCollapsedByDefault: true })));
await page.setViewportSize({ width: 1600, height: 1100 });
await openProduction(page, 'images', 'dark');
await page.locator(CARDS).first().locator('.image-open').click();
await expect(viewer(page)).toBeVisible();