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

Improve filling in dates in specs #4451

Merged
merged 4 commits into from
Mar 31, 2021
Merged

Improve filling in dates in specs #4451

merged 4 commits into from
Mar 31, 2021

Conversation

javierm
Copy link
Member

@javierm javierm commented Mar 29, 2021

Objectives

  • Simplify filling in date inputs fields
  • Make tests using dates in "advanced search" more robust

@javierm javierm added the Specs label Mar 29, 2021
@javierm javierm self-assigned this Mar 29, 2021
@taitus taitus self-assigned this Mar 30, 2021
@javierm javierm force-pushed the notification_relative_urls branch from eb59431 to d7563be Compare March 31, 2021 12:03
javierm added 4 commits March 31, 2021 14:09
We were filling in dates with times, which is not what users would do.
The line `fill_in "advanced_search_date_max", with: "wrong date"`
doesn't work because the jQuery UI datepicker prevents users from
entering that value.
Some tests were failing depending on the window resolution due to the
datepicker making it impossible to click the "Filter" button. They were
also failing if using `clear: :backspace` to fill in those fields.

So we're focusing on a different field in order to hide the datepicker
and click the "Filter" button.
Tests are easier to read now. Besides, since we changed the inputs in
the admin section so they don't use jQuery but an HTML date field,
formatting with %d/%m/%Y might not work depending on the browser's
locale.
Base automatically changed from notification_relative_urls to master March 31, 2021 12:15
@javierm javierm merged commit 24caa74 into master Mar 31, 2021
@javierm javierm deleted the dates_in_specs branch March 31, 2021 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants