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

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

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