Skip to content

Commit

Permalink
Playwright: run tests headlessly, take 2. (#56712)
Browse files Browse the repository at this point in the history
* Export headless env var

* Fix HEADLESS env var.
Re-add xvfb-run.

* Try dropping xvfb-run

* Enable all tests
  • Loading branch information
worldomonation authored Oct 5, 2021
1 parent 16fec71 commit 708e282
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .teamcity/_self/projects/WebApp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,7 @@ fun playwrightPrBuildType( targetDevice: String, buildUuid: String ): BuildType
export NODE_CONFIG_ENV=test
export PLAYWRIGHT_BROWSERS_PATH=0
export TEAMCITY_VERSION=2021
export HEADLESS=true
# Decrypt config
openssl aes-256-cbc -md sha1 -d -in ./config/encrypted.enc -out ./config/local-test.json -k "%CONFIG_E2E_ENCRYPTION_KEY%"
Expand All @@ -637,7 +638,7 @@ fun playwrightPrBuildType( targetDevice: String, buildUuid: String ): BuildType
export NODE_CONFIG="{\"calypsoBaseURL\":\"${'$'}{URL%/}\"}"
export DEBUG=pw:api
xvfb-run yarn jest --reporters=jest-teamcity --reporters=default --maxWorkers=%E2E_WORKERS% --group=calypso-pr
yarn jest --reporters=jest-teamcity --reporters=default --maxWorkers=%E2E_WORKERS% --group=calypso-pr
""".trimIndent()
dockerImage = "%docker_image_e2e%"
}
Expand Down Expand Up @@ -751,11 +752,12 @@ object PreReleaseE2ETests : BuildType({
export LOCALE=en
export NODE_CONFIG="{\"calypsoBaseURL\":\"${'$'}{URL%/}\"}"
export DEBUG=pw:api
export HEADLESS=true
# Decrypt config
openssl aes-256-cbc -md sha1 -d -in ./config/encrypted.enc -out ./config/local-test.json -k "%CONFIG_E2E_ENCRYPTION_KEY%"
xvfb-run yarn jest --reporters=jest-teamcity --reporters=default --maxWorkers=%E2E_WORKERS% --group=calypso-release
yarn jest --reporters=jest-teamcity --reporters=default --maxWorkers=%E2E_WORKERS% --group=calypso-release
""".trimIndent()
dockerImage = "%docker_image_e2e%"
}
Expand Down

0 comments on commit 708e282

Please sign in to comment.