Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playwright: run tests headlessly, take 2. #56712

Merged
merged 4 commits into from
Oct 5, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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