[fenix] For https://github.com/mozilla-mobile/fenix/issues/26884: [UI tests] Reset...
commit508137d4ea8d53cfb4004aed5fb542705fa7ccdf
authorMugurell <Mugurell@users.noreply.github.com>
Tue, 13 Sep 2022 16:41:07 +0000 (13 19:41 +0300)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 14 Sep 2022 15:22:47 +0000 (14 15:22 +0000)
tree97d996f1ff522b5f1460f156d5e82c36ba4b652c
parentb8359b8f864d2a4370539e1b75a5f99127724e2c
[fenix] For https://github.com/mozilla-mobile/fenix/issues/26884: [UI tests] Reset modified settings just before the Activity finishes

This should prevent issues with the cleanup being done earlier (even in @After)
and affecting the behavior of the Activity which is still running.
With this issue fixed I've re-enabled verifyCustomizeHomepageTest.

Because when FeatureSettingsHelper is instantiated it caches the settings
values from that instant it's important to only use one instance of it so I've
updated all tests that are using HomeActivityTestRule.
HomeActivityIntentTestRule may be updated with a similar functionality later.
mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/helpers/HomeActivityTestRule.kt
mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/screenshots/MenuScreenShotTest.kt
mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/BrowsingErrorPagesTest.kt
mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/HistoryTest.kt
mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/HomeScreenTest.kt
mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/NavigationToolbarTest.kt
mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/NoNetworkAccessStartupTests.kt
mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/SearchTest.kt
mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/SitePermissionsTest.kt
mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/StrictEnhancedTrackingProtectionTest.kt
mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/TabbedBrowsingTest.kt