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

Inconsistent new app instance #1011

Closed
JonathanRufino opened this issue Oct 31, 2018 · 2 comments
Closed

Inconsistent new app instance #1011

JonathanRufino opened this issue Oct 31, 2018 · 2 comments

Comments

@JonathanRufino
Copy link

JonathanRufino commented Oct 31, 2018

Description

My app has an onboarding screen that is show just the first time the app is opened. I'm trying to relaunch a clean instance of my app before each test case to make then independent. So i need to skip the onboarding screen every time, but I cant make it behave consistent, sometimes the app always go through my onboarding sometimes don't.

I don't know if it makes any difference but I'm using redux-persist, and Async-Storage.

Steps to Reproduce

I've tried below solution with multiple variations, for each .spec.js file I have.

describe('Example', () => {
    before(async () => {
        // Option 1
        await device.sendToHome()
        await device.uninstallApp()
        await device.installApp()

        // Option 2
        await device.launchApp({ delete: true, newInstance: true })
    })
})

Detox, Node, Device, Xcode and macOS Versions

  • Detox: ^9.0.4
  • React Native: 0.56.0
@LeoNatan
Copy link
Contributor

From what you have posted here, it should always go through your login flow because deleting the app clears the storage. Anyway, this is not a support forum. Please use Stack Overflow.

@support
Copy link

support bot commented Oct 31, 2018

We use the issue tracker exclusively for bug reports and feature requests. This issue appears to be a general usage or support question. Instead, please ask a question on Stack Overflow with the detox tag.

@support support bot closed this as completed Oct 31, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Nov 3, 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