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

fill_form not waiting for page to load #51

Open
edwardloveall opened this issue Jun 25, 2019 · 0 comments
Open

fill_form not waiting for page to load #51

edwardloveall opened this issue Jun 25, 2019 · 0 comments

Comments

@edwardloveall
Copy link
Member

When running the user flow spec (crystal spec spec/flows/user_spec.cr:16) I would get a failure. The flow tests that a user can log in, go to their account page and reset their password. However, the page appears to be loading too fast for selenium to be able to fill the password field. It's able to fill the password_confirmation however. The result is form errors when trying to change the password saying that password is required, is too short, and that password_confirmation must match.

Putting a sleep(0.1) before filling the field (current committed) causes the test to pass, so I assume this is a race condition that we need to have flow wait to resolve.

edwardloveall/lucky_bits@b71f879

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant