diff --git a/ci/dev/test-e2e.sh b/ci/dev/test-e2e.sh index 607a0c44..171e6099 100755 --- a/ci/dev/test-e2e.sh +++ b/ci/dev/test-e2e.sh @@ -4,7 +4,9 @@ set -euo pipefail main() { cd "$(dirname "$0")/../.." cd test - PASSWORD=e45432jklfdsab CODE_SERVER_ADDRESS=http://localhost:8080 yarn folio --config=config.ts --reporter=list + # We set these environment variables because they're used in the e2e tests + # they don't have to be these values, but these are the defaults + PASSWORD=e45432jklfdsab CODE_SERVER_ADDRESS=http://localhost:8080 yarn folio --config=config.ts --reporter=list "$@" } main "$@" diff --git a/test/config.ts b/test/config.ts index e5ba91cd..2d09e0ec 100644 --- a/test/config.ts +++ b/test/config.ts @@ -31,7 +31,7 @@ const cookieToStore = { } globalSetup(async () => { - console.log("\nšŸšØ Running Global Setup for Jest End-to-End Tests") + console.log("\nšŸšØ Running globalSetup for playwright end-to-end tests") console.log("šŸ‘‹ Please hang tight...") if (process.env.WTF_NODE) { @@ -45,7 +45,7 @@ globalSetup(async () => { // Save storage state and store as an env variable // More info: https://playwright.dev/docs/auth?_highlight=authe#reuse-authentication-state process.env.STORAGE = JSON.stringify(storage) - console.log("āœ… Global Setup for Jest End-to-End Tests is now complete.") + console.log("āœ… globalSetup is now complete.") }) const config: Config = { @@ -55,6 +55,8 @@ const config: Config = { } if (process.env.CI) { + // In CI, retry failing tests 2 times + // in the event of flakiness config.retries = 2 }