Skip to content

Commit

Permalink
Fix calendar failing specs (decidim#13715)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecslupu authored Dec 3, 2024
1 parent 454b966 commit 50d90cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions decidim-core/spec/system/date_picker/date_picker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ def protect_against_forgery?
it "fills the field correctly" do
find(".datepicker__calendar-button").click
find('span > input[name="year"]').set("1994")
find('select[name="month"]').find(:option, "January").select_option
find(".wc-datepicker__next-month-button").click
month = find('select[name="month"]').value
formatted_month = format("%02d", month)
Expand Down Expand Up @@ -501,6 +502,7 @@ def protect_against_forgery?
it "fills the field correctly" do
find(".datepicker__calendar-button").click(x: 5, y: 10)
find('span > input[name="year"]').set("1994")
find('select[name="month"]').find(:option, "January").select_option
find(".wc-datepicker__next-month-button").click
month = find('select[name="month"]').value
formatted_month = format("%02d", month)
Expand Down Expand Up @@ -756,6 +758,7 @@ def protect_against_forgery?
it "fills the field correctly" do
find(".datepicker__calendar-button").click(x: 5, y: 10)
find('span > input[name="year"]').set("1994")
find('select[name="month"]').find(:option, "January").select_option
find(".wc-datepicker__next-month-button").click
month = find('select[name="month"]').value
formatted_month = format("%02d", month)
Expand Down

0 comments on commit 50d90cd

Please sign in to comment.