Stabilize E2E server and retain failure diagnostics
ci / ts / ts (packages + web) (push) Successful in 6m9s
release / release (версия и заметки) (push) Successful in 6s
release / desktop (Linux и Windows в релиз) (push) Successful in 12m48s
release / android (APK в релиз) (push) Successful in 4m35s
release / prune (старые файлы и прогоны) (push) Successful in 6s

This commit is contained in:
mrleo1nid committed 2026-10-29 23:17:48 +03:00
1 parent 5248074964
commit f4681da876
3 files changed
+18 -1

No files matched your search

+9
View File
@@ -63,3 +63,12 @@ jobs:
pnpm --filter @pipu/web exec playwright install --with-deps chromium ||
pnpm --filter @pipu/web exec playwright install chromium
- run: pnpm --filter @pipu/web test:e2e
- name: E2E failure diagnostics
if: failure()
continue-on-error: true
uses: actions/upload-artifact@v3
with:
name: web-e2e-failure
path: apps/web/test-results/
if-no-files-found: ignore
retention-days: 3
+6 -1
View File
@@ -3,7 +3,12 @@ import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './e2e',
timeout: 30_000,
use: { baseURL: 'http://127.0.0.1:4173', ...devices['Desktop Chrome'] },
use: {
baseURL: 'http://127.0.0.1:4173',
...devices['Desktop Chrome'],
trace: 'retain-on-failure',
screenshot: 'only-on-failure',
},
webServer: {
command: 'pnpm exec vite --port 4173 --strictPort',
url: 'http://127.0.0.1:4173',
+3
View File
@@ -8,6 +8,9 @@ export default defineConfig({
target: 'es2022',
},
server: {
// E2E installs a stateful fake API in the page. A dev-server reload would
// discard it in the middle of a scenario (including other parallel workers).
hmr: process.env.VITE_E2E === '1' ? false : undefined,
host: '127.0.0.1',
port: 5173,
strictPort: true,