This commit is contained in:
Jamon Holmgren
2019-09-06 17:03:21 +02:00
parent 811f606420
commit 3d13dfbe2e
+4 -11
View File
@@ -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 () => {