Browse Source

Enable `unmounts when dismissed` e2e

Hopefully increasing button size will eliminate flakyness
Guy Carmeli 6 years ago
parent
commit
667fa5a188

+ 2
- 2
e2e/StaticLifecycleEvents.test.js View File

@@ -2,7 +2,7 @@ const Utils = require('./Utils');
2 2
 const testIDs = require('../playground/src/testIDs');
3 3
 const { elementByLabel, elementById } = Utils;
4 4
 
5
-describe('static lifecycle events', () => {
5
+describe.only('static lifecycle events', () => {
6 6
   beforeEach(async () => {
7 7
     await device.relaunchApp();
8 8
   });
@@ -16,7 +16,7 @@ describe('static lifecycle events', () => {
16 16
     await expect(elementByLabel('componentDidDisappear | navigation.playground.WelcomeScreen')).toBeVisible();
17 17
   });
18 18
 
19
-  xit('unmounts when dismissed', async () => {
19
+  it('unmounts when dismissed', async () => {
20 20
     await elementById(testIDs.PUSH_STATIC_LIFECYCLE_BUTTON).tap();
21 21
     await expect(elementByLabel('Static Lifecycle Events Overlay')).toBeVisible();
22 22
     await elementById(testIDs.DISMISS_BUTTON).tap();

+ 2
- 2
playground/src/screens/StaticLifecycleOverlay.js View File

@@ -78,8 +78,8 @@ const styles = {
78 78
   },
79 79
   dismissBtn: {
80 80
     position: 'absolute',
81
-    width: 25,
82
-    height: 25,
81
+    width: 35,
82
+    height: 35,
83 83
     backgroundColor: 'white',
84 84
     justifyContent: 'center'
85 85
   },