Skip to content

Commit

Permalink
fixup! tests: add first e2e (end to end) test
Browse files Browse the repository at this point in the history
  • Loading branch information
asfaltboy committed Mar 26, 2024
1 parent 632e901 commit c577d37
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,24 @@ on:
- pull_request

jobs:
build:
build-and-test:
runs-on: ubuntu-latest
container: microsoft-playwright:v1.42.1
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "pypy-3.7", "pypy-3.8"]

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions coveralls
- name: Test with tox
run: tox -p auto
env:
TOX_PARALLEL_NO_SPINNER: 1
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions coveralls
- name: Test with tox
run: tox -p auto
env:
TOX_PARALLEL_NO_SPINNER: 1
1 change: 1 addition & 0 deletions advanced_filters/tests/integration/test_list_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def test_advanced_filter_modal_shown(page: Page, base_url):
).to_be_visible()
# and a form with a mandatory title field
expect(modal.get_by_label(TEXT["advanced_filter_title_label"])).to_be_visible()
# TODO: the following assertion demonstrates a bug
# below it, the modal contains a blank "extra" filter, with the required fields
# expect(modal.locator("select[name=form-0-field]")).to_be_visible()
# and a button to add another filter
Expand Down
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ max-line-length = 120

[testenv]
usedevelop = true
passenv = CI MOZ_DEV
deps =
-rtest-reqs.txt
django22: Django>=2.2,<3.0
Expand Down

0 comments on commit c577d37

Please sign in to comment.