diff --git a/detox/test/e2e/01.sanity.test.js b/detox/test/e2e/01.sanity.test.js index 5df5f4517b..baa1797d08 100644 --- a/detox/test/e2e/01.sanity.test.js +++ b/detox/test/e2e/01.sanity.test.js @@ -1,4 +1,8 @@ describe('Sanity', () => { + beforeAll(async () => { + await device.launchApp({ newInstance: true }); + }); + beforeEach(async () => { await device.reloadReactNative(); await element(by.text('Sanity')).tap(); diff --git a/detox/test/e2e/helpers/init.js b/detox/test/e2e/helpers/init.js index 50b7bee583..bee4d2a204 100644 --- a/detox/test/e2e/helpers/init.js +++ b/detox/test/e2e/helpers/init.js @@ -7,7 +7,7 @@ jasmine.getEnv().addReporter(adapter); beforeAll(async () => { try { - await detox.init(config); + await detox.init(config, { launchApp: false }); } catch (e) { await detox.cleanup(); await new Promise(resolve => setTimeout(resolve, 1000));