Files
archy/neode-ui/e2e/viewer.playwright.config.ts
T
archipelago 68a1c14ccf ui: sequence delayed viewer Back events and verify responsive modal layout
Wait for the actual Back event across viewer instances, cancel queued entries when their owner closes, and remove the 250ms assumption. Restore scoped content-size resets so legacy global lightbox CSS cannot narrow the landscape panel.

Three delayed-history unit regressions pass, including a ten-second delay. Five Chromium browser checks pass at 360x800, 390x844, touch landscape 844x390 and desktop 1440x900, plus real local video playback/native fullscreen with source and position retained. Screenshots inspected. Fixture server uses explicit cwd and no filesystem watching; no node proxy. Strict integrated project types and physical Companion UAT remain separate.
2026-11-09 16:51:47 -05:00

11 lines
693 B
TypeScript

import { defineConfig } from '@playwright/test'
import path from 'node:path'
export default defineConfig({
testDir: '.', testMatch: 'viewer-modal.spec.ts',
outputDir: process.env.VIEWER_TEST_OUTPUT ?? '/tmp/archy-viewer-test-results',
workers: 1, timeout: 45_000,
use: { baseURL: 'http://127.0.0.1:8194', screenshot: 'only-on-failure', trace: 'retain-on-failure' },
webServer: { cwd: path.resolve(import.meta.dirname, '..'), command: 'node node_modules/vite/bin/vite.js --config e2e/viewer.vite.config.ts', url: 'http://127.0.0.1:8194/e2e/fixtures/viewer.html', reuseExistingServer: false, timeout: 120_000 },
projects: [{ name: 'chromium', use: { browserName: 'chromium' } }],
})