Skip to content

Commit

Permalink
ci: fix CI test
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Spooren <[email protected]>
  • Loading branch information
aparcar committed Jun 17, 2024
1 parent f8d13f7 commit 0bb0823
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
paths:
- ".github/workflows/*"
- "www/**"
pull_request:
paths:
- ".github/workflows/*"
- "www/**"

jobs:
Test:
Expand Down Expand Up @@ -41,7 +45,7 @@ jobs:
run: python -m playwright install --with-deps

- name: Run your tests
run: pytest --tracing=retain-on-failure --simplehttpserver-directory ./www/
run: pytest --tracing=retain-on-failure --simplehttpserver-directory ./

- uses: actions/upload-artifact@v4
if: always()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_spa.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ def test_spa(simplehttpserver):
with sync_playwright() as p:
browser = p.firefox.launch()
page = browser.new_page()
page.goto("http://localhost:8000")
page.goto("http://localhost:8000/www/")
assert "OpenWrt Firmware Selector" in page.title()

assert page.locator("#versions").select_option("19.07.10")[0] == "19.07.10"
Expand Down

0 comments on commit 0bb0823

Please sign in to comment.