mirror of
https://github.com/status-im/react-native-webview.git
synced 2026-08-31 03:31:05 +00:00
Fix spec
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user