mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This commit does three things that all related and required to get rid of `webdriver-manager`: * Our puppeteer protractor setup in AIO relies on webdriver-manager because we install a corresponding chromedriver based on the puppeteer chromium version. We would like to get rid of this brittle setup. * We don't use `puppeteer` in many places because we manage chromium and the driver through Bazel. This commit removes the remaining puppeteer usage and replaces it with the Bazel-managed canonical browser * We need to migrate the AIO production URL tests to Bazel. These weren't part of Aspect's migration. This is needed so that we can drop puppeteer and use the Bazel browser setup. * Migrates some at-runtime TS `ts-node` test setup to proper idiomatic Bazel code. Needed because it depends on code that also had to be migrated to Bazel given the production e2e test Bazel migration (above points). Note: The xregexp dependency had to be added to the root project because `ts_library` does not support compilation deps from `@aio_npm`. This is something we will fix anyway when we have a more modern toolchain! PR Close #49025
31 lines
794 B
Bash
Executable file
31 lines
794 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set +x -eu -o pipefail
|
|
|
|
(
|
|
readonly thisDir="$(cd $(dirname ${BASH_SOURCE[0]}); pwd)"
|
|
readonly aioDir="$(realpath $thisDir/..)"
|
|
|
|
readonly protractorConf="$aioDir/tests/deployment/e2e/protractor.conf.js"
|
|
readonly targetUrl="$1"
|
|
readonly minPwaScore="$2"
|
|
|
|
cd "$aioDir"
|
|
|
|
# Install dependencies.
|
|
echo -e "\nInstalling dependencies in '$aioDir'...\n-----"
|
|
yarn install --frozen-lockfile --non-interactive
|
|
|
|
# Run checks for target URL.
|
|
echo -e "\nChecking '$targetUrl'...\n-----"
|
|
|
|
# Run basic e2e and deployment config tests.
|
|
yarn test-production-url --test_env=TARGET_URL="$targetUrl"
|
|
|
|
# Run PWA-score tests.
|
|
yarn test-pwa-score "$targetUrl" "$minPwaScore"
|
|
|
|
# Run a11y tests.
|
|
yarn test-a11y-score "$targetUrl"
|
|
|
|
echo -e "\nAll checks passed!"
|
|
)
|