From d3402a868fa6e182ca3108ebe21d52a922ac111e Mon Sep 17 00:00:00 2001 From: Yaroslav Serhieiev Date: Tue, 31 Jul 2018 11:03:54 +0300 Subject: [PATCH] experimental: trying to reproduce #856 --- detox/test/e2e/01.sanity.test.js | 4 ++++ detox/test/e2e/helpers/init.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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));