File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
androidTest/java/org/aprsdroid/app Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 66import static androidx .test .espresso .intent .matcher .IntentMatchers .hasAction ;
77import static androidx .test .espresso .matcher .ViewMatchers .withText ;
88import static org .hamcrest .Matchers .allOf ;
9+ import static org .junit .Assume .assumeTrue ;
910
1011import android .app .Instrumentation ;
1112import android .content .Intent ;
13+ import android .os .Environment ;
1214
1315import androidx .test .core .app .ActivityScenario ;
1416import androidx .test .espresso .intent .Intents ;
@@ -34,6 +36,7 @@ public void tearDown() {
3436
3537 @ Test
3638 public void testThatExportProfileOpensTheChooser () {
39+ assumeTrue (Environment .MEDIA_MOUNTED .equals (Environment .getExternalStorageState ()));
3740 ActivityScenario scenario = ActivityScenario .launch (PrefsAct .class );
3841 Intents .intending (hasAction (Intent .ACTION_CHOOSER )).respondWith (new Instrumentation .ActivityResult (0 , null ));
3942 openActionBarOverflowOrOptionsMenu (InstrumentationRegistry .getInstrumentation ().getTargetContext ());
You can’t perform that action at this time.
0 commit comments