1
0
Fork 0
fenix/app/src/test/java/org/mozilla/fenix
Mugurell e1fc0cc038
Ensure logins deletion (#12507)
* For #11227 - Cleanup saved logins list when one is selected

Selecting a saved login will open a detail screen for it from where users can
change details or even delete that particular login.
After the change is made the user is brought back to the list of saved logins
where for a brief moment (< 1s) until we get a new response from
passwordsStorage.list() the user can see and even interact with the old list
of items, which may still contain the just deleted one.

To avoid users seeing obsolete logins or even interacting with them (selecting
a previosuly deleted item will result in a crash) we will clean the list of
logins just before the selected login is opened in the detailed view.
When returning for a brief moment the users may see the "loading" UX until
passwordsStorage.list() returns the up-to-date list of logins to display.

* For #11227 - Refactor SavedLoginsView to be closer to MVI

- Interactors should only get passed other Interactors or Controllers as
dependencies to which they should delegate user actions.
- Controllers should hold most of the business logic and get passed all final
dependencies they need to do their job.
2020-07-16 14:40:08 -05:00
..
addons For #12503: Add unit tests for permissions details view. 2020-07-15 10:04:40 -04:00
browser Add tests for browser helper classes (#12370) 2020-07-07 19:46:25 -07:00
collections Add tests for collection creation controller 2020-06-24 21:21:02 -04:00
components No issue: Uncomment forgotten assert 2020-07-16 11:45:53 -04:00
crashes For issue #8648 2020-04-29 09:48:42 -07:00
customtabs Remove Mockito 2020-06-10 21:19:50 -04:00
downloads Remove Mockito 2020-06-10 21:19:50 -04:00
ext For #12457 - Add MockK matcher for nav directions (#12262) 2020-07-14 10:39:23 -07:00
helpers Migrate some SessionManager usage to BrowserStore (#10789) 2020-06-03 11:18:44 -07:00
home Remove need to specify component names for new intents 2020-07-16 10:37:03 -04:00
library Fix nav graph and theme tests (#12567) 2020-07-15 18:04:36 -07:00
loginexceptions For #7094 - Adds save login exceptions 2020-07-14 14:47:37 -04:00
onboarding Add tests for FenixOnboarding (#11057) 2020-05-29 17:26:07 -07:00
perf Add tests for StartupReportFullyDrawn (#12560) 2020-07-15 23:31:59 -07:00
push Add tests for sync, wifi, and push (#12581) 2020-07-16 12:25:38 -07:00
search Fix nav graph and theme tests (#12567) 2020-07-15 18:04:36 -07:00
session For #9100: Follow-up to fix memory leak in NotificationSessionObserver 2020-06-25 16:17:38 -04:00
settings Ensure logins deletion (#12507) 2020-07-16 14:40:08 -05:00
share For #11798: Allow sharing of reader view pages 2020-06-25 14:39:21 -04:00
sync Add tests for sync, wifi, and push (#12581) 2020-07-16 12:25:38 -07:00
tabtray No issue - post: mock profiler object in DefaultTabTrayControllerTest. 2020-07-10 16:43:06 -07:00
trackingprotection Tests and cleanup for tracking protection 2020-06-01 22:08:52 -04:00
trackingprotectionexceptions For #7094 - Adds save login exceptions 2020-07-14 14:47:37 -04:00
utils Fixes #9832 - Change targetSdkVersion to Android 10 (#11014) 2020-07-09 10:50:51 -07:00
whatsnew For #9605: replace unit test runners with FenixRobolectricTestRunner. 2020-04-03 09:27:49 -07:00
widget Fixes #9832 - Change targetSdkVersion to Android 10 (#11014) 2020-07-09 10:50:51 -07:00
wifi Add tests for sync, wifi, and push (#12581) 2020-07-16 12:25:38 -07:00
AppRequestInterceptorTest.kt For #9631: replace assertk assertions with junit. 2020-04-06 16:56:40 -07:00
HomeActivityTest.kt For #9144 - Ignore previous Intent if activity is started from Recents 2020-06-22 12:08:24 -04:00
IntentReceiverActivityTest.kt Remove Mockito 2020-06-10 21:19:50 -04:00
MockNavHostActivity.kt Add method to test fragments in roboletric (#12261) 2020-07-06 13:04:43 -07:00
ReleaseChannelTest.kt For #6464: Add ReleaseChannel test to document assumptions. 2019-12-30 10:31:33 -08:00
StrictModeManagerTest.kt Add tests for StrictModeManager (#12013) 2020-06-29 08:17:07 -07:00