Bladeren bron

android: relaunching after closing works

Daniel Zlotin 7 jaren geleden
bovenliggende
commit
eeab236085

+ 7
- 7
playground/android/app/src/androidTest/java/com/reactnativenavigation/playground/ApplicationLifecycleTest.java Bestand weergeven

@@ -81,13 +81,13 @@ public class ApplicationLifecycleTest {
81 81
         onView(withText("React Native Navigation!")).check(matches(isDisplayed()));
82 82
     }
83 83
 
84
-//    @Test
85
-//    public void _3_relaunchAfterClose() throws Exception {
86
-//        launchActivity();
87
-//        uiDevice().pressBack();
88
-//        launchActivity();
89
-//        onView(withText("React Native Navigation!")).check(matches(isDisplayed()));
90
-//    }
84
+    @Test
85
+    public void _3_relaunchAfterClose() throws Exception {
86
+        rule.launchActivity(null);
87
+        uiDevice().pressBack();
88
+        rule.launchActivity(null);
89
+        onView(withText("React Native Navigation!")).check(matches(isDisplayed()));
90
+    }
91 91
 }
92 92
 //    xdescribe('android application lifecycle', () => {
93 93
 ////launch, pause, and resume