File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 1
- import { PlaywrightTestConfig } from ' @playwright/test'
1
+ import { PlaywrightTestConfig } from " @playwright/test" ;
2
2
3
3
const config : PlaywrightTestConfig = {
4
4
// The directory where the tests are located
5
5
// The order of the tests is determined by the file names alphabetically.
6
- testDir : ' ./e2e-tests' ,
6
+ testDir : " ./e2e-tests" ,
7
7
8
8
// The number of retries before marking a test as failed.
9
9
maxFailures : 1 ,
10
10
11
+ // retry on failure for CI
12
+ retries : process . env . CI ? 2 : 0 ,
13
+
11
14
// The number of Logseq instances to run in parallel.
12
15
// NOTE: must be 1 for now, otherwise tests will fail.
13
16
workers : 1 ,
14
17
15
18
// 'github' for GitHub Actions CI to generate annotations, plus a concise 'dot'.
16
19
// default 'list' when running locally.
17
- reporter : process . env . CI ? ' github' : ' list' ,
20
+ reporter : process . env . CI ? " github" : " list" ,
18
21
19
22
// Fail the build on CI if test.only is present.
20
23
forbidOnly : ! ! process . env . CI ,
21
24
22
25
use : {
23
26
// SCapture screenshot after each test failure.
24
- screenshot : ' only-on-failure' ,
27
+ screenshot : " only-on-failure" ,
25
28
} ,
26
- }
29
+ } ;
27
30
28
- export default config
31
+ export default config ;
You can’t perform that action at this time.
0 commit comments