|
@@ -1,8 +1,23 @@
|
|
1
|
+import {Platform} from 'react-native';
|
|
2
|
+
|
1
|
3
|
describe('WebView basic test', () => {
|
2
|
4
|
beforeEach(async () => {
|
3
|
5
|
await device.launchApp({newInstance: true});
|
4
|
6
|
});
|
5
|
7
|
|
|
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);
|
|
19
|
+ });
|
|
20
|
+
|
6
|
21
|
it('should have a webview', async () => {
|
7
|
22
|
await expect(element(by.id('test_webview'))).toBeVisible();
|
8
|
23
|
});
|