-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8551 from cfpb/ans_cy_commands
Update Cypress commands
- Loading branch information
Showing
6 changed files
with
19 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/bash | ||
# Used by `yarn cy fast` command. | ||
echo -n "${CHANGED_FILES:-$(git --no-pager diff --name-only origin/main)}" \ | ||
| sed 's/___/\n/g' \ | ||
| node "$(git rev-parse --show-toplevel)/test/cypress/spec-map.js" |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
if [ "$1" = "fast" ]; then | ||
./scripts/cypress-fast-specs.sh && ./node_modules/.bin/cypress run | ||
elif [ "$1" = "open" ]; then | ||
./node_modules/.bin/cypress open --config-file cypress.template.mjs | ||
else | ||
./node_modules/.bin/cypress run --config-file cypress.template.mjs | ||
fi |