Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,13 @@ jobs:
run: |
make playwright-deploys SUB_FILE=". -vv"

- uses: actions/upload-artifact@v4
if: failure()
with:
name: "playright-examples-${{ matrix.os }}-${{ matrix.python-version }}-results"
path: test-results/
retention-days: 5

playwright-deploys:
needs: [playwright-deploys-precheck]
if: github.event_name != 'release' && (github.event_name == 'push' || (github.event_name == 'pull_request' && startsWith(github.head_ref, 'deploy')))
Expand Down Expand Up @@ -171,7 +178,6 @@ jobs:
make playwright-deploys SUB_FILE=". -vv"

- name: Deploy apps and run tests (on `push` or on `pull_request` w/ `deploy**` branch)
if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && startsWith(github.head_ref, 'deploy')) }}
env:
DEPLOY_APPS: "true"
DEPLOY_CONNECT_SERVER_URL: "https://rsc.radixu.com/"
Expand Down
2 changes: 2 additions & 0 deletions tests/playwright/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def session_page(browser: BrowserContext) -> Page:
# This must be done before each test
def page(session_page: Page) -> Page:
session_page.goto("about:blank")
# Reset screen size to 1080p
session_page.set_viewport_size({"width": 1920, "height": 1080})
return session_page


Expand Down