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

Retaining Redux state #331

Closed
rengarima opened this issue Oct 11, 2017 · 3 comments
Closed

Retaining Redux state #331

rengarima opened this issue Oct 11, 2017 · 3 comments

Comments

@rengarima
Copy link

rengarima commented Oct 11, 2017

Description

I want to test if the typed text is retained after moving between different forms. it works manually but fails on detox . Is it something detox can't do ? or do I need to do anything extra?

await testHelper.replaceText(mandFields.payer_f_name, "Verify Form Closure");
await element(by.id(mandFields.payer_f_name)).swipe("left", "slow");
await element(by.id("protection.grossIncome")).swipe("right", "slow");
await testHelper.assertHasLabel(mandFields.payer_f_name,"Verify Form Closure");
@rotemmiz
Copy link
Member

Not sure I can understand the issue from the little details you gave.
Please tell us more on what you are trying to accomplish, supply detox logs, device logs, and configuration if needed.
Also, please state the versions of Detox, Node, Xcode, React Native...

@rengarima
Copy link
Author

The app is for form filling, there are multiple "pages" for these forms, you can swipe back and forth between the "pages" but it retains the values in all pages ( maintained in redux state ). When I try out a test manually the details I have entered is retained in different pages even if i swipe in and out. However, the same test fails when written with Detox.

Is this a scenario that Detox can handle?

RN: 0.47.2
Detox: 5.8.1
Node: 8.4.0
Device: "iPad Air 2, iOS 10.3"
Xcode: 9.0
macOS: 10.12.6

@LeoNatan
Copy link
Contributor

As long as the app logic works, I don’t see how Detox can interfere. Could be that your internal logic does not work with replaceText, which acts as if the user “pasted” the text, rather than type it. Make sure your app handles all text events properly. Add logs to your app logic and see that it sees text changes properly and acts up them as you expect.

@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

3 participants