소스 검색

android: relaunching after closing works

Daniel Zlotin 8 년 전
부모
커밋
eeab236085
1개의 변경된 파일7개의 추가작업 그리고 7개의 파일을 삭제
  1. 7
    7
      playground/android/app/src/androidTest/java/com/reactnativenavigation/playground/ApplicationLifecycleTest.java

+ 7
- 7
playground/android/app/src/androidTest/java/com/reactnativenavigation/playground/ApplicationLifecycleTest.java 파일 보기

@@ -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