@@ -8,7 +8,25 @@ Please see LICENSE files in the repository root for full details.
8
8
9
9
import { defineConfig } from "@playwright/test" ;
10
10
11
+ const projects = [
12
+ "macos" ,
13
+ "win-x64" ,
14
+ "win-ia32" ,
15
+ "win-arm64" ,
16
+ "linux-amd64-sqlcipher-system" ,
17
+ "linux-amd64-sqlcipher-static" ,
18
+ "linux-arm64-sqlcipher-system" ,
19
+ "linux-arm64-sqlcipher-static" ,
20
+ ] ;
21
+
11
22
export default defineConfig ( {
23
+ // Allows the GitHub action to specify a project name (OS + arch) for the combined report to make sense
24
+ // workaround for https://github.com/microsoft/playwright/issues/33521
25
+ projects : process . env . CI
26
+ ? projects . map ( ( name ) => ( {
27
+ name,
28
+ } ) )
29
+ : undefined ,
12
30
use : {
13
31
viewport : { width : 1280 , height : 720 } ,
14
32
video : "retain-on-failure" ,
@@ -18,7 +36,7 @@ export default defineConfig({
18
36
outputDir : "playwright/test-results" ,
19
37
workers : 1 ,
20
38
retries : process . env . CI ? 2 : 0 ,
21
- reporter : [ [ "html" , { outputFolder : "playwright/html-report" } ] ] ,
39
+ reporter : process . env . CI ? [ [ "blob" ] , [ "github" ] ] : [ [ "html" , { outputFolder : "playwright/html-report" } ] ] ,
22
40
snapshotDir : "playwright/snapshots" ,
23
41
snapshotPathTemplate : "{snapshotDir}/{testFilePath}/{arg}-{platform}{ext}" ,
24
42
timeout : 30 * 1000 ,
0 commit comments