Commit graph

60 commits

Author SHA1 Message Date
Jorge Martin Espinosa
cf072fa1e1
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
d0f26777da
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
1045f99d18
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
41287c5f59
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
ff9603f338 RoomDirectory : fix maestro (search screen is closed automatically) 2024-03-29 16:17:49 +01:00
Jorge Martín
cfbff78667 Fix Maestro 2024-03-21 16:27:03 +01:00
Benoit Marty
702e33dfdc Update Maestro test after wording change. 2024-02-23 15:28:47 +01:00
Benoit Marty
f6555489bb Maestro: scroll to be able to leave the DM. 2024-02-22 10:31:19 +01:00
Benoit Marty
3543d9398e Add TestTag to the Recovery key field. 2024-02-22 10:25:47 +01:00
Benoit Marty
335c0aee33 Add Maestro test to verify the session using recovery key. 2024-02-22 09:53:12 +01:00
Benoit Marty
15728d6b58 Add prefix MAESTRO_ to Maestro env variable. 2024-02-22 09:29:05 +01:00
Benoit Marty
2aa453ab91 Fix Maestro test. 2024-02-13 11:36:15 +01:00
Jorge Martin Espinosa
27f55c0bc4
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
076b487a0a Fix Maestro 2023-12-26 16:55:58 +01:00
Benoit Marty
23d664d3b1 Fix Maestro 2023-12-18 09:59:02 +01:00
Benoit Marty
1593c66cba Replace test of server without sliding sync with test of homeserver resolution. 2023-12-14 15:34:57 +01:00
ElementBot
eeb9b30d80
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
d7a371d710 Maestro: close keyboard first 2023-11-09 11:26:20 +01:00
Benoit Marty
8be26db977 Maestro: scroll to see the item 2023-11-09 11:08:03 +01:00
Benoit Marty
1810a2730e Maestro navigate to more screen 2023-11-09 11:07:44 +01:00
Benoit Marty
0210ba49fe Fix Maestro test due to wording change. 2023-11-09 10:47:33 +01:00
Benoit Marty
548bf99c80 Fix Maestro (do not rely on text) 2023-11-02 11:57:11 +01:00
Benoit Marty
fec3f93bad Fix maestro test: chat backup is disabled by default. 2023-11-02 11:23:10 +01:00
Benoit Marty
23cf703925 Fix maestro test. 2023-11-02 09:23:07 +01:00
Benoit Marty
f736152945 Fix Maestro test 2023-10-30 12:41:16 +01:00
Benoit Marty
9807ebf649 Secure backup 2023-10-27 12:18:40 +02:00
Benoit Marty
720cb681cf Maestro No need to close the keyboard after fix from #1593 2023-10-20 12:08:59 +02:00
Benoit Marty
d94cc58303 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
e65f160b13 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
aedfed3be9 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
c6d68e8392 Maestro cli 1.32.0 does not like integer with this format :/ 2023-09-13 13:49:08 +02:00
Marco Romano
582705139e Poll: Maestro tests 2023-08-31 14:49:50 +02:00
Benoit Marty
6bdd9ff1db Maestro test: fix test failing locally 2023-08-17 16:18:37 +02:00
Benoit Marty
9bce5a1968 Maestro test: add assertion for server with no sliding sync error. 2023-08-17 16:18:37 +02:00
Benoit Marty
76c138580c Maestro test: change server to test server which does not support sliding sync. (#1066) 2023-08-17 16:18:37 +02:00
Benoit Marty
673bebc9c0 fix typo 2023-08-17 16:18:37 +02:00
Marco Romano
8986cf5669
Add maestro test for send location (#914)
Originally part of https://github.com/vector-im/element-x-android/pull/770
It's been extracted out since it's currently blocked by our lack of maestro cloud credits.

- https://github.com/vector-im/element-meta/issues/1682
2023-07-19 14:46:56 +02:00
Jorge Martin Espinosa
2488432805
Hide encryption history + FTUE flow (#839)
* First attempt at implementing encrypted history banner and removing old UTDs

* Get the right behavior in the timeline

* Implement the designs

* Extract post-processing logic, add tests

* Add encryption banner to timeline screenshots

* Create FTUE feature to handle welcome screen and analytics

* Move classes to their own packages, add tests for `DefaultFtueState`.

* Remove unnecessary private MutableStateFlow

* Move some FTUE related methods and classes back to the `impl` module

* Handle back press at each FTUE step

* Remove unneeded `TestScope` receiver for `createState` in tests.

* Use light & dark previews for the banner view.

* Move color customization from `TextStyle` to `Text` component.

* Rename `InfoList` design components, use them in `AnalyticsOptInView` too.

* Cleanup MatrixClient.

* Fix copy&paste error

Co-authored-by: Benoit Marty <benoit@matrix.org>

* Fix typo

* Fix Maestro tests

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2023-07-17 18:34:36 +02:00
Marco Romano
38ecac7b59 Add Maestro tests for create & join rooms (#472)
I created 2 additional test users to use them as MXID we lookup during room creation.

I.e. we will not login as those users, it's just 2 known MXIDs that we know exist so we can look them up.

- https://github.com/vector-im/element-x-android/issues/409
2023-07-04 13:33:59 +02:00
Benoit Marty
000ef93dc5 Update Meastro test after iteration on OnBoarding screen. 2023-07-04 10:56:03 +02:00
Benoit Marty
31f51f5127 Update Maestro test regarding settings. 2023-07-03 17:09:04 +02:00
Marco Romano
2f4dc2407e Change app name in maestro tests (#747)
App name has changed so now maestro tests fail.
2023-07-03 08:49:45 +00:00
Benoit Marty
0c64921f10 Merge pull request #549 from vector-im/feature/bma/onboardingServer
Onboarding iteration
2023-06-13 09:21:50 +02:00
Benoit Marty
4266faa204 Update maestro test regarding the new login flow. 2023-06-09 10:19:49 +02:00
Jorge Martin Espinosa
e376c1be82 [Message actions] New UI for message composer and editing (#526)
* Add UI for edit composer mode

* Remove leftover code from the RTE implementation

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-06-07 13:06:19 +02:00
Yoan Pintas
f534ecda96 Init analytics modules (#350) 2023-06-05 13:11:34 +00:00
Benoit Marty
13990cba7c Update maestro tests. 2023-06-01 10:57:36 +02:00
Chris Smith
92e9d3a127 Fix a few FFI leaks (#405)
Fix a few FFI leaks

These are instances where we obtain an FFIObject and don't call
Close on it to release the underlying reference on the Rust side.

The worst instance here was leaking an object per room member
every time we refreshed the member list
2023-05-12 10:50:39 +00:00
Benoit Marty
6b77313fd6 Move the button to open the Showkase browser to the developer settings screen. (#389) 2023-05-04 17:29:03 +02:00
Jorge Martin Espinosa
0389f782c9 Fix: Maestro tests fail when using settings (#358)
* Fix Maestro tests using 'Settings' to open the settings screen.

* Try to allow manually running Maestro tests.

* Also adjust logout flow.
2023-04-25 18:01:54 +02:00