test: fix and run visual regression screenshot suite for all 12 pages
Fixed splash screen blocking login (set localStorage before navigation),
replaced full page reloads with in-page pushState navigation to preserve
SPA session, added page-specific content waits for reliable screenshots.
Increased Playwright timeout to 60s. Baseline screenshots captured for:
login, home, apps, marketplace, cloud, network, web5, settings, chat,
federation, credentials, system update.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 10:06:54 +00:00
|
|
|
import { defineConfig } from '@playwright/test'
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
testDir: './e2e',
|
|
|
|
|
outputDir: './e2e/test-results',
|
|
|
|
|
timeout: 60_000,
|
|
|
|
|
expect: {
|
|
|
|
|
timeout: 10_000,
|
|
|
|
|
},
|
|
|
|
|
use: {
|
2026-05-05 11:29:18 -04:00
|
|
|
baseURL: process.env.ARCHY_BASE_URL ?? 'http://192.168.1.228',
|
test: fix and run visual regression screenshot suite for all 12 pages
Fixed splash screen blocking login (set localStorage before navigation),
replaced full page reloads with in-page pushState navigation to preserve
SPA session, added page-specific content waits for reliable screenshots.
Increased Playwright timeout to 60s. Baseline screenshots captured for:
login, home, apps, marketplace, cloud, network, web5, settings, chat,
federation, credentials, system update.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 10:06:54 +00:00
|
|
|
viewport: { width: 1440, height: 900 },
|
|
|
|
|
screenshot: 'only-on-failure',
|
|
|
|
|
trace: 'off',
|
|
|
|
|
ignoreHTTPSErrors: true,
|
|
|
|
|
},
|
|
|
|
|
projects: [
|
|
|
|
|
{
|
|
|
|
|
name: 'chromium',
|
|
|
|
|
use: { browserName: 'chromium' },
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
})
|