File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,9 @@ set -euo pipefail
4
4
main () {
5
5
cd " $( dirname " $0 " ) /../.."
6
6
cd test
7
- PASSWORD=e45432jklfdsab CODE_SERVER_ADDRESS=http://localhost:8080 yarn folio --config=config.ts --reporter=list
7
+ # We set these environment variables because they're used in the e2e tests
8
+ # they don't have to be these values, but these are the defaults
9
+ PASSWORD=e45432jklfdsab CODE_SERVER_ADDRESS=http://localhost:8080 yarn folio --config=config.ts --reporter=list " $@ "
8
10
}
9
11
10
12
main " $@ "
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ const cookieToStore = {
31
31
}
32
32
33
33
globalSetup ( async ( ) => {
34
- console . log ( "\n🚨 Running Global Setup for Jest End -to-End Tests " )
34
+ console . log ( "\n🚨 Running globalSetup for playwright end -to-end tests " )
35
35
console . log ( "👋 Please hang tight..." )
36
36
37
37
if ( process . env . WTF_NODE ) {
@@ -45,7 +45,7 @@ globalSetup(async () => {
45
45
// Save storage state and store as an env variable
46
46
// More info: https://playwright.dev/docs/auth?_highlight=authe#reuse-authentication-state
47
47
process . env . STORAGE = JSON . stringify ( storage )
48
- console . log ( "✅ Global Setup for Jest End-to-End Tests is now complete." )
48
+ console . log ( "✅ globalSetup is now complete." )
49
49
} )
50
50
51
51
const config : Config = {
@@ -55,6 +55,8 @@ const config: Config = {
55
55
}
56
56
57
57
if ( process . env . CI ) {
58
+ // In CI, retry failing tests 2 times
59
+ // in the event of flakiness
58
60
config . retries = 2
59
61
}
60
62
You can’t perform that action at this time.
0 commit comments