@@ -11,7 +11,6 @@ function getReporters(): ReporterDescription[] {
1111 uploadVideos : true ,
1212 } ,
1313 ] ;
14-
1514 const s3Reporter : ReporterDescription = [
1615 "./node_modules/playwright-slack-report/dist/src/SlackReporter.js" ,
1716 {
@@ -21,34 +20,19 @@ function getReporters(): ReporterDescription[] {
2120 layout : generateSimpleLayout , // Use our simple layout
2221 } ,
2322 ] ;
24-
25- let reporters : ReporterDescription [ ] = [ ] ;
23+ const githubReporter : ReporterDescription = [ "github" ] ;
24+ const htmlReporter : ReporterDescription = [ "html" , { open : "never" } ] ;
25+ const cleanReporter : ReporterDescription = [ "./clean-reporter.js" ] ;
2626
2727 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- }
4728
4829 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 [ ] ;
5236}
5337
5438function getBaseUrl ( ) : string {
@@ -61,10 +45,9 @@ function getBaseUrl(): string {
6145
6246export default defineConfig ( {
6347 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
6548 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 ,
6851 use : {
6952 headless : true ,
7053 viewport : { width : 1280 , height : 720 } ,
0 commit comments