From b5590bb5ef227d2502c6bd440852d23235c2df10 Mon Sep 17 00:00:00 2001 From: Niccolo Borgioli Date: Tue, 27 Aug 2024 11:45:43 +0200 Subject: [PATCH] add retry --- package.json | 4 ++-- playwright.config.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a3bd959..2944922 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "dev": "run-p dev:*", "docker:up": "docker compose -f docker-compose.dev.yaml up", "docker:build": "docker compose -f docker-compose.dev.yaml build", - "test": "playwright test --project chrome firefox safari", - "test:local": "playwright test --project chrome", + "test": "playwright test --project=chrome --project=firefox --project=safari", + "test:local": "playwright test --project=chrome", "test:server": "run-s docker:up", "test:prepare": "run-p build docker:build", "build": "pnpm run --recursive --filter=!@cryptgeon/backend build" diff --git a/playwright.config.ts b/playwright.config.ts index 03bff72..4d56785 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -10,6 +10,7 @@ const config: PlaywrightTestConfig = { outputDir: './test-results', testDir: './test', timeout: 30_000, + retries: 2, webServer: { command: 'pnpm run docker:up',