You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it('starts with video view on first launch',(done)=>{global.simulator.deleteAndRelaunchApp(()=>{expect(element(by.id('VideoView'))).toBeVisible();done();});});it('does not display video view on second launch',(done)=>{global.simulator.reloadReactNativeApp(()=>{expect(element(by.id('VideoView'))).toNotExist();done();});});
while this fails (prints error: _onTestResult is undefined on testFailed):
it('starts with video screen on first launch only',(done)=>{global.simulator.deleteAndRelaunchApp(()=>{expect(element(by.id('VideoView'))).toBeVisible();global.simulator.reloadReactNativeApp(()=>{expect(element(by.id('VideoView'))).toNotExist();done();});});});
new async await api is no in master, check out the test project. upcoming detox version (5.0.0) breaks the api completely in favor of async await.
device actions are now async await as well, you can now do
it('starts with video screen on first launch only',()=>{awaitdevice.deleteAndRelaunchApp();awaitexpect(element(by.id('VideoView'))).toBeVisible();awaitdevice.reloadReactNativeApp();awaitexpect(element(by.id('VideoView'))).toNotExist();});
This code works:
while this fails (prints
error: _onTestResult is undefined on testFailed
):I tracked the reason to this
Also, #57 would make this code much prettier
The text was updated successfully, but these errors were encountered: