Browse Source

unmount works

Daniel Zlotin 7 years ago
parent
commit
7ad6e4a602

+ 0
- 4
AndroidE2E/app/src/androidTest/java/com/reactnativenavigation/e2e/androide2e/TopLevelApiTest.java View File

2
 
2
 
3
 import android.support.test.uiautomator.By;
3
 import android.support.test.uiautomator.By;
4
 
4
 
5
-import org.junit.Ignore;
6
 import org.junit.Test;
5
 import org.junit.Test;
7
 
6
 
8
 public class TopLevelApiTest extends BaseTest {
7
 public class TopLevelApiTest extends BaseTest {
37
 	}
36
 	}
38
 
37
 
39
 	@Test
38
 	@Test
40
-	@Ignore
41
 	public void unmountIsCalledOnPop() throws Exception {
39
 	public void unmountIsCalledOnPop() throws Exception {
42
 		launchTheApp();
40
 		launchTheApp();
43
 		assertMainShown();
41
 		assertMainShown();
44
 		elementByText("PUSH LIFECYCLE SCREEN").click();
42
 		elementByText("PUSH LIFECYCLE SCREEN").click();
45
 		elementByText("onStart");
43
 		elementByText("onStart");
46
 		device().pressBack();
44
 		device().pressBack();
47
-		assertMainShown();
48
-		assertExists(By.text("onStop"));
49
 		assertExists(By.text("componentWillUnmount"));
45
 		assertExists(By.text("componentWillUnmount"));
50
 	}
46
 	}
51
 }
47
 }