|
@@ -1,4 +1,4 @@
|
1
|
|
-import {Platform} from 'react-native';
|
|
1
|
+// import {Platform} from 'react-native';
|
2
|
2
|
|
3
|
3
|
describe('WebView basic test', () => {
|
4
|
4
|
beforeEach(async () => {
|
|
@@ -6,16 +6,9 @@ describe('WebView basic test', () => {
|
6
|
6
|
});
|
7
|
7
|
|
8
|
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
|
14
|
it('should have a webview', async () => {
|