Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Retry selection of year due to stale element

Oliver Günther1afbe15a3d6f
diff --git a/spec/support/components/datepicker/datepicker.rb b/spec/support/components/datepicker/datepicker.rb
index 312db444abd..f2b0e041410 100644
--- a/spec/support/components/datepicker/datepicker.rb
+++ b/spec/support/components/datepicker/datepicker.rb
@@ -23,9 +23,11 @@ module Components
##
# Select year from input
def select_year(value)
- flatpickr_container
- .first('.numInput.cur-year')
- .set value
+ retry_block do
+ flatpickr_container
+ .first('.numInput.cur-year')
+ .set value
+ end
end
##