-
Notifications
You must be signed in to change notification settings - Fork 3
All device test updates #1039
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All device test updates #1039
Changes from 20 commits
c075d53
e470188
589ed1c
c512862
a4212bb
53ee901
5e6f386
3007c05
2efa779
68c7b07
587ce88
ff00bcf
d750440
412d1f4
ae27d19
de38875
07da1fd
b466034
1ef8ab3
a0fe8a9
0b184f4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,22 +11,40 @@ jobs: | |
| contents: write | ||
| id-token: write | ||
|
|
||
| name: End-to-End tests | ||
| name: ${{ matrix.device }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| device: | ||
| - Desktop Chrome | ||
| - Desktop Edge | ||
| - Desktop Firefox | ||
| - Desktop Safari | ||
| - Galaxy S9+ | ||
| - Pixel 7 | ||
| - iPad (gen 7) landscape | ||
| - iPhone 15 | ||
| max-parallel: 2 | ||
zoltan-antal marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| include: | ||
| # Linux devices | ||
| - device: Desktop Chrome | ||
| os: ubuntu-latest | ||
| cache_path: ~/.cache/ms-playwright | ||
| - device: Desktop Edge | ||
| os: ubuntu-latest | ||
| cache_path: ~/.cache/ms-playwright | ||
| - device: Desktop Firefox | ||
| os: ubuntu-latest | ||
| cache_path: ~/.cache/ms-playwright | ||
| - device: Galaxy S9+ | ||
| os: ubuntu-latest | ||
| cache_path: ~/.cache/ms-playwright | ||
| - device: Pixel 7 | ||
| os: ubuntu-latest | ||
| cache_path: ~/.cache/ms-playwright | ||
| # macOS devices | ||
| - device: Desktop Safari | ||
| os: macos-latest | ||
| cache_path: ~/Library/Caches/ms-playwright | ||
| - device: iPad (gen 7) landscape | ||
| os: macos-latest | ||
| cache_path: ~/Library/Caches/ms-playwright | ||
| - device: iPhone 15 | ||
| os: macos-latest | ||
| cache_path: ~/Library/Caches/ms-playwright | ||
| max-parallel: 5 | ||
|
||
|
|
||
| runs-on: ubuntu-latest | ||
| runs-on: ${{ matrix.os }} | ||
| env: | ||
| TZ: "Europe/London" | ||
|
|
||
|
|
@@ -38,23 +56,32 @@ jobs: | |
| with: | ||
| environment_url: ${{ vars.BASE_URL }} | ||
|
|
||
| - name: Set cache path | ||
| id: cache-path | ||
| run: | | ||
| if [ "$RUNNER_OS" == "macOS" ]; then | ||
| echo "path=$HOME/Library/Caches/ms-playwright" >> "$GITHUB_OUTPUT" | ||
| else | ||
| echo "path=$HOME/.cache/ms-playwright" >> "$GITHUB_OUTPUT" | ||
| fi | ||
|
|
||
| - name: Cache Playwright browsers | ||
| uses: actions/cache@v5 | ||
| id: playwright-cache | ||
| with: | ||
| path: /home/runner/.cache/ms-playwright | ||
| path: ${{ steps.cache-path.outputs.path }} | ||
| key: playwright-${{ runner.os }}-${{ hashFiles('**/pyproject.toml') }} | ||
|
|
||
| - name: Run tests | ||
| uses: ./.github/actions/run-end-to-end-tests | ||
| with: | ||
| device: ${{ matrix.device }} | ||
| base_url: ${{ vars.BASE_URL }} | ||
| imms_api_tests: 'true' | ||
| pds_api_tests: 'true' | ||
| reporting_tests: 'true' | ||
| imms_api_tests: "false" | ||
| pds_api_tests: "false" | ||
| reporting_tests: "false" | ||
|
Comment on lines
+80
to
+82
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Again, why are we turning these off?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am seeing a strange 500 response on the reset_team function. This is only happening on GH, not on local. I have tried various solutions on different commits, but the issue persists. Even 1 parallel run does not help. |
||
| playwright_cache_hit: ${{ steps.playwright-cache.outputs.cache-hit }} | ||
| screenshot_all_steps: 'false' | ||
| screenshot_all_steps: "false" | ||
| env: | ||
| BASIC_AUTH_TOKEN: ${{ secrets.HTTP_AUTH_TOKEN_FOR_TESTS }} | ||
| IMMS_BASE_URL: ${{ vars.IMMS_BASE_URL }} | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.