This commit is contained in:
Gouri Panda 2022-04-21 05:16:27 +05:30
parent 749dcf2031
commit b9f9667fad

View File

@ -44,7 +44,7 @@ class KiwixSettingsFragmentTest {
GrantPermissionRule.grant(Manifest.permission.WRITE_EXTERNAL_STORAGE) GrantPermissionRule.grant(Manifest.permission.WRITE_EXTERNAL_STORAGE)
@Before fun setup() { @Before fun setup() {
//Go to IntroFragment // Go to IntroFragment
UiThreadStatement.runOnUiThread { activityTestRule.activity.navigate(R.id.introFragment) } UiThreadStatement.runOnUiThread { activityTestRule.activity.navigate(R.id.introFragment) }
intro(IntroRobot::swipeLeft) clickGetStarted { } intro(IntroRobot::swipeLeft) clickGetStarted { }
StandardActions.openDrawer() StandardActions.openDrawer()
@ -64,7 +64,7 @@ class KiwixSettingsFragmentTest {
toggleExternalLinkWarningPref() toggleExternalLinkWarningPref()
toggleWifiDownloadsOnlyPref() toggleWifiDownloadsOnlyPref()
clickStoragePreference() clickStoragePreference()
//Let's pause here for a moment because calculating storage takes some time // Let's pause here for a moment because calculating storage takes some time
BaristaSleepInteractions.sleep(TEST_PAUSE_MS.toLong()) BaristaSleepInteractions.sleep(TEST_PAUSE_MS.toLong())
assertStorageDialogDisplayed() assertStorageDialogDisplayed()
dismissDialog() dismissDialog()