Jamon Holmgren 5 years ago
parent
commit
3d13dfbe2e
1 changed files with 4 additions and 11 deletions
  1. 4
    11
      examples/WebTest/e2e/testWebView.spec.js

+ 4
- 11
examples/WebTest/e2e/testWebView.spec.js View File

1
-import {Platform} from 'react-native';
1
+// import {Platform} from 'react-native';
2
 
2
 
3
 describe('WebView basic test', () => {
3
 describe('WebView basic test', () => {
4
   beforeEach(async () => {
4
   beforeEach(async () => {
6
   });
6
   });
7
 
7
 
8
   it('should not have a redbox visible', async () => {
8
   it('should not have a redbox visible', async () => {
9
-    const platform = Platform.select({
10
-      ios: 'RCTRedBoxWindow',
11
-      android: undefined, // TODO -- need to figure out what RedBox is on Android
12
-    });
13
-    if (platform) {
14
-      expect(element(by.type(platform))).toNotExist();
15
-    }
16
-
17
-    // so there's at least one assertion
18
-    expect(true).toBe(true);
9
+    // check iOS
10
+    expect(element(by.type('RCTRedBox'))).toNotExist();
11
+    // TODO: check Android
19
   });
12
   });
20
 
13
 
21
   it('should have a webview', async () => {
14
   it('should have a webview', async () => {