From 3d13dfbe2e554c2820e13d75d4c80d2f86479e09 Mon Sep 17 00:00:00 2001 From: Jamon Holmgren Date: Fri, 6 Sep 2019 17:03:21 +0200 Subject: [PATCH] Fix spec --- examples/WebTest/e2e/testWebView.spec.js | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/examples/WebTest/e2e/testWebView.spec.js b/examples/WebTest/e2e/testWebView.spec.js index 47bc700..3cd0dcc 100644 --- a/examples/WebTest/e2e/testWebView.spec.js +++ b/examples/WebTest/e2e/testWebView.spec.js @@ -1,4 +1,4 @@ -import {Platform} from 'react-native'; +// import {Platform} from 'react-native'; describe('WebView basic test', () => { beforeEach(async () => { @@ -6,16 +6,9 @@ describe('WebView basic test', () => { }); it('should not have a redbox visible', async () => { - const platform = Platform.select({ - ios: 'RCTRedBoxWindow', - android: undefined, // TODO -- need to figure out what RedBox is on Android - }); - if (platform) { - expect(element(by.type(platform))).toNotExist(); - } - - // so there's at least one assertion - expect(true).toBe(true); + // check iOS + expect(element(by.type('RCTRedBox'))).toNotExist(); + // TODO: check Android }); it('should have a webview', async () => {