77 Commits

Author SHA1 Message Date
Jorge Martin Espinosa
f7c2adcdc4 CI: yet another Maestro fix (#6505)
* Fix the `assertSessionVerificationDisplayed.yaml` check

* Previous 'Location' is now 'Share location'

* We don't have a GPS location, so the text is 'Share selected location'

* 'Create a new conversation' is now 'Create room'

* Try adding a background logcat process

* 'Sign out' is now 'Remove this device'

* Adjust the logcat filtering so it silences everything that's not our app, otherwise the logs can get quite large
2026-04-01 13:30:01 +02:00
Benoit Marty
b5830f5016 Update wording from "Enter recovery key" to "Use recovery key" 2026-03-16 17:19:49 +01:00
Jorge Martin Espinosa
f5c250ed7a Fix Maestro tests again (#6167)
* Increase the timeout for asserting 'Be in your element' is visible

* Disable the chrome onboarding flow. This simplifies the code a lot and helps avoid corner cases.

* More delays with timeout!

* Add more info to the summary, specially when the tests fail, so we can quickly check what failed.

* Make sure Maestro tests can't run in parallel, but APK builds can
2026-02-12 16:24:19 +01:00
Jorge Martin Espinosa
b0c972edc5 Try fixing Maestro tests (again) (#6149)
* Try fixing Maestro tests again: they fail when creating a room because the texts have changed

* Try using a retry on the webview before the login so we skip Chrome's setup

* Try handling edge case when leaving a room does not remove the screen
2026-02-06 12:29:37 +01:00
Andy Balaam
53f79b49a1 Update the strings for the device verification flow (#5419)
* Update the strings for the device verification flow

Part of https://github.com/element-hq/element-meta/issues/2898
2025-09-29 16:42:10 +01:00
Benoit Marty
590c9fa6f5 Update Maestro test. Invite people step is now performed after the room has been created. 2025-08-13 18:01:43 +02:00
Jorge Martin Espinosa
a7ea665a3c Fix Maestro regression when coming back from room to the search screen (#5156) 2025-08-12 22:58:37 +02:00
Jorge Martin Espinosa
820be3ffb2 Disable Element Call Maestro tests for the time being (#5064) 2025-07-22 17:28:57 +02:00
Jorge Martin Espinosa
7b7f2d9cb3 Maestro: fix MAS and EC breaking the tests (#4762) 2025-05-22 22:31:51 +02:00
Benoit Marty
318f72a78d Ensure the CI is marked as failed when Maestro test is failing (#4700)
* Ensure the CI is marked as failed when Maestro test is failing

* Fix typo in String to disable bookmark in ChromeCustomTab

* Fix Maestro test now that matrix.org is using MAS to authenticate.

* Fix Maestro test - other issues due to recent changes.

* Maestro: add test on Element Call

* Run through Chrome on boarding step.

* Try suggestion from https://github.com/mobile-dev-inc/Maestro/issues/1126#issuecomment-2842220361

* Revert "Try suggestion from https://github.com/mobile-dev-inc/Maestro/issues/1126#issuecomment-2842220361"

This reverts commit d400644622c1a240deb61040f9095e3221e07f21.

* Add comment on Maestro flow.
2025-05-15 17:14:41 +02:00
Jorge Martin Espinosa
40699dd3fa Test using Maestro CLI + emulator instead of Cloud (#4092)
Add Maestro local CI workflow:
- Remove previous Maestro Cloud.
- Use an emulator with Pixel 7 Pro - API 35.
- Allow to record several videos in the background to verify the run.
- Upload test results.
- Allow either dispatching a new flow, running the 'build apk' job or run with a PR after the 'Build APK' flow has succeeded.
2025-01-07 14:05:14 +01:00
Benoit Marty
38dd411f6a We need to scroll more, there are too many items. 2024-12-12 17:47:40 +01:00
Benoit Marty
9ae32a9618 Fix Maestro test. 2024-08-29 12:52:51 +02:00
Benoit Marty
f43de3fdc5 Increase Maestro timeout when verifying session. 2024-06-04 16:06:02 +02:00
Jorge Martin Espinosa
35702c04e9 Sign in with QR code (#2793)
* Add QR code login.
* Add FF to disable it in release mode.
* Force portrait orientation on the login flow.
* Create `NumberedList` UI components.
* Improve camera permission dialog.
* Make nodes in qrcode feature use `QrCodeLoginScope` instead of `AppScope`
* Bump SDK version.
* Fix maestro tests

---------

Co-authored-by: Benoit Marty <benoit@matrix.org>
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-05-31 14:38:27 +02:00
Jorge Martin Espinosa
902dd24e72 Plain text editor implementation based on markdown input (#2840)
* Add plain text editor based on markdown input
- Fix autofocus of message composer.
- Remove `Message` data class, fetch the details in `MessagesPresenter` instead.
- Remove `enable rich text` option from advanced settings, set it as a build configuration instead.
* Fix MentionSpanProvider
* Bump RTE library to released `v2.37.3`

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-05-21 13:58:53 +02:00
Jorge Martin Espinosa
b524645b89 UX cleanup: room details (#2816)
* UX cleanup: room details screen

Add new CTA buttons for Invite and Call actions

* Update screenshots

* Fix maestro

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-05-08 11:42:33 +02:00
Jorge Martin Espinosa
3436351619 Improve session recovery screens (#2657)
* Improve enter recovery key screen UI

* Add instructions to reset the encryption of the logged in account.

* Update screenshots

* Fix maestro flow

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-04-09 17:01:06 +00:00
Jorge Martin Espinosa
fcf1e6be27 Remove Room moderation feature flag (#2678)
* Remove the feature flag

* Add changelog

* Increase login timeout for Maestro
2024-04-09 17:53:07 +02:00
Jorge Martin Espinosa
c8b5458878 Add SessionData.needsVerification field (#2672)
* Add `SessionData.needsVerification`:
  - Allows us to add a skip button for debug builds.
  - We can have the verification state almost instantly.
  - It doesn't depend on network availability to know the verification state and display the UI.
* Add DB migration.
- Make the skip button in the verification flow skip the whole flow including the completed screen.
- Save the session as verified in `RustEncryptionService.recover(recoveryKey)`.
* Enforce session verification for existing users too.
* Fix verification confirmed screen subtitle (typo in id, was using the wrong string)
* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-04-09 17:28:12 +02:00
Jorge Martin Espinosa
8b335a9125 Move session verification to FTUE flow, make it mandatory (#2594)
* Move session verification to the FTUE
* Allow session verification flow to be restarted
* Use `EncryptionService` to display session verification faster
* Remove session verification item from settings
* Remove session verification banner from room list
* Remove 'verification needed' variant from the `TimelineEncryptedHistoryBanner`
* Improve verification flow UI and UX
* Remove 'verification successful' snackbar message
* Only register push provider after the session has been verified
* Hide room list while the session hasn't been verified
* Prevent deep links from changing the navigation if the session isn't verified
* Update screenshots
* Renamed `FtueState` to `FtueService`, created an actual `FtueState`.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-04-03 14:53:17 +00:00
ganfra
b15738ed2e RoomDirectory : fix maestro (search screen is closed automatically) 2024-03-29 16:17:49 +01:00
Jorge Martín
4644d6aa74 Fix Maestro 2024-03-21 16:27:03 +01:00
Benoit Marty
978a387ac6 Update Maestro test after wording change. 2024-02-23 15:28:47 +01:00
Benoit Marty
e623a4ec3f Maestro: scroll to be able to leave the DM. 2024-02-22 10:31:19 +01:00
Benoit Marty
64db9fa173 Add TestTag to the Recovery key field. 2024-02-22 10:25:47 +01:00
Benoit Marty
c85b716098 Add Maestro test to verify the session using recovery key. 2024-02-22 09:53:12 +01:00
Benoit Marty
03c8a14093 Add prefix MAESTRO_ to Maestro env variable. 2024-02-22 09:29:05 +01:00
Benoit Marty
689ca67fc3 Fix Maestro test. 2024-02-13 11:36:15 +01:00
Jorge Martin Espinosa
64a18afc1b Replace 'leave room' text with 'leave conversation' for DMs (#2231)
* Replace 'leave room' text with 'leave conversation' for DMs

* Add `isDm` property to both `RoomSummary` and `RoomListRoomSummary`

* Remove redundant `leave_conversation_alert_subtitle_*` texts

* Fix maestro flow

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-01-16 15:49:44 +01:00
Benoit Marty
1013fe04e1 Fix Maestro 2023-12-26 16:55:58 +01:00
Benoit Marty
84c49a4025 Fix Maestro 2023-12-18 09:59:02 +01:00
Benoit Marty
d67d29283e Replace test of server without sliding sync with test of homeserver resolution. 2023-12-14 15:34:57 +01:00
ElementBot
abea28a5d2 Sync Strings (#1839)
* Sync Strings from Localazy

* Fix 'Report a problem' screen title

---------

Co-authored-by: bmarty <bmarty@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2023-11-20 09:07:53 +00:00
Benoit Marty
f998951531 Maestro: close keyboard first 2023-11-09 11:26:20 +01:00
Benoit Marty
22e62e9bee Maestro: scroll to see the item 2023-11-09 11:08:03 +01:00
Benoit Marty
408fc55110 Maestro navigate to more screen 2023-11-09 11:07:44 +01:00
Benoit Marty
df1a02a8b1 Fix Maestro test due to wording change. 2023-11-09 10:47:33 +01:00
Benoit Marty
806525d4ed Fix Maestro (do not rely on text) 2023-11-02 11:57:11 +01:00
Benoit Marty
d05f94e574 Fix maestro test: chat backup is disabled by default. 2023-11-02 11:23:10 +01:00
Benoit Marty
323765c3bc Fix maestro test. 2023-11-02 09:23:07 +01:00
Benoit Marty
72e46b259a Fix Maestro test 2023-10-30 12:41:16 +01:00
Benoit Marty
bb55a5676c Secure backup 2023-10-27 12:18:40 +02:00
Benoit Marty
72eb1dca0a Maestro No need to close the keyboard after fix from #1593 2023-10-20 12:08:59 +02:00
Benoit Marty
ced5cb0278 Maestro test: change server to test (one of our) server which does not support sliding sync. (#1066) 2023-10-03 10:39:59 +02:00
Benoit Marty
46296997f6 Maestro test: change server (again) to test server which does not support sliding sync. (#1066) 2023-10-02 17:39:23 +02:00
Benoit Marty
6702dc6895 Maestro: ensure the Rich Text Editor can be clicked by Maestro.
We cannot click on the hint "Message" anymore, since it's now a separate Text.
2023-09-13 14:33:32 +02:00
Benoit Marty
7be1b8cc12 Maestro cli 1.32.0 does not like integer with this format :/ 2023-09-13 13:49:08 +02:00
Marco Romano
e271d7818b Poll: Maestro tests 2023-08-31 14:49:50 +02:00
Benoit Marty
4843e9819f Maestro test: fix test failing locally 2023-08-17 16:18:37 +02:00