Commit 6afd32b4 authored by Mathieu Giraud's avatar Mathieu Giraud

Merge branch 'feature-c/3987-fix-watir-test' into 'dev'

Fix watir tests

Closes #3987

See merge request !521
parents 24ce6e00 ec3c9bf7
Pipeline #95724 failed with stages
in 9 minutes and 23 seconds
...@@ -184,9 +184,7 @@ class VidjilBrowser < Watir::Browser ...@@ -184,9 +184,7 @@ class VidjilBrowser < Watir::Browser
end end
def menu_item_export(id, extra = {}) def menu_item_export(id, extra = {})
menu = menu_import_export return menu_item(id, extra)
menu.click
return menu.a(extra.merge(:id => id))
end end
def menu_item_export_fasta(extra = {}) def menu_item_export_fasta(extra = {})
...@@ -206,6 +204,7 @@ class VidjilBrowser < Watir::Browser ...@@ -206,6 +204,7 @@ class VidjilBrowser < Watir::Browser
end end
if parent.tag_name != "body" if parent.tag_name != "body"
parent.click parent.click
parent.hover
end end
return item return item
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment