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

[Headless Chrome] Fix datepicker interactions in bulk_order_management_spec #3343

Merged
merged 1 commit into from
Jan 17, 2019

Conversation

Matt-Yorkley
Copy link
Contributor

What? Why?

Fixes another test for #2469

This one was pretty nasty. I thought maybe headless chrome just really didn't like datepickers, but when I booted the app and tried inputting the dates the way we were doing it (as text), the orders didn't load well for me either. Anyway, I've updated the spec so it correctly opens the datepicker and clicks on the actual dates it needs to as if it were a user, and now it's green. 🎉

What should we test?

No testing. The new failing test in bulk_order_management_spec.rb should be green.

@Matt-Yorkley
Copy link
Contributor Author

Copy link
Contributor

@luisramos0 luisramos0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Green build!!!!

@mkllnk
Copy link
Member

mkllnk commented Jan 16, 2019

Oh no, I fixed that already in #3325. I thought you knew, because you reviewed that. Well, your solution mimics how most people probably use the datepicker.

@Matt-Yorkley
Copy link
Contributor Author

Matt-Yorkley commented Jan 16, 2019

Ah, I thought that was merged before I saw the failing test come up on another build. Got my branches crossed 🙈

@Matt-Yorkley
Copy link
Contributor Author

I don't think they're mutually exclusive..?

Copy link
Member

@mkllnk mkllnk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good. The two solutions can co-exist and make our tests more reliable. 👍

@mkllnk mkllnk merged commit 9322c3f into openfoodfoundation:headless-chrome Jan 17, 2019
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

Successfully merging this pull request may close these issues.

3 participants