Michael Kaye
17d85840a7
Ignore tests.
...
All failing with
```
im.vector.app.SecurityBootstrapTest > testBasicBootstrap[Nexus_5X_API_28(AVD) - 9] FAILED
java.lang.IllegalStateException: Method addObserver must be called on the main thread
at androidx.lifecycle.LifecycleRegistry.enforceMainThreadIfNeeded(LifecycleRegistry.java:317)
im.vector.app.VerifySessionInteractiveTest > checkVerifyPopup[Nexus_5X_API_28(AVD) - 9] FAILED
java.lang.IllegalStateException: Method addObserver must be called on the main thread
at androidx.lifecycle.LifecycleRegistry.enforceMainThreadIfNeeded(LifecycleRegistry.java:317)
im.vector.app.VerifySessionPassphraseTest > checkVerifyWithPassphrase[Nexus_5X_API_28(AVD) - 9] FAILED
java.lang.IllegalStateException: Method addObserver must be called on the main thread
at androidx.lifecycle.LifecycleRegistry.enforceMainThreadIfNeeded(LifecycleRegistry.java:317)
```
2022-06-07 15:44:27 +01:00
Michael Kaye
5eac30d283
Remove UI tests from connected android test run via @Ignore
2022-06-07 15:42:58 +01:00
ericdecanini
5cc7deea4e
Merge remote-tracking branch 'origin/develop' into task/eric/when-arrow-alignment
...
# Conflicts:
# matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/auth/registration/DefaultRegistrationWizard.kt
# matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/keysbackup/DefaultKeysBackupService.kt
# matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/summary/RoomSummaryDataSource.kt
# matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/worker/MatrixWorkerFactory.kt
# vector/src/main/java/im/vector/app/core/ui/views/ReadReceiptsView.kt
# vector/src/main/java/im/vector/app/core/utils/TextUtils.kt
# vector/src/main/java/im/vector/app/features/crypto/recover/BootstrapSharedViewModel.kt
# vector/src/main/java/im/vector/app/features/crypto/verification/VerificationBottomSheetViewModel.kt
# vector/src/main/java/im/vector/app/features/home/HomeActivity.kt
# vector/src/main/java/im/vector/app/features/home/HomeActivityViewModel.kt
# vector/src/main/java/im/vector/app/features/home/HomeDetailFragment.kt
# vector/src/main/java/im/vector/app/features/home/room/detail/TimelineFragment.kt
# vector/src/main/java/im/vector/app/features/home/room/detail/timeline/factory/LiveLocationShareMessageItemFactory.kt
# vector/src/main/java/im/vector/app/features/home/room/list/RoomListFragment.kt
# vector/src/main/java/im/vector/app/features/home/room/list/RoomListSectionBuilderSpace.kt
# vector/src/main/java/im/vector/app/features/home/room/list/RoomSummaryItemFactory.kt
# vector/src/main/java/im/vector/app/features/onboarding/OnboardingViewModel.kt
# vector/src/main/java/im/vector/app/features/onboarding/ftueauth/FtueAuthVariant.kt
2022-06-03 12:06:23 +02:00
ericdecanini
e6e05317e1
Merge remote-tracking branch 'origin/develop' into task/eric/code-style-parenthesis
...
# Conflicts:
# matrix-sdk-android/src/androidTest/java/org/matrix/android/sdk/internal/crypto/verification/qrcode/VerificationTest.kt
# matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/keysbackup/DefaultKeysBackupService.kt
# matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/DefaultRoomService.kt
# matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/summary/RoomSummaryDataSource.kt
# vector/src/main/java/im/vector/app/features/home/room/list/RoomSummaryItemFactory.kt
# vector/src/main/java/im/vector/app/features/media/ImageContentRenderer.kt
2022-05-31 14:21:16 +02:00
ericdecanini
b3fdb5ed17
Changes code style when arrow alignment
2022-05-23 12:57:57 +02:00
ericdecanini
3f3662e605
Changes code style method parameters new line around parentheses to true
2022-05-23 12:30:42 +02:00
Benoit Marty
ede784684f
Change in KeysBackupService: isEnabled
and isStucked
are now fun, and state
has been renamed to getState
and is now a fun.
2022-05-20 21:14:42 +02:00
fedrunov
18842b5e3d
leaving space aligned with ios ( #5942 )
2022-05-19 11:49:08 +02:00
Michael Kaye
010be9184c
Fix threading UI test failure by adding a sleep 30s.
2022-05-16 15:59:41 +01:00
Benoit Marty
3fc4083aca
Make the constructor public
2022-05-16 12:23:10 +02:00
Benoit Marty
f54aa60803
Fix test compilation warning after bump kotlin-gradle-plugin from 1.6.0 to 1.6.21
2022-05-10 17:00:54 +02:00
ericdecanini
3fb03e2b2c
Reformats project based on editorconfig
2022-05-05 19:10:35 +02:00
Benoit Marty
3ecde755e0
Rename val
2022-05-04 17:51:14 +02:00
Benoit Marty
40d3203297
Use Clock interface app side
2022-05-03 15:02:34 +02:00
Benoit Marty
7fa1af3819
Looks like ktlint and Android Studio does not order imports with the same rules :/. Let's please ktlint for the CI :/
2022-04-29 10:05:51 +02:00
Benoit Marty
f48be229c8
Fix issue with ignored users. Preference Category and Preference title have the same value.
2022-04-28 16:39:59 +02:00
Benoit Marty
f6fa794a18
Restore voice call test (was fixed in #5847 )
2022-04-28 14:40:11 +02:00
Benoit Marty
0092a7057e
Access the various services with a getter
2022-04-25 09:49:51 +02:00
Benoit Marty
3ed6a90fde
Fix sanity test after #5773
2022-04-21 21:08:28 +02:00
ericdecanini
de899bbb18
Formats entire project
2022-04-21 11:50:15 +02:00
Benoit Marty
a3575fbc6b
Move PrivateKeysInfo
to api package
2022-04-12 15:38:20 +02:00
Benoit Marty
fd76db9616
Update test
2022-04-05 22:16:42 +02:00
Adam Brown
9d3d574d28
FTUE - Finalising personalisation journey ( #5519 )
...
* enabling the personalisation flow and promoting the strings for translation
* delegating the fake vector features to the static defaults, the fake exists for allowing overrides when needed
* incorporating the personalisation screens into the UI test signup
* adding changelog entry
* removing unused import
* putting the personalisation UI test flow behind the feature flag so that we can keep it disabled
* disabling the personalisation flow, we'll batch enable with other parts of the FTUE flow
* enabling the personalisation feature for registration unit tests which expect it to be enabled
2022-03-30 09:09:46 +01:00
Adam Brown
5bbc9dc102
fixing the onboarding sanity test failing
...
- adds tapping the new take me home button within the sanity test
2022-03-23 09:02:37 +00:00
ariskotsomitopoulos
8b254212af
Merge branch 'develop' into feature/aris/thread_live_thread_list
2022-02-24 12:45:08 +02:00
ariskotsomitopoulos
8788fb974d
Add new use case about threads in the allScreensTest
2022-02-23 18:39:02 +02:00
Adam Brown
9a80ff7673
fixing space menu items not being clicked on during sanity test
...
- adds a separate clickOn helper for interacting with dialog bottom sheets, it seems the space menu sheet lives in a separte root to the rest of the suite (could be the fast switching of highlighting existing issues)
2022-02-23 12:01:47 +00:00
Michael Kaye
66b30c33c8
Improve reliability of sanity tests.
...
We add the permission so we can write to the external storage with the screenshots
We rename the screenshots so they can be uploaded via the github action correctly
We always do the upload even if the test build has failed.
2022-02-18 14:38:22 +00:00
Benoit Marty
ac9f138fc0
Merge pull request #5185 from vector-im/feature/adm/decouple-matrix-creation
...
Decoupling Matrix creation from Application
2022-02-17 15:35:09 +01:00
NIkita Fedrunov
ce3fd43389
Merge branch 'develop' into feature/nfe/spaces_screens_tests
...
# Conflicts:
# vector/src/androidTest/java/im/vector/app/EspressoExt.kt
# vector/src/androidTest/java/im/vector/app/ui/UiAllScreensSanityTest.kt
2022-02-16 13:42:39 +01:00
NIkita Fedrunov
29088acdb3
Code review fixes
2022-02-16 13:04:28 +01:00
Adam Brown
fd2d9287e7
creating separate creator for the matrix instance to avoid ambiguous non singleton/duplicated singleton usages
...
- also documents the static methods
2022-02-14 12:46:16 +00:00
ganfra
e72593304f
UITests: remove search menu item test case (not visible anymore in E2E room)
2022-02-08 19:35:33 +01:00
Adam Brown
0390994e14
removing unused import
2022-02-08 15:51:30 +00:00
Adam Brown
a63e79bad5
initialising a new matrix instance for android tests, ideally this would also be backed back the test module instead of the singleton state
2022-02-08 15:36:23 +00:00
Adam Brown
63a937c096
taking the use case screen into account when accessing the sign up flows in the sanity tests
2022-02-03 11:28:33 +00:00
Benoit Marty
cd16d3f19b
Same issue but in the test
2022-02-02 10:42:39 +01:00
Adam Brown
f66bd4ffe9
waiting for the emoji to become visible instead of a hardcoded sleep
2022-01-28 13:20:56 +00:00
Adam Brown
d6f0e065aa
fixing missing when branches warning
2022-01-28 12:49:28 +00:00
Adam Brown
0c2116a95d
using espresso long click instead of barista helper and waiting for reaction before interacting
...
- the non barista long pressing works for the menu opening, maybe this will fix the CI
2022-01-28 12:48:26 +00:00
NIkita Fedrunov
dff0b5dce5
Add all screens about Spaces in allScreensTest
2022-01-28 09:40:00 +01:00
Benoit Marty
2e36ca5650
Merge pull request #5070 from vector-im/feature/bma/test_screens
...
Test screens in the settings
2022-01-27 14:21:10 +01:00
Adam Brown
19a46afe7b
untracking activities during espresso runs as soon as they're idle
...
- Sometimes activities are instantly idle without going through the lifecycleChanged callback which means we were registering callsbacks which were duplicated and triggering for later waits
2022-01-26 18:47:24 +00:00
Benoit Marty
891367752b
Test the legals screen ( #4709 )
2022-01-26 18:00:49 +01:00
Benoit Marty
5989d6b82a
Test analytics opt-in screen from the settings
2022-01-26 17:41:09 +01:00
Benoit Marty
f6d7959cdc
Fix sanity test
2022-01-25 21:37:24 +01:00
Adam Brown
211f184066
updating splash submit copy to use Create account when the I already have an account feature is enabled
2022-01-19 10:38:28 +00:00
Adam Brown
70a95fc373
removing unused import
2022-01-18 16:21:37 +00:00
Adam Brown
030d9ef351
extracting inner class to its own file and updating function names relative to their usage
2022-01-18 16:20:33 +00:00
Adam Brown
eb763bb5bb
adding onboarding option crawling to the sanity tests
2022-01-18 16:20:33 +00:00
Adam Brown
a3dd3a830c
fixing wrong wait function being used
2022-01-18 16:20:33 +00:00
Benoit Marty
f8afe04a3b
Merge pull request #4842 from vector-im/feature/aris/integration_tests_improvement
...
Trying to fix integration tests
2022-01-12 17:11:16 +01:00
Benoit Marty
d5968e442c
Test: Fix test after change on OnBoarding screens
2022-01-10 14:31:29 +01:00
Benoit Marty
a552be040d
Test: Analytics opt-in
2022-01-10 14:16:58 +01:00
Benoit Marty
67c2f9ac51
Cleanup
2022-01-10 14:16:03 +01:00
ariskotsomitopoulos
261030f51e
- Fix integration tests (still not perfect while github actions are very very limited for that)
...
- Split them in msdk and app test along with multiple smaller steps.
- Mark the not working tests with @Ignore so that they will not run neither local or on github actions
- Add user friendly comment on PR to view the results
2022-01-05 23:42:57 +02:00
Benoit Marty
185afe403f
Rename some string resources
2022-01-04 14:25:36 +01:00
Benoit Marty
27161bf794
preventMutation is not needed anymore, since we now uses EpoxyCharSequence
2022-01-03 14:23:29 +01:00
Adam Brown
6918372a87
extracting the emoji processing to an interface so that we can override the behaviour in the unit test
2021-12-17 10:38:49 +00:00
Benoit Marty
32820f7893
Comment out some part of the test to make it pass. Tested manually for this time.
2021-12-14 13:27:33 +01:00
Benoit Marty
b9799b46fd
Fix test compilation
2021-12-13 22:45:24 +01:00
Benoit Marty
96b186ca8c
Add tests to cover the new feature
2021-12-13 20:28:58 +01:00
Benoit Marty
e8fbbe2b97
Fix the test
2021-12-13 20:09:33 +01:00
Adam Brown
e3155b6c98
removing notifications v1, v2 is live
2021-12-03 16:08:44 +00:00
Adam Brown
11669fa2ac
porting the notifications setting version to the vector features
2021-12-03 15:26:43 +00:00
Adam Brown
cc27c37c1e
fixing ktlint errors
2021-11-18 18:50:51 +00:00
Adam Brown
08f9fad23e
adding logs to try and find out where the github actions are failing
2021-11-18 18:43:59 +00:00
Adam Brown
1c6b2ceb4b
adding retrying to the reaction long pressing and extra visibilty check for dialogs
2021-11-18 17:53:52 +00:00
Adam Brown
1b5868644a
add wait for dialogs
2021-11-18 17:53:34 +00:00
Adam Brown
38f0640d2c
tapping the timeline settings via the overflow small devices can't tap the title
...
- waiting for the message edits bottom sheet
- waiting for the reactions bottom sheet
2021-11-18 17:52:45 +00:00
Adam Brown
97d768e392
adding expected open/closed state to the bottom sheet waiting
2021-11-18 17:52:20 +00:00
Adam Brown
69745ea74e
waiting until the room avatar item is ready as the title and list have a loading state
2021-11-18 17:51:57 +00:00
Adam Brown
b57d414189
increase app timeout as sign out can block for a long time
2021-11-18 17:51:34 +00:00
Benoit Marty
8d8565ca63
Quick fix on this file
2021-11-15 21:37:51 +01:00
Benoit Marty
eb39b37374
Fix warning after rebase (it's for test, so OK to suppress warning)
2021-11-15 21:35:01 +01:00
Adam Brown
42648298b6
formatting
2021-11-10 17:09:08 +00:00
Adam Brown
10a8a45391
waiting for the sent message to be rendered in the timeline
2021-11-10 17:07:10 +00:00
Adam Brown
c8ae3f9a83
removing unused imports
2021-11-10 17:07:10 +00:00
Adam Brown
411be43287
waiting for the edited text to appear instead of sleeping
2021-11-10 17:07:10 +00:00
Adam Brown
2583a6d6bf
taking screenshots on sanity test failure
2021-11-10 17:07:10 +00:00
Adam Brown
fc865682b1
waiting for the message actions bottom sheet when interacting with the message options
2021-11-10 17:07:10 +00:00
Adam Brown
39b4116699
adding bottomsheet idling resource to wait for expand and hide events
2021-11-10 17:07:10 +00:00
Adam Brown
e5edfe9c73
adding dedicated message menu robot and adding sanity check for developer mode flows
2021-11-10 17:07:10 +00:00
Adam Brown
2a66efb733
adding helper to fetch text from resources
2021-11-10 17:07:10 +00:00
Adam Brown
528c5a3671
adding warning when the signout flow is unexpected
2021-11-08 17:08:53 +00:00
Adam Brown
3add33eb0d
removing unused imports
2021-11-08 15:11:03 +00:00
Adam Brown
579963733b
moving verification dismissing to the robot
2021-11-08 15:03:34 +00:00
Adam Brown
f61d20a7f8
adding sign out + re-sign in flows to the robots
...
- the verification popup if flaky so we're attempting both exit flows if needed
2021-11-08 14:50:58 +00:00
Benoit Marty
2b58c0e5ab
ktlint
2021-11-08 15:06:23 +01:00
Adam Brown
78675d4aa1
fixing formatting
2021-11-05 15:48:45 +00:00
Adam Brown
657a613374
ensuring we wait for the create room fragment to be ready
2021-11-05 15:47:21 +00:00
Adam Brown
b1397aee51
relying on createRoom to close itself rather than the newRoom flow
2021-11-05 15:35:57 +00:00
Adam Brown
0405c2df8d
adding missing activity wait whilst navigating to the room members
2021-11-05 15:01:06 +00:00
Adam Brown
803929ea45
using static imports for the espresso helpers and reusing existing wait for view
2021-11-05 14:56:29 +00:00
Adam Brown
7b6773f90e
removing no longer needed sleeps
2021-11-05 14:44:22 +00:00
Adam Brown
264f49b02c
moving settings robots to their own pacakge
2021-11-05 14:41:01 +00:00
Adam Brown
32f5893798
moving the signout to the robot but commenting out whilst a bug is fixed
...
- also makes waitForActivity stronger by also waiting for child views
2021-11-05 14:38:20 +00:00
Adam Brown
0f1c9f4af5
porting ui base to be a onboarding robot and providing via the element robot
2021-11-05 13:56:51 +00:00
Adam Brown
17789f00bb
ensuring we end up back where we started via the root robot helpers
2021-11-05 13:29:45 +00:00
Adam Brown
d2aec09b5b
making all waitForViews have an initial 100ms wait this completely removed the flakyness when running the tests on my emulator
2021-11-05 13:29:16 +00:00