Wait for the download menu to appear before closing it

In practice doing this quickly still works, but the browser test in IE
catches the menu at exactly the wrong time (when it appears briefly
before disappearing).

Bug: T89087
Change-Id: I4076943bf33a566ec882f69d17f6a3a9f1a28002
This commit is contained in:
Gilles Dubuc 2015-02-11 20:28:13 +01:00
parent 520c23143c
commit 8c37b7abb4
2 changed files with 5 additions and 0 deletions

View file

@ -10,6 +10,7 @@ Feature: Download menu
Scenario: Clicking the image closes the download menu Scenario: Clicking the image closes the download menu
When I click the download icon When I click the download icon
And the download menu appears
And I click the image And I click the image
Then the download menu should disappear Then the download menu should disappear

View file

@ -43,6 +43,10 @@ When /^the download size options disappears$/ do
on(E2ETestPage).mmv_download_size_menu_element.when_not_present on(E2ETestPage).mmv_download_size_menu_element.when_not_present
end end
When /^the download menu appears$/ do
on(E2ETestPage).mmv_download_menu_element.when_present
end
Then /^the download menu should appear$/ do Then /^the download menu should appear$/ do
expect(on(E2ETestPage).mmv_download_menu_element.when_present).to be_visible expect(on(E2ETestPage).mmv_download_menu_element.when_present).to be_visible
end end