Maxime NATUREL
da3d3308b4
Fix unit tests in ViewModel
2022-09-27 15:04:34 +02:00
Maxime NATUREL
0fe5ee68f2
Unit tests for interception of signout process result
2022-09-27 15:04:34 +02:00
Maxime NATUREL
8d870b8220
Replace IsCurrentSessionUseCase by using DeviceFullInfo field
2022-09-27 15:04:34 +02:00
Maxime NATUREL
04ad2daa80
Unit tests for signout use case
2022-09-27 15:04:34 +02:00
Maxime NATUREL
bf42220422
Unit tests for view navigator
2022-09-27 15:04:34 +02:00
Adam Brown
d308b72868
Merge pull request #7129 from vector-im/feature/adm/screenshot-testing-example-test
...
Example screenshot test
2022-09-27 12:02:38 +01:00
Adam Brown
28f4e79b43
attempting to use 0% difference for screenshot verification
...
- this may cause false errors with the navigation/status bar https://github.com/cashapp/paparazzi/issues/453#issuecomment-1254001714
2022-09-27 10:16:45 +01:00
Adam Brown
08c79a798e
Merge pull request #7115 from vector-im/docs/unit-testing
...
[docs] Unit testing documentation
2022-09-26 16:51:42 +01:00
Adam Brown
be1e8a8ef8
adding and recording example paparazzi test
2022-09-26 14:14:03 +01:00
Maxime NATUREL
fd85ad0f1b
Add Init action + corresponding initialized event
2022-09-26 09:46:58 +02:00
Maxime NATUREL
5498a7e96e
Adding unit tests for view model
2022-09-26 09:46:58 +02:00
Maxime NATUREL
c96d671e6b
Adding unit tests for navigator
2022-09-26 09:46:58 +02:00
Maxime NATUREL
4a3966d4f5
Improve rename session use case and add tests
2022-09-26 09:46:58 +02:00
Maxime NATUREL
3de96a3a0c
Adding new method into navigator
2022-09-26 09:46:58 +02:00
ericdecanini
40c2e95a54
Adds PushersManagerTest
2022-09-25 11:58:02 -04:00
Maxime NATUREL
99c2088d0e
Using UiaCancelledException on reAuth cancellation
2022-09-23 16:39:41 +02:00
Maxime NATUREL
0d7d841d73
Adding unit tests
2022-09-23 16:39:41 +02:00
Onuray Sahin
7cd30a1ed4
Merge branch 'develop' into feature/ons/device_manager_security_sessions
2022-09-23 16:16:49 +03:00
Onuray Sahin
8de9ef8c7d
Code review fixes.
2022-09-21 14:30:24 +03:00
Onuray Sahin
3ea054f8e1
Fix unit test.
2022-09-20 15:06:52 +03:00
Maxime NATUREL
aa7f7d7111
Fix after rebase
2022-09-20 10:46:10 +02:00
Maxime NATUREL
17bb14c1dc
Fixing coding style issues
2022-09-20 10:46:10 +02:00
Maxime NATUREL
921533e4b2
Getting the current session verification status to change verify button visibility
2022-09-20 10:46:10 +02:00
Maxime NATUREL
95d133e0e2
Moving some components inside the verification package
2022-09-20 10:46:10 +02:00
Maxime NATUREL
a6cb25d0c3
Verification of another session
2022-09-20 10:46:10 +02:00
Maxime NATUREL
54a4dc7e9a
Inverting some arguments to ease readability
2022-09-20 10:45:47 +02:00
Maxime NATUREL
cf6b8d76a8
Removing non necessary session id arg from ViewAction
2022-09-20 10:45:46 +02:00
Maxime NATUREL
e0c4706cf9
Removing non necessary session arg from ViewEvent
2022-09-20 10:45:46 +02:00
Maxime NATUREL
584c699409
Verify current session in Session overview screen
2022-09-20 10:45:46 +02:00
Maxime NATUREL
35db958279
Adding unit tests for new action in DevicesViewModel
2022-09-20 10:45:46 +02:00
Maxime NATUREL
d826327773
Adding unit tests for CheckIfCurrentSessionCanBeVerifiedUseCase
2022-09-20 10:45:46 +02:00
Onuray Sahin
2ad0cd46bb
Fix unit tests.
2022-09-19 16:18:30 +03:00
Adam Brown
0385f387d9
using value notion instead of key for the elements in the circular cache
2022-09-16 16:34:42 +01:00
Onuray Sahin
6823258abb
Add test for view navigation.
2022-09-16 17:41:51 +03:00
Onuray Sahin
61f5f81305
Merge branch 'develop' into feature/ons/device_manager_filter
...
# Conflicts:
# library/ui-strings/src/main/res/values/strings.xml
# vector/src/main/AndroidManifest.xml
# vector/src/main/java/im/vector/app/core/di/MavericksViewModelModule.kt
# vector/src/main/java/im/vector/app/features/settings/devices/v2/list/SessionsListHeaderView.kt
# vector/src/main/res/layout/fragment_settings_devices.xml
2022-09-16 15:25:09 +03:00
Onuray Sahin
e2313ad1cd
Implement unit tests.
2022-09-16 13:05:06 +03:00
Onuray Sahin
fd9dca9621
Fix existing tests.
2022-09-15 17:39:08 +03:00
Maxime NATUREL
a1bdfd1a5c
Using shouldBeNull() method in unit tests
2022-09-14 10:31:22 +02:00
Maxime NATUREL
279820224c
Long press on the whole content item
2022-09-14 10:31:22 +02:00
Maxime NATUREL
6cd0fbb614
Unit tests for the ViewModel
2022-09-14 10:31:22 +02:00
Maxime NATUREL
c1dfa925c0
Unit tests for use cases to check visibility of sections
2022-09-14 10:31:22 +02:00
Maxime NATUREL
4205b4a777
Unit tests for session overview navigator
2022-09-14 10:31:22 +02:00
Maxime NATUREL
15cf8b63a0
Using unwrap() extension method
2022-09-14 10:31:21 +02:00
Benoit Marty
e19647f6ca
Firebase provides Map<String, String?>
2022-09-09 16:33:57 +02:00
Benoit Marty
7c4527fba6
Fix test - no need to use Moshi to parse FCM Push data.
2022-09-09 15:59:34 +02:00
Maxime NATUREL
c45f536855
RefreshDevicesOnCryptoDevicesChangeUseCase unit tests
2022-09-08 09:48:45 +02:00
Maxime NATUREL
047384c08c
Fix some coding style issues
2022-09-08 09:48:45 +02:00
Maxime NATUREL
3566b10e3c
DevicesViewModel unit tests
2022-09-08 09:48:45 +02:00
Maxime NATUREL
438f302787
GetDeviceFullInfoListUseCase unit tests
2022-09-08 09:48:45 +02:00
Maxime NATUREL
07d9e35842
GetCurrentSessionCrossSigningInfoUseCase unit tests
2022-09-08 09:48:45 +02:00
Maxime NATUREL
27031ab267
RefreshDevicesUseCase unit tests
2022-09-08 09:48:45 +02:00
Maxime NATUREL
06d447247a
Updating existing unit tests
2022-09-08 09:48:45 +02:00
Maxime NATUREL
39a0b3b1ba
Moving recently created use cases inside v2 package
2022-09-08 09:48:45 +02:00
Maxime NATUREL
712d39b9dd
Inject new ViewModel in the fragment V2 + add use cases
2022-09-08 09:48:43 +02:00
Maxime NATUREL
2148270773
Update unit tests
2022-09-07 09:32:48 +02:00
Maxime NATUREL
1ad585e154
Adding last seen details + fix observation of wrong deviceId in ViewModel
2022-09-07 09:32:47 +02:00
Maxime NATUREL
fde7072bc7
Unit tests for computing trust level of device
2022-09-07 09:32:47 +02:00
Maxime NATUREL
38a04c3655
Unit tests for GetCurrentSessionCrossSigningInfoUseCase
2022-09-07 09:32:47 +02:00
Maxime NATUREL
3f30cf0bee
Updating existing unit tests
2022-09-07 09:32:47 +02:00
Maxime NATUREL
b995f798f9
Adding unit tests for viewModel
2022-09-07 09:32:47 +02:00
Maxime NATUREL
0c3310dd16
Adding unit tests for the new use case
2022-09-07 09:32:47 +02:00
Maxime NATUREL
26dbd31717
Unit tests for navigator
2022-09-07 09:32:47 +02:00
Nikita Fedrunov
7cc7444bd5
applayout release experience ( #7003 )
2022-09-06 11:32:11 +02:00
Onuray Sahin
8d378408c5
Code review fixes.
2022-09-02 14:28:28 +02:00
Onuray Sahin
396da93a93
Test inactive sessions use case.
2022-09-02 14:28:27 +02:00
Eric Decanini
b5debe92c0
Merge pull request #6877 from vector-im/feature/eric/new-layout-navigation
...
Space Switching Back Navigation
2022-08-26 17:40:18 +02:00
Adam Brown
493d9240c2
parsing the space commands by checking for the size and last segment to find the space id to join/add to
2022-08-25 15:30:43 +01:00
ericdecanini
64894d4443
Merge remote-tracking branch 'origin/develop' into feature/eric/new-layout-navigation
...
# Conflicts:
# vector/src/main/java/im/vector/app/features/home/NewHomeDetailFragment.kt
2022-08-24 20:25:02 +02:00
ericdecanini
ace2c672ed
Merge remote-tracking branch 'origin/develop' into feature/eric/new-layout-navigation
2022-08-23 10:00:55 +02:00
Adam Brown
d7bc43584d
adding tests around forwarding to the edit server selection when the initial server selection fails
2022-08-22 17:24:11 +01:00
Adam Brown
4cc0b81c86
removing deeplink error handling as its now covered by the edit server flow instead
2022-08-22 17:24:11 +01:00
Adam Brown
0be46adfda
Merge pull request #6862 from vector-im/feature/adm/ftue-fragment-crashes
...
FTUE - Crash fixes
2022-08-22 17:21:31 +01:00
ericdecanini
edb2d5d78e
Merge remote-tracking branch 'origin/develop' into feature/eric/new-layout-navigation
...
# Conflicts:
# vector/src/main/java/im/vector/app/features/home/HomeActivity.kt
# vector/src/main/java/im/vector/app/features/home/NewHomeDetailFragment.kt
2022-08-22 14:56:14 +02:00
Adam Brown
9b57630eae
Merge pull request #6873 from vector-im/feature/adm/allow-trusting-certificates
...
FTUE - Fix trusting certificates during edit server flow
2022-08-22 11:47:50 +01:00
ericdecanini
4162eb8e55
Removes space header
2022-08-19 14:23:08 +02:00
ericdecanini
fecaf3e360
Merge remote-tracking branch 'origin/develop' into feature/eric/new-layout-navigation
2022-08-18 17:36:08 +02:00
ericdecanini
58e1fe4c01
Adds DefaultNavigatorTest
2022-08-18 17:15:12 +02:00
ericdecanini
789dffe4df
Adds tests related to backstack
2022-08-18 16:51:54 +02:00
Adam Brown
1d03460aee
removing ability to shortcut registration to waiting for email if the app is destroyed
...
- this behaviour puts the app in an invalid state as we've lost all the ViewState we've collect from the previous onboarding steps
- the app already handles restoring the onboarding state via the system restoration
2022-08-18 11:41:28 +01:00
Adam Brown
91176eca22
adding test cases around certificate errors being thrown and mapped
2022-08-18 11:41:19 +01:00
Adam Brown
e4a08d1be1
recreating the homeserver config from the retry action when handle certificate accept action
...
- adds unit tests around the edit/selection cases
2022-08-18 11:41:19 +01:00
Adam Brown
a6ff10cbaf
allowing fingerprint to be passed to the config factory
...
- which in turn allows the android Uri to be bypassed and a unit test around the direct local certificate case added
2022-08-18 11:41:19 +01:00
Adam Brown
4ed8fe0be8
lifting the login buttons view state to a dedicated model to make the fallback more obvious
...
- Updates tests to take into account the fallback case
2022-08-15 13:00:13 +01:00
Jorge Martin Espinosa
aecf460c96
Improve tests for lockscreen ( #6796 )
...
* Improve tests
* Address review comments.
* Refactor pin code tests and code to improve testability.
* Fix lint issues
2022-08-10 12:00:36 +00:00
Jorge Martín
dfc8526b47
Refactor lockscreen implementation.
...
Try to fix issues and simplify flow.
2022-08-09 14:03:39 +02:00
Jorge Martín
6e1e31bac1
Avoid crashes from unknown exceptions on lockscreen key migration.
2022-08-09 12:52:28 +02:00
Adam Brown
58d47df37b
Merge pull request #6736 from vector-im/feature/adm/non-ascii-username
...
Fixes crash when entering non ascii username during account creation
2022-08-09 11:52:02 +01:00
Adam Brown
7e7b98a3c1
Merge pull request #6668 from vector-im/feature/adm/onboarding-vm-tests
...
`OnboardingViewModel` tests
2022-08-08 13:37:53 +01:00
Maxime NATUREL
dd69b254f9
Merge pull request #6654 from vector-im/feature/mna/update-sending-period-lls
...
[Location share] Update minimum sending period to 5 seconds for a live
2022-08-04 14:17:00 +02:00
Adam Brown
a4ea47e740
catching username availabilty exceptions and handling as user facing error
2022-08-04 11:58:31 +01:00
Adam Brown
8aaf185a8e
Merge pull request #6517 from vector-im/feature/adm/build-config
...
Avoiding direct `BuildConfig` usage
2022-08-02 18:07:17 +01:00
Maxime NATUREL
ac8597e745
Merge pull request #6676 from vector-im/fix/mna/fix-memory-leaks-lls
...
[Location sharing] - Fix the memory leaks (PSG-656)
2022-08-02 18:01:48 +02:00
Adam Brown
8b9d1bb0d8
making use of the existing sdk int provider instead of supplying it via the BuildMeta
2022-08-02 14:32:12 +01:00
Adam Brown
fe1019f29f
using Config strict mode flag directly within the Application as the build meta can't be injected before super application.onCreate
2022-08-02 14:31:46 +01:00
Adam Brown
cceac66504
moving build flavor information to the build meta
2022-08-02 14:31:46 +01:00
Adam Brown
df02f505ad
moving git versioning to the buildMeta abstraction
2022-08-02 14:31:46 +01:00
Adam Brown
d42c27bfe0
lifting the low privacy build config to the config
2022-08-02 14:31:46 +01:00
Adam Brown
274b1a149c
moving analytics config to the config module, it's now up to forks to opt out rather than relying on the package name to not be vector
2022-08-02 14:31:23 +01:00
Jorge Martin Espinosa
c848615636
Disable 'Enable biometrics' option if there are not biometric authenticators enrolled. ( #6714 )
...
* Disable 'Enable biometrics' option if there are not biometric authenticators enrolled.
* Improve biometric pref enabled check
* Fix changelog issue
* Address review comments. Add extra catch clauses to key migrations.
* Add tests for key migrators
2022-08-02 15:31:08 +02:00
Maxime NATUREL
c926b4cc69
Fix moving some components to dedicated package
2022-08-02 10:47:38 +02:00
Maxime NATUREL
49ad37a7f6
Using Duration to have clearer syntax
2022-08-02 09:27:27 +02:00
Maxime NATUREL
be696f5a5c
Align naming of components for the live location feature
2022-08-02 09:09:19 +02:00
Adam Brown
d304624878
removing extra blank lines
2022-07-28 11:49:50 +01:00
Adam Brown
bb9459fcab
adding test around sso url fetching
2022-07-28 11:41:40 +01:00
ericdecanini
e6addd1319
Merge remote-tracking branch 'origin/develop' into task/eric/space-switching-unit-tests
...
# Conflicts:
# vector/src/main/java/im/vector/app/features/home/HomeDetailFragment.kt
2022-07-28 11:25:14 +02:00
Adam Brown
c4831510ac
adding tests around the state resetting
2022-07-27 17:17:36 +01:00
Adam Brown
a32a78751a
adding test around login with username and password
2022-07-27 16:40:12 +01:00
Adam Brown
87a0957d9a
adding test around login with token
2022-07-27 16:37:35 +01:00
Adam Brown
e77688b3f4
adding splash action tests
2022-07-27 16:37:17 +01:00
Adam Brown
0fcf7c7079
Merge pull request #6641 from vector-im/feature/adm/ftue-soft-exit-email-verification
...
FTUE - Allow editing email during email verification
2022-07-27 14:00:20 +01:00
Jorge Martín
b468a9da33
Improve lock screen implementation.
2022-07-27 14:02:18 +02:00
Adam Brown
fd255039f3
adding tests around initialising the viewmodel and handling email send success actions
2022-07-26 14:26:03 +01:00
Onuray Sahin
5c253bbd28
Code review fixes.
2022-07-22 17:21:23 +03:00
Onuray Sahin
242c14a156
Write test for the use case.
2022-07-22 14:34:06 +03:00
ericdecanini
a909779e08
Merge remote-tracking branch 'origin/develop' into task/eric/space-switching-unit-tests
...
# Conflicts:
# vector/src/main/java/im/vector/app/features/home/room/list/RoomListViewModel.kt
2022-07-21 10:48:57 +02:00
ericdecanini
d8fdaf0477
Moves UiStateRepository stubbing to fake class
2022-07-21 10:38:31 +02:00
ericdecanini
1d77f99148
Adds RoomSummaryFixture
2022-07-21 10:37:33 +02:00
ericdecanini
f0ae458a54
Changes AppStateHandler to SpaceStateHandler
2022-07-21 10:10:44 +02:00
ericdecanini
9a649b6093
Adds tests for selectedSpaceFlow and activeSpaceId
2022-07-21 09:39:12 +02:00
ericdecanini
f770ae0653
Adds tests for persist space and backstack
2022-07-21 08:53:08 +02:00
ericdecanini
49992f682e
Adds test for existing space
2022-07-21 08:12:04 +02:00
Eric Decanini
38ba61f144
Merge pull request #6200 from vector-im/bugfix/eric/upgrade-room-deduplication
...
Fixes room not being in space after upgrade
2022-07-20 12:30:42 +02:00
Maxime NATUREL
c3105c8bb1
Merge pull request #6486 from vector-im/feature/mna/delete-lls
...
[Location sharing] - Delete action on a live message (PSG-523)
2022-07-19 16:43:41 +02:00
ericdecanini
fbdbfb6be2
Post cherry pick fix
2022-07-19 16:20:59 +02:00
ericdecanini
e4c8c88cee
Refactors AppStateHandler into interface implementation pattern
2022-07-19 16:19:44 +02:00
Benoit Marty
70c62233d0
Merge pull request #6569 from vector-im/feature/adm/ftue-copy-review
...
FTUE - Copy review
2022-07-19 14:49:28 +02:00
Benoit Marty
70c8703b2b
Merge pull request #6545 from vector-im/feature/adm/ftue-combined-register-copy-review
...
FTUE - Combined register copy review
2022-07-19 14:44:29 +02:00
Maxime NATUREL
7961525869
Unit tests: adding verification that redaction does not happen when event id is empty
2022-07-19 14:06:19 +02:00
Maxime NATUREL
2121ec5739
Moving use case to check if event is redacted into a dedicated package
2022-07-19 14:06:19 +02:00
Maxime NATUREL
8fb402ab10
Stop sharing live location if live is redacted
2022-07-19 14:05:13 +02:00
Maxime NATUREL
391bf842b4
Calling usecase to redact live location share event
2022-07-19 14:05:13 +02:00
Maxime NATUREL
c095cc73ce
Introducing use case to check if an event can be redacted
2022-07-19 14:05:13 +02:00
Nikita Fedrunov
79762d9133
font scale setting screen ( #6453 )
2022-07-18 09:49:57 +02:00
Adam Brown
91a63194ef
fixing formatting
2022-07-15 15:42:14 +01:00
Adam Brown
b1ef4dd60c
defaulting the display name to the username segment of the account the user has created
2022-07-15 15:42:14 +01:00
Adam Brown
985e1569bf
adding tests around the user name availability checks
2022-07-15 11:34:12 +01:00
Adam Brown
1062bfe039
checking user name is available at the point of user name entry during the registration flow
2022-07-15 11:34:12 +01:00
Adam Brown
b8d4ff552f
separating the user name entered action for login vs register in prep for different behaviours
2022-07-15 11:34:12 +01:00
Adam Brown
b2ee7f327f
removing homeserver description to match updated designs
...
- it was hardcoded for matrix.org and made other server selections cause the page balance to feel off
2022-07-15 11:34:12 +01:00
Adam Brown
257f41dbf1
Merge pull request #6471 from vector-im/feature/adm/sharing-tests
...
Adding tests around the share intent handling
2022-07-13 10:12:09 +01:00
Adam Brown
59ef8e10c8
injecting the context directly to the handler
2022-07-06 12:02:45 +01:00
Adam Brown
ad76cbbc40
adding tests around share intent handling
2022-07-06 11:58:55 +01:00
Adam Brown
6cd05c899e
fixing homeserver edits not updating the selected server UI
2022-07-04 12:05:31 +01:00
Maxime NATUREL
906fe8be76
Merge pull request #6425 from vector-im/fix/mna/undisclosed-poll-description
...
[Poll] - Add a description under undisclosed poll when not ended (PSB-134)
2022-07-04 11:20:59 +02:00
ericdecanini
654eede21b
Adds VersioningStateTest
2022-07-04 10:06:00 +01:00
Maxime NATUREL
26aaf84806
Renaming field to votesStatus
2022-07-04 10:14:15 +02:00
Eric Decanini
bdb49f5946
Merge pull request #5398 from vector-im/bugfix/eric/softlogout-ux-broken
...
Fixes broken SoftLogout UX for homeservers that support both Password and SSO
2022-07-01 15:52:48 +01:00
Maxime NATUREL
d5b375e82b
Merge pull request #6414 from vector-im/feature/mna/reply-to-lls
...
[Location sharing] - Reply action on a live message (PSG-343)
2022-07-01 16:03:02 +02:00
Adam Brown
0bbc74b193
injects the phonenumberutil and adds testcases around the parsing
2022-07-01 11:14:25 +01:00
Adam Brown
27b1bc9e66
handling msisdn 401 errors as success within the registration wizard delegate
2022-07-01 11:14:25 +01:00