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

attempt to stabilize flickering spec

ulferts3913e1e02830
diff --git a/spec/support/pages/page.rb b/spec/support/pages/page.rb
index 93f207a4f88..354fafacef8 100644
--- a/spec/support/pages/page.rb
+++ b/spec/support/pages/page.rb
@@ -117,7 +117,7 @@ module Pages
end
def drag_and_drop_list_cuprite(from:, to:, elements:, handler:)
- list = page.all(elements)
+ list = page.all(elements, minimum: [from, to].max + 1)
source_handler = list[from].find(handler)
target_handler = list[to].find(handler)
@@ -129,7 +129,7 @@ module Pages
# Wait a bit because drag & drop in selenium is easily offended
sleep 1
- list = page.all(elements)
+ list = page.all(elements, minimum: [from, to].max + 1)
source = list[from]
target = list[to]