Browse Source

Additional work addressing flaky e2e

Guy Carmeli 6 years ago
parent
commit
9dd0c2e3aa

+ 1
- 1
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.only('static lifecycle events', () => {
5
+describe('static lifecycle events', () => {
6
   beforeEach(async () => {
6
   beforeEach(async () => {
7
     await device.relaunchApp();
7
     await device.relaunchApp();
8
   });
8
   });

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

56
   return (
56
   return (
57
     <TouchableOpacity
57
     <TouchableOpacity
58
       style={styles.dismissBtn}
58
       style={styles.dismissBtn}
59
-      testID={testIDs.DISMISS_BUTTON}
60
       onPress={() => Navigation.dismissOverlay(this.props.componentId)}
59
       onPress={() => Navigation.dismissOverlay(this.props.componentId)}
61
     >
60
     >
62
-      <Text style={{ color: 'red', alignSelf: 'center' }}>X</Text>
61
+      <Text testID={testIDs.DISMISS_BUTTON} style={{ color: 'red', alignSelf: 'center' }}>X</Text>
63
     </TouchableOpacity>
62
     </TouchableOpacity>
64
   );
63
   );
65
   }
64
   }