ci(aio): fix aio-monitoring
tests (#23390)
Previously, we were running the e2e tests from master against `https://angular.io` (deployed from the stable branch). Often the e2e tests from master do not apply to the stable branch, since the app has deviated slightly. This commit fixes this by stop running the full e2e tests against the deployed versions, but a smaller set of "smoke tests", which check basic functionality that is less likely to change between versions. PR Close #23390
This commit is contained in:

committed by
Jason Aden

parent
d665d9a18c
commit
99f8e10809
@ -5,8 +5,7 @@ set +x -eu -o pipefail
|
||||
readonly thisDir="$(cd $(dirname ${BASH_SOURCE[0]}); pwd)"
|
||||
readonly aioDir="$(realpath $thisDir/..)"
|
||||
|
||||
readonly appPtorConf="$aioDir/tests/e2e/protractor.conf.js"
|
||||
readonly cfgPtorConf="$aioDir/tests/deployment/e2e/protractor.conf.js"
|
||||
readonly protractorConf="$aioDir/tests/deployment/e2e/protractor.conf.js"
|
||||
readonly minPwaScore="95"
|
||||
readonly urls=(
|
||||
"https://angular.io/"
|
||||
@ -24,11 +23,8 @@ set +x -eu -o pipefail
|
||||
for url in "${urls[@]}"; do
|
||||
echo -e "\nChecking '$url'...\n-----"
|
||||
|
||||
# Run e2e tests.
|
||||
yarn protractor "$appPtorConf" --baseUrl "$url"
|
||||
|
||||
# Run deployment config tests.
|
||||
yarn protractor "$cfgPtorConf" --baseUrl "$url"
|
||||
# Run basic e2e and deployment config tests.
|
||||
yarn protractor "$protractorConf" --baseUrl "$url"
|
||||
|
||||
# Run PWA-score tests.
|
||||
yarn test-pwa-score "$url" "$minPwaScore"
|
||||
|
Reference in New Issue
Block a user