v0.14.0 web replay UI, My games, CLI replay
test / test (push) Canceled after 0s
test / e2e (push) Canceled after 0s

This commit is contained in:
lixen committed 2026-10-19 18:07:41 -04:00
1 parent 87dcb3e550
commit d48a28fad6
37 files changed
+4058 -1803

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
// Playwright configuration for the web client's end-to-end tests. The server
// must already run with -serve and PostgreSQL (test/run-test-server.sh with
// WEB_PORT, or any -dev -serve server): CHESS_E2E_WEB names the client's
// origin and CHESS_E2E_API the API's. CHESS_E2E_CHROMIUM points at an
// installed Chromium binary when `npx playwright install chromium` is not an
// option.
'use strict';
const { defineConfig } = require('@playwright/test');
const chromium = process.env.CHESS_E2E_CHROMIUM;
module.exports = defineConfig({
testDir: '.',
testMatch: '*.spec.js',
timeout: 120_000,
expect: { timeout: 15_000 },
fullyParallel: false,
workers: 1,
retries: 0,
reporter: process.env.CI ? 'github' : 'list',
use: {
baseURL: process.env.CHESS_E2E_WEB || 'http://localhost:9090',
viewport: { width: 980, height: 480 },
permissions: ['clipboard-read', 'clipboard-write'],
acceptDownloads: true,
trace: 'retain-on-failure',
launchOptions: chromium ? { executablePath: chromium } : {},
},
});