mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
attempt to stabilize flickering spec
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user