Commit Graph

304 Commits

Author SHA1 Message Date
Doug d47c802fec 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.
2025-05-02 12:47:31 +01:00
Stefan Ceriu 41b18cfd52 Remove now unnecessary RoomListSummary lastMessageFormattedTimestamp 2025-04-28 18:51:13 +03:00
Mauro Romito 8091d9c2a6 possible fix for flaky UI tests
- increased the time for the oidc selection alert check
- for the poll screen creation, in the test only we reduced the number of options to 10
2025-04-28 15:53:09 +02:00
Mauro Romito cbb509254b UI tests fix 2025-04-28 15:53:09 +02:00
Mauro 4179f56633 support for UI tests on Xcode 16.3 2025-04-17 15:18:37 +02:00
Stefan Ceriu fdd3dc46bc Fix slightly change UI test snapshots. 2025-04-16 18:08:43 +03:00
Doug 511c4d7bf7 Fix authentication activity indicators when the authentication server is being slow
* Fetch the OIDC login URL as part of the Server Confirmation screen.

The loading indicator would show and hide while configuring and then immediately show again while fetching the URL.

* Allow the OIDCAuthenticationPresenter to show its own errors.

We no longer need to present errors in the authentication flow coordinator.
2025-04-11 11:22:39 +01:00
Stefan Ceriu 95f67d9d45 Fix UI test toggle tapping after compound accessibility change. 2025-04-07 12:19:14 +03:00
Stefan Ceriu ffafca6d64 Revamp the UI test snapshot naming convention to make them easier to organize and find. 2025-03-05 11:43:08 +02:00
Stefan Ceriu 56d8af1d2e Only show a badge in the composer if the room is unencrypted. (#3866)
* Partially revert the message composer encryption badges and only show it for unencrypted rooms.

* Update preview test snapshots.

* Update UI test snapshots.
2025-03-04 14:58:15 +02:00
Stefan Ceriu 890687512f Show room encryption state in the composer (#3841)
* Fixes #3835 - Show room encryption state in the composer

* Update the preview test snapshots

* Update the UI test snapshots.
2025-02-27 22:16:26 +02:00
Stefan Ceriu a01c519e06 Fix various UI test snapshots following changes to the development assets. 2025-02-24 13:31:18 +02:00
Doug 8ee1427809 Update our development assets. (#3783)
* Replace downloaded test assets with original content.

* Replace AI generated assets with original content.

* Update preview tests snapshots

* Update UI test snapshots.

---------

Co-authored-by: Stefan Ceriu <stefan.ceriu@gmail.com>
2025-02-11 11:53:35 +00:00
Stefan Ceriu 567c52d562 Fix UI test snapshots following session verification screen changes. 2025-02-11 12:12:07 +02:00
Stefan Ceriu 42257a18db Revert "Disable continueAfterFailure for the AppLock UI tests"
This reverts commit 63b819e125.
2025-02-05 14:04:01 +02:00
Stefan Ceriu 56bede2404 Revert "Attempt to fix the every flakey app lock setup test"
This reverts commit 59cc9c27ec.
2025-02-05 14:04:01 +02:00
Stefan Ceriu 63b819e125 Disable continueAfterFailure for the AppLock UI tests 2025-01-31 11:31:31 +02:00
Stefan Ceriu 59cc9c27ec Attempt to fix the every flakey app lock setup test
We noticed that confirming the PIN will automatically hide the keyboard which makes the whole screen shift down while attempting to press the allow button. We also see an `App animations complete notification not received, will attempt to continue.` warning which seems to point to the same issue.
2025-01-29 17:31:03 +02:00
Stefan Ceriu 2e57348bdd Fix wrong room roles and permissions screen UI snapshots. 2025-01-28 12:55:37 +02:00
Stefan Ceriu fc719d9aa6 Delay snapshotting various flakey UI tests
- as per https://app.codecov.io/gh/element-hq/element-x-ios/tests/develop?historicalTrend=INTERVAL_30_DAY&parameter=FAILED_TESTS
2025-01-08 12:35:58 +02:00
manuroe 3950cac085 Dual licensing: AGPL + Element Commercial (#3657)
* New LICENSE-COMMERCIAL file

* Apply dual licenses: AGPL + Element Commercial to file headers

* Update README with dual licensing
2025-01-06 11:27:37 +01:00
Stefan Ceriu 4488202dac Fix encryption settings UI test snapshots 2024-12-25 21:00:48 +02:00
Stefan Ceriu 0b85964f73 Monthly media gallery separators (#3601)
* Fix the order of the items in the media grid.
* Add media gallery timeline separators.
* Change the `SeparatorRoomTimelineItem` to have it expose a Date timestamp instead of a text string.
2024-12-11 13:32:29 +02:00
Stefan Ceriu ea0fa6b3b6 UI test snapshot fixes (#3597) 2024-12-10 10:02:57 +02:00
Doug a9e4837b62 Use a Date for the timestamp in all timeline items. (#3590)
* Use a Date for the timestamp in all timeline items.

* UI test snapshots.

* Update snapshots

---------

Co-authored-by: Stefan Ceriu <stefanc@matrix.org>
2024-12-06 13:55:29 +00:00
Doug ab2152096d Fix UI snapshots. (#3585)
* Remove old snapshots.

* Add a check for the correct simulator name.

* Record mismatched snapshots.

* Regenerate more snapshots using a (temporary) higher precision.

* Fix snapshot.
2024-12-04 11:59:53 +00:00
ElementRobot 9157bf267e Translations update (#3523) 2024-11-18 10:59:17 +00:00
Stefan Ceriu 5aadf4e65b UI test fixes (#3515)
* More UI test fixes

* Update all UITest snapshots.

* Wait for reset waiting indicator to be removed before snapshotting the encryption reset screen
2024-11-14 16:44:36 +02:00
Stefan Ceriu 9746da78a2 Fix UI tests following Xcode 16.1 migration 2024-11-14 08:16:23 +02:00
Stefan Ceriu e4f346cbc7 Fix useSessionScreen test snapshots. 2024-11-07 11:36:44 +02:00
Stefan Ceriu 1347992cbc Fix ElementCall UI test 2024-11-07 11:36:44 +02:00
Doug 8e26718d0b Encryption Flow Coordinators. (#3471)
* Manage the secure backup screens with flow coordinators.

* Add UI tests for the EncryptionSettingsFlowCoordinator.

* Realise that the settings flow can't reset anymore and remove the sub-flow 🤦‍♂️

* Add UI tests for the EncryptionResetFlowCoordinator.
2024-11-04 14:22:50 +00:00
Stefan Ceriu d77bb935b7 Incoming session verification support (#3428)
* Fixes #1227 - Add support for receiving and interacting with incoming session verification requests.
* Fix a couple of random small warnings
* Move static view config to the view state
* Update snapshots
2024-10-29 15:21:17 +02:00
Doug 6584b4d084 Update HeroImage to match the BigIcon component from Compound. (#3439)
We can move it across in a following PR.
2024-10-23 12:13:14 +01:00
Doug 13bc3a1dd4 Update the secondary button stroke colour. (#3393)
* Update Compound which changes the secondary button stroke colour.

* Remove old UI test snapshots and update Acknowledgements.
2024-10-10 12:46:42 +01:00
Doug 429ce4fe61 Ask the iPad to reveal the keyboard in UI Tests when it's hidden. (#3389) 2024-10-10 08:38:40 +01:00
Doug 5c2b107022 Fix an authentication UI test snapshot. 2024-10-09 11:51:55 +01:00
Doug ac02b82d56 Record missing snapshot. (#3374) 2024-10-07 10:50:03 +01:00
Stefan Ceriu c79dbe85a0 Bump the RustSDK to v1.0.53: adopt latest record based timeline item APIs (#3356) 2024-10-01 18:50:11 +03:00
Doug a8dbda90d9 Configure the AuthenticationService later now that we have 2 flows on the start screen. (#3316)
* Don't query the homeserver until confirming it (or selecting a different one).

* Setup the infrastructure to test AuthenticationService.

Implement basic tests for configuration & password login.

* Use the real AuthenticationService with a mock Client in all of the tests.

* Add tests for the ServerConfirmationScreenViewModel.

* Remove redundant view state and test for it.
2024-09-25 14:40:18 +01:00
Doug 4996137006 Fix various flakey tests. 2024-09-23 16:25:49 +01:00
Doug d2d3b28dc7 Use an environment variable to record failures. 2024-09-23 16:25:49 +01:00
Doug 6818be1afc Update UI tests for Xcode 16. 2024-09-23 16:25:49 +01:00
Stefan Ceriu 664e87fe87 Switch license to AGPL (#3237)
* Switch license file to AGPL

* Update file copyright headers

* Update the default project file header
2024-09-06 16:34:30 +03:00
Stefan Ceriu d66ff02d12 Revert "Fix timeline item highlighting UI test"
This reverts commit eac2552ab5.
2024-05-14 16:04:16 +03:00
Doug b7d492c206 Add Forgot PIN button to AppLockSetupPINScreen. (#2833) 2024-05-13 15:41:35 +01:00
Stefan Ceriu a401976b2b Enable room list invites by default and remove old code paths 2024-05-09 19:01:57 +03:00
Stefan Ceriu 636274df74 Seamlessly switch for the RichTextEditor based message composer to the… (#2753)
* Seemlesly switch for the RichTextEditor based message composer to the plain one depending on whether formatting options are enabled or not.

* Address PR comments

* Fixes #2803 - Add extra padding at the bottom of the composer suggestions list

* Update preview test snapshots

* Update UI test snapshots
2024-05-08 17:57:32 +03:00
Stefan Ceriu a08b4842d1 Fixes #2790 - Reorder available composer menu actions 2024-05-07 17:52:45 +03:00
Stefan Ceriu eac2552ab5 Fix timeline item highlighting UI test 2024-05-07 16:55:39 +03:00