mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-16 20:35:09 +00:00
QA: wait for element to appear
prevent false failures like https://integration.wikimedia.org/ci/view/BrowserTests/view/-All/job/browsertests-MultimediaViewer-en.wikipedia.beta.wmflabs.org-linux-firefox-sauce/lastCompletedBuild/testReport/(root)/Download%20menu/The_medium_download_option_has_the_correct_information/ Change-Id: I122a82a5ec802c0c0eec90b55757153a2ab58ef7
This commit is contained in:
parent
184d59e2bf
commit
021391f0e8
|
@ -46,7 +46,7 @@ When /^I click the (.*) download size$/ do |size_option|
|
|||
@index = 0
|
||||
end
|
||||
|
||||
page.mmv_download_size_options_elements[@index].click
|
||||
page.mmv_download_size_options_elements[@index].when_present.click
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue