attempt to stabilize flickering spec

This commit is contained in:
ulferts
2025-05-19 11:52:23 +02:00
parent 22c47086bd
commit 3913e1e028
+2 -2
View File
@@ -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]