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
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:
1 parent
5248074964
commit
f4681da876
3 files changed
+18
-1
No files matched your search
@@ -63,3 +63,12 @@ jobs:
|
|||||||
pnpm --filter @pipu/web exec playwright install --with-deps chromium ||
|
pnpm --filter @pipu/web exec playwright install --with-deps chromium ||
|
||||||
pnpm --filter @pipu/web exec playwright install chromium
|
pnpm --filter @pipu/web exec playwright install chromium
|
||||||
- run: pnpm --filter @pipu/web test:e2e
|
- 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
|
||||||
@@ -3,7 +3,12 @@ import { defineConfig, devices } from '@playwright/test';
|
|||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
testDir: './e2e',
|
testDir: './e2e',
|
||||||
timeout: 30_000,
|
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: {
|
webServer: {
|
||||||
command: 'pnpm exec vite --port 4173 --strictPort',
|
command: 'pnpm exec vite --port 4173 --strictPort',
|
||||||
url: 'http://127.0.0.1:4173',
|
url: 'http://127.0.0.1:4173',
|
||||||
|
|||||||
@@ -8,6 +8,9 @@ export default defineConfig({
|
|||||||
target: 'es2022',
|
target: 'es2022',
|
||||||
},
|
},
|
||||||
server: {
|
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',
|
host: '127.0.0.1',
|
||||||
port: 5173,
|
port: 5173,
|
||||||
strictPort: true,
|
strictPort: true,
|
||||||
|
|||||||
Reference in new issue
Block a user