You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PR #526 by @mgrunberg, which was created to resolve issue #523, introduced the assumption that Rails 7 will always render date fields as <input type="date">. However, it's still possible for Rails 7 to render <select> based date inputs.
So what we missed with this was extra cucumber tests to validate both options still worked. I'll add these in to start with and then we can go about rectifying this.
The PR #526 by @mgrunberg, which was created to resolve issue #523, introduced the assumption that Rails 7 will always render date fields as
<input type="date">
. However, it's still possible for Rails 7 to render<select>
based date inputs.According to the Rails Form Helpers guide:
There are now two officially supported form helper methods:
form.date_field
will output<input type="date">
(new in Rails 7)form.date_select
will output<select>
fields (traditional Rails date input)However when using Rails 7, only
<input type="date">
fields are supported because:cucumber-rails/lib/cucumber/rails/capybara/select_dates_and_times.rb
Lines 11 to 20 in fa07f57
👓 What did you see?
Cucumber no longer knows how to select dates for input fields created with
form.date_select
in Rails 7.✅ What did you expect to see?
Cucumber should still be able to select dates, regardless of whether
form.date_field
orform.date_select
was used in Rails 7.📦 Which version are you using?
🔬 How could we reproduce it?
form.date_select
The text was updated successfully, but these errors were encountered: