Skip to content

Commit

Permalink
experimental: trying to reproduce #856
Browse files Browse the repository at this point in the history
  • Loading branch information
noomorph committed Jul 31, 2018
1 parent 5438741 commit d3402a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions detox/test/e2e/01.sanity.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
describe('Sanity', () => {
beforeAll(async () => {
await device.launchApp({ newInstance: true });
});

beforeEach(async () => {
await device.reloadReactNative();
await element(by.text('Sanity')).tap();
Expand Down
2 changes: 1 addition & 1 deletion detox/test/e2e/helpers/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit d3402a8

Please sign in to comment.