Fix the UI tests. (#4085)

* Compile errors 😬

* Update server selection snapshots.

The default footer string has changed.

* Remove the TemplateScreen UI tests.

We use preview tests for snapshots now, UI tests are for flow coordinators.

* Add the same looping on the OIDC UI test (but disable the test in the end).

* Run UI tests separately for iPhone and iPad.

GitHub runners don't seem to have enough memory to handle 2 simulators at once.
This commit is contained in:
Doug
2025-05-02 12:47:31 +01:00
committed by GitHub
parent 08e265220d
commit 834f62503e
16 changed files with 75 additions and 80 deletions

View File

@@ -14,10 +14,13 @@ jobs:
tests:
name: Tests
runs-on: macos-15
strategy:
matrix:
device: [iPhone, iPad]
concurrency:
# Only allow a single run of this workflow on each branch, automatically cancelling older runs.
group: ${{ format('ui-tests-{0}', github.ref) }}
group: ${{ format('ui-tests-{0}-{1}', github.ref, matrix.device) }}
cancel-in-progress: true
steps:
@@ -40,9 +43,9 @@ jobs:
- name: Run tests
run: |
if [[ -z "${{ github.event.inputs.test_name }}" ]]; then
bundle exec fastlane ui_tests
bundle exec fastlane ui_tests device:${{ matrix.device }}
else
bundle exec fastlane ui_tests test_name:${{ github.event.inputs.test_name }}
bundle exec fastlane ui_tests device:${{ matrix.device }} test_name:${{ github.event.inputs.test_name }}
fi
- name: Zip results # for faster upload
@@ -54,7 +57,7 @@ jobs:
uses: actions/upload-artifact@v4
if: failure()
with:
name: Results
name: ${{ matrix.device }}
path: fastlane/test_output/UITests.xcresult.zip
retention-days: 7
if-no-files-found: ignore