-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Ticket Resolves #795 ## Changes - Fix E2E ui mode with new npm `e2e-test:ui` command - Add `e2e-merge-reports` npm run command - Add `ENTRYPOINT` with optional additinoal `CMD` args in `./e2e/Dockerfile` - allow `E2E_ARGS` to be passed via make native targets - Make `BASE_URL` optional in `./e2e/run-e2e-tests` - Allow command args to be passed to `./e2e/run-e2e-tests` - Update several `e2e-clean` make targets - Use variable for e2e image name in Makefile - Update e2e docs
- Loading branch information
Showing
6 changed files
with
73 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
#!/bin/bash | ||
# | ||
# Script to run Playwright tests with a specified app name. | ||
# Requires the APP_NAME environment variable to be set. | ||
# APP_NAME is required to be set, while BASE_URL is optional. | ||
|
||
# Ensure APP_NAME is provided | ||
if [[ -z "${APP_NAME}" ]]; then | ||
echo "You must pass in a specific APP_NAME. IE: APP_NAME=app npm run e2e-test" >&2 | ||
exit 1 | ||
fi | ||
|
||
# Run Playwright tests with the specified app name. | ||
npx playwright test --config "${APP_NAME}/playwright.config.js" | ||
# Inform about optional BASE_URL usage | ||
if [[ -z "${BASE_URL}" ]]; then | ||
echo "BASE_URL not specified. Using default BASE_URL specified in playwright.config.js" | ||
fi | ||
|
||
npx playwright test --config "${APP_NAME}/playwright.config.js" "$@" |