Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

detox.init() should not launch app #180

Closed
rotemmiz opened this issue Jun 29, 2017 · 1 comment
Closed

detox.init() should not launch app #180

rotemmiz opened this issue Jun 29, 2017 · 1 comment

Comments

@rotemmiz
Copy link
Member

Instead, let the users control when they want to launch the app for the first time.
This is useful when using mock servers, and a better control of when the app launches is needed.

So instead of :

before(async () => {
  await detox.init();
}

The equivalent will be:

before(async () => {
  await detox.init();
  await device.relaunchApp();
}
  • Also add an example in the demo app and docs.
@rotemmiz rotemmiz self-assigned this Jun 29, 2017
@LeoNatan
Copy link
Contributor

This how Apple’s XCUITest works. The user has to explicitly launch the app.

Maybe we should consider having an application proxy class, like Apples: https://developer.apple.com/documentation/xctest/xcuiapplication?language=objc

@LeoNatan LeoNatan changed the title [API change] detox.init() should not launch app detox.init() should not launch app Jun 30, 2017
@wix wix locked and limited conversation to collaborators Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants