瀏覽代碼

Enable `unmounts when dismissed` e2e

Hopefully increasing button size will eliminate flakyness
Guy Carmeli 7 年之前
父節點
當前提交
667fa5a188
共有 2 個檔案被更改,包括 4 行新增4 行删除
  1. 2
    2
      e2e/StaticLifecycleEvents.test.js
  2. 2
    2
      playground/src/screens/StaticLifecycleOverlay.js

+ 2
- 2
e2e/StaticLifecycleEvents.test.js 查看文件

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 查看文件

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
   },