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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Fix flaky test
Christophe Bliarddb276034cef5
diff --git a/spec/support/components/timelines/timeline_row.rb b/spec/support/components/timelines/timeline_row.rbindex 83d6eae7277..ca73a5e4543 100644--- a/spec/support/components/timelines/timeline_row.rb+++ b/spec/support/components/timelines/timeline_row.rb@@ -74,7 +74,7 @@ module Componentsenddef hover_bar(offset_days: 0)- container.hover+ wait_until_hoverableoffset_x = offset_days * 30page.driver.browser.action.move_to(@container.native, offset_x).performend@@ -105,13 +105,22 @@ module Componentsenddef drag_and_drop(offset_days: 0, days: 1)- container.hover+ wait_until_hoverableoffset_x_start = offset_days * 30start_dragging(container, offset_x: offset_x_start)offset_x = ((days - 1) * 30) + offset_x_startdrag_element_to(container, offset_x:)drag_releaseend++ private++ def wait_until_hoverable+ # The timeline element and the mouse handlers are lazily loaded and can+ # be hidden if no dates are set. Finding it waits until the lazy loading+ # has completed.+ container.find('.timeline-element', visible: :all)+ endendendend