File tree 3 files changed +6
-4
lines changed
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 55
55
- name : Configure Git safe.directory
56
56
run : |
57
57
git config --global --add safe.directory /workspace
58
+
58
59
# Step 3: Run Playwright tests in Docker
59
60
- name : Run Playwright tests
60
61
run : |
65
66
-e BASE_URL=${{ github.event.deployment_status.environment_url }} \
66
67
-e ARGOS_BRANCH="${{ github.event.deployment_status.environment == 'Production' && 'main' || github.ref_name }}" \
67
68
-e CI=true \
69
+ -e NUM_WORKERS=4 \
68
70
-e ARGOS_TOKEN=${{ secrets.ARGOS_TOKEN }} \
69
71
mcr.microsoft.com/playwright:v1.49.1-noble \
70
- npm exec -- playwright test
72
+ npm exec -- playwright test --workers 4
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ const config: PlaywrightTestConfig = {
34
34
} ,
35
35
] ,
36
36
] ,
37
- timeout : 1200000 ,
37
+ timeout : 1800000 ,
38
38
use : {
39
39
// On CI, we will set `BASE_URL` from Vercel preview URL
40
40
baseURL : baseURL ,
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ for (let workerIndex = 0; workerIndex < NUM_WORKERS; workerIndex++) {
56
56
}
57
57
58
58
await page . goto ( url , { timeout } ) ;
59
- console . log ( `Successfully loaded ${ url } ` ) ;
59
+ console . debug ( `Successfully loaded ${ url } ` ) ;
60
60
61
61
// Check for meta redirect
62
62
const metaRedirect = await page . $ ( 'meta[http-equiv="refresh"]' ) ;
@@ -68,7 +68,7 @@ for (let workerIndex = 0; workerIndex < NUM_WORKERS; workerIndex++) {
68
68
// Wait for hydration with a timeout
69
69
try {
70
70
await page . waitForFunction ( waitForDocusaurusHydration , { timeout } ) ;
71
- console . log ( `Hydration completed for ${ url } ` ) ;
71
+ console . debug ( `Hydration completed for ${ url } ` ) ;
72
72
} catch ( error ) {
73
73
console . warn ( `Skipping ${ pathname } due to missing hydration.` ) ;
74
74
continue ;
You can’t perform that action at this time.
0 commit comments