add retry

This commit is contained in:
Niccolo Borgioli 2024-08-27 11:45:43 +02:00
parent 7691dc80f8
commit b5590bb5ef
2 changed files with 3 additions and 2 deletions

View File

@ -5,8 +5,8 @@
"dev": "run-p dev:*", "dev": "run-p dev:*",
"docker:up": "docker compose -f docker-compose.dev.yaml up", "docker:up": "docker compose -f docker-compose.dev.yaml up",
"docker:build": "docker compose -f docker-compose.dev.yaml build", "docker:build": "docker compose -f docker-compose.dev.yaml build",
"test": "playwright test --project chrome firefox safari", "test": "playwright test --project=chrome --project=firefox --project=safari",
"test:local": "playwright test --project chrome", "test:local": "playwright test --project=chrome",
"test:server": "run-s docker:up", "test:server": "run-s docker:up",
"test:prepare": "run-p build docker:build", "test:prepare": "run-p build docker:build",
"build": "pnpm run --recursive --filter=!@cryptgeon/backend build" "build": "pnpm run --recursive --filter=!@cryptgeon/backend build"

View File

@ -10,6 +10,7 @@ const config: PlaywrightTestConfig = {
outputDir: './test-results', outputDir: './test-results',
testDir: './test', testDir: './test',
timeout: 30_000, timeout: 30_000,
retries: 2,
webServer: { webServer: {
command: 'pnpm run docker:up', command: 'pnpm run docker:up',