-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move tests/selenium to tests/integration
The tests in this package: - are larger in scope than a unit test - are not quite end-to-end (as they mock out Datahub) - may or may not use selenium
- Loading branch information
Showing
11 changed files
with
7 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,10 +111,10 @@ jobs: | |
# https://github.com/marketplace/actions/setup-chromedriver | ||
uses: nanasess/[email protected] | ||
|
||
- name: Run selenium tests | ||
- name: Run integration tests | ||
id: slow-tests | ||
if: steps.fast-tests.outcome == 'success' | ||
run: TESTING=True poetry run pytest tests/selenium --axe-version 4.9.1 --chromedriver-path /usr/local/bin/chromedriver | ||
run: TESTING=True poetry run pytest tests/integration --axe-version 4.9.1 --chromedriver-path /usr/local/bin/chromedriver | ||
|
||
javascript-only-tests: | ||
name: Javascript tests | ||
|
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 |
---|---|---|
|
@@ -68,10 +68,10 @@ unit: | |
poetry run pytest --cov -m 'not slow' | ||
npm test | ||
|
||
# run selenium test - version works with chromedriver 127.0.1 use - `npm install -g [email protected]` | ||
# Run integration tests. Requires chromedriver - version works with chromedriver 127.0.1 use - `npm install -g [email protected]` | ||
integration: | ||
export CHROMEDRIVER_PATH=$(which chromedriver) | ||
poetry run pytest tests/selenium --axe-version 4.9.1 --chromedriver-path ${CHROMEDRIVER_PATH} | ||
poetry run pytest tests/integration --axe-version 4.9.1 --chromedriver-path ${CHROMEDRIVER_PATH} | ||
|
||
|
||
# Clean up (optional) | ||
|
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.