CI / Build & Quality Checks (push) Successful in 3m11s
CI / Docker image build & smoke test (push) Skipped
CI / Secret scan (gitleaks) (push) Successful in 18s
CI / Trigger Desktop Build (push) Successful in 17s
CI / Playwright smoke (e2e) (push) Failing after 8m58s
Two new Playwright projects — 'webkit' (Desktop Safari) for tests tagged @webkit and 'iphone' (iPhone 14 descriptor) for @ios — covering boot, login + send/receive, the thread panel and the gallery lightbox. The CI e2e job installs webkit next to chromium. WebKit reports handled fetch failures (well-known probes, a wasm fetch cut short by our own navigation) as page errors with its own wording, so the benign allowlist now applies to page errors as well. Locally: 8/8 green twice in a row against the local Synapse. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PPmy3tPq869XDW4njjVaKA
45 lines
1.8 KiB
TypeScript
45 lines
1.8 KiB
TypeScript
import { defineConfig, devices } from '@playwright/test';
|
|
|
|
// Playwright smoke tests (Gitea #90). Two tiers live under e2e/:
|
|
// - boot.spec.ts always runs; serves the built dist/ via `vite preview`
|
|
// and checks the client actually boots in a real browser.
|
|
// - e2ee-composer.spec.ts skips itself unless E2E_HOMESERVER/E2E_USER/E2E_PASSWORD
|
|
// are set (CI secrets — see LOTUS_TESTING.md).
|
|
// `npm run build` must have produced dist/ before `npm run test:e2e`.
|
|
const PORT = 4173;
|
|
const BASE_URL = `http://localhost:${PORT}/`;
|
|
|
|
export default defineConfig({
|
|
testDir: './e2e',
|
|
timeout: 60_000,
|
|
expect: { timeout: 15_000 },
|
|
fullyParallel: false,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: process.env.CI ? 1 : 0,
|
|
workers: 1,
|
|
reporter: process.env.CI ? [['list'], ['html', { open: 'never' }]] : [['list']],
|
|
outputDir: 'test-results',
|
|
use: {
|
|
baseURL: BASE_URL,
|
|
screenshot: 'only-on-failure',
|
|
trace: 'retain-on-failure',
|
|
...devices['Desktop Chrome'],
|
|
},
|
|
projects: [
|
|
{ name: 'chromium', use: { ...devices['Desktop Chrome'] } },
|
|
// [Gitea #221] WebKit as the Safari/iOS proxy. It runs the subset tagged
|
|
// @webkit / @ios (boot, composer round-trip, thread panel, lightbox): it
|
|
// catches WebKit-only breakage (CSS, dvh, IndexedDB, media decode) that
|
|
// Chromium emulation can't, but does not emulate the iOS keyboard or the
|
|
// Home-Screen install flow.
|
|
{ name: 'webkit', use: { ...devices['Desktop Safari'] }, grep: /@webkit/ },
|
|
{ name: 'iphone', use: { ...devices['iPhone 14'] }, grep: /@ios/ },
|
|
],
|
|
webServer: {
|
|
command: `npx vite preview --port ${PORT} --strictPort`,
|
|
url: BASE_URL,
|
|
reuseExistingServer: !process.env.CI,
|
|
timeout: 60_000,
|
|
},
|
|
});
|