Valere
59afe434f8
more tests
2022-09-30 16:00:34 +02:00
Valere
ac0e5e9dec
fix broken test, userId confustion
...
cleaning
cleaning
add tests
cleaning
2022-09-30 16:00:34 +02:00
Onuray Sahin
bf4576d155
Code review fixes.
2022-09-30 13:21:44 +03:00
Onuray Sahin
0f8637bc7a
Lint fix.
2022-09-29 17:57:22 +03:00
Onuray Sahin
6d459a0bc9
Code review fixes.
2022-09-29 17:35:47 +03:00
Onuray Sahin
38cd2be332
Fix broken tests.
2022-09-29 13:28:46 +03:00
Onuray Sahin
8663fe8c74
Add tests for unknown user agents.
2022-09-29 12:35:15 +03:00
Onuray Sahin
4c173a79ae
Lint fixes.
2022-09-29 11:40:15 +03:00
Onuray Sahin
c16b5d674c
Add more user agent support.
2022-09-29 11:36:38 +03:00
Maxime NATUREL
082fa1e69e
Adding confirmation dialog for all type of sessions
2022-09-29 10:27:13 +02:00
Onuray Sahin
5666383134
Add unit test for desktop and web user agents.
2022-09-28 18:19:25 +03:00
Maxime NATUREL
e47bf2b200
Adding unit tests for reAuth needed case
2022-09-28 16:45:06 +02:00
Onuray Sahin
41643ffb53
Add unit test for iOS user agents.
2022-09-28 15:00:16 +03:00
Onuray Sahin
2bcf0c307d
Add unit test for Android user agents.
2022-09-28 14:59:56 +03:00
Onuray Sahin
04a305b403
Refactor user agent parsing.
2022-09-28 14:32:20 +03:00
Maxime NATUREL
68d9f672c5
Unit tests for after reAuth
2022-09-27 15:04:34 +02:00
Maxime NATUREL
dafa98eb77
Unit tests for signout error cases
2022-09-27 15:04:34 +02:00
Maxime NATUREL
89cf8ee8ec
Unit test for signout success
2022-09-27 15:04:34 +02:00
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