summaryrefslogtreecommitdiff
path: root/app/src/androidTestNormal
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2023-08-04 15:04:39 +0200
committercyBerta <cyberta@riseup.net>2023-08-04 15:04:39 +0200
commite5895097734a91097961c753771ad2b9103dd8c2 (patch)
tree69005e0dafb9cd3386a8d7ce65147a9593ed9b25 /app/src/androidTestNormal
parent46bbdf33a07f65c51f93f51075c6b11b43bad4ee (diff)
fix clearing encrypted shared preferences before Screenshot tests start
Diffstat (limited to 'app/src/androidTestNormal')
-rw-r--r--app/src/androidTestNormal/java/se/leap/bitmaskclient/base/ProviderSetupTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/androidTestNormal/java/se/leap/bitmaskclient/base/ProviderSetupTest.java b/app/src/androidTestNormal/java/se/leap/bitmaskclient/base/ProviderSetupTest.java
index 23db8582..460a30ad 100644
--- a/app/src/androidTestNormal/java/se/leap/bitmaskclient/base/ProviderSetupTest.java
+++ b/app/src/androidTestNormal/java/se/leap/bitmaskclient/base/ProviderSetupTest.java
@@ -27,6 +27,7 @@ import org.junit.Test;
import org.junit.runner.RunWith;
import se.leap.bitmaskclient.R;
+import se.leap.bitmaskclient.base.utils.PreferenceHelper;
import se.leap.bitmaskclient.providersetup.ProviderListActivity;
import tools.fastlane.screengrab.Screengrab;
import tools.fastlane.screengrab.UiAutomatorScreenshotStrategy;
@@ -46,7 +47,7 @@ public class ProviderSetupTest {
@Before
public void setup() {
Screengrab.setDefaultScreenshotStrategy(new UiAutomatorScreenshotStrategy());
- SharedPreferences preferences = getApplicationContext().getSharedPreferences(SHARED_PREFERENCES, MODE_PRIVATE);
+ SharedPreferences preferences = PreferenceHelper.getSharedPreferences(getApplicationContext());
preferences.edit().clear().commit();
}