@@ -11,7 +11,6 @@ function getReporters(): ReporterDescription[] {
11
11
uploadVideos : true ,
12
12
} ,
13
13
] ;
14
-
15
14
const s3Reporter : ReporterDescription = [
16
15
"./node_modules/playwright-slack-report/dist/src/SlackReporter.js" ,
17
16
{
@@ -21,34 +20,19 @@ function getReporters(): ReporterDescription[] {
21
20
layout : generateSimpleLayout , // Use our simple layout
22
21
} ,
23
22
] ;
24
-
25
- let reporters : ReporterDescription [ ] = [ ] ;
23
+ const githubReporter : ReporterDescription = [ "github" ] ;
24
+ const htmlReporter : ReporterDescription = [ "html" , { open : "never" } ] ;
25
+ const cleanReporter : ReporterDescription = [ "./clean-reporter.js" ] ;
26
26
27
27
const addVideoAndSlack = process . env . SLACK_WEBHOOK_URL && process . env . AWS_S3_BUCKET_NAME ;
28
- if ( process . env . CI ) {
29
- reporters = [
30
- [ "github" ] ,
31
- [ "html" , { open : "never" } ] ,
32
- ] ;
33
- if ( addVideoAndSlack ) {
34
- reporters . push ( videoReporter , s3Reporter ) ;
35
- }
36
-
37
- return reporters ;
38
- }
39
-
40
- if ( addVideoAndSlack ) {
41
- return [
42
- videoReporter ,
43
- s3Reporter ,
44
- [ "html" , { open : "never" } ]
45
- ] ;
46
- }
47
28
48
29
return [
49
- [ "./clean-reporter.js" ] ,
50
- [ "html" , { open : "never" } ] ,
51
- ] ;
30
+ process . env . CI ? githubReporter : undefined ,
31
+ addVideoAndSlack ? videoReporter : undefined ,
32
+ addVideoAndSlack ? s3Reporter : undefined ,
33
+ htmlReporter ,
34
+ cleanReporter ,
35
+ ] . filter ( Boolean ) as ReporterDescription [ ] ;
52
36
}
53
37
54
38
function getBaseUrl ( ) : string {
@@ -61,10 +45,9 @@ function getBaseUrl(): string {
61
45
62
46
export default defineConfig ( {
63
47
timeout : process . env . CI ? 300_000 : 120_000 , // 5min in CI, 2min locally for AI tests
64
- workers : 1 , // Serial execution to avoid race conditions and AI service conflicts
65
48
testDir : "./tests" ,
66
- retries : process . env . CI ? 3 : 0 , // More retries for flaky AI tests in CI, 0 for local
67
- fullyParallel : false , // Serial execution for deterministic AI test results
49
+ retries : process . env . CI ? 1 : 0 , // More retries for flaky AI tests in CI, 0 for local
50
+ fullyParallel : true ,
68
51
use : {
69
52
headless : true ,
70
53
viewport : { width : 1280 , height : 720 } ,
0 commit comments