mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-02 03:16:49 +00:00
4631bc8d94
As of about 4 March, Chrome has begun failing to wait for javascript event listeners on pages. The only workaround we've found is to pause for a bit before clicking any element that brings up a WMF "overlay" This is the failure see at https://integration.wikimedia.org/ci/view/BrowserTests/view/-All/job/browsertests-Echo-en.wikipedia.beta.wmflabs.org-linux-chrome-sauce/399/testReport/ Change-Id: I984f394a55423f17feae85236e18d16dd00239bc
19 lines
579 B
Ruby
19 lines
579 B
Ruby
When(/^I click the notification flyout button$/) do
|
|
# Sleep works around Chrome 40 issue that began
|
|
# ~2015-03-04
|
|
sleep 1
|
|
on(ArticlePage).flyout_link_element.when_present.click
|
|
end
|
|
|
|
Then(/^I do not see the notification flyout button$/) do
|
|
expect(on(ArticlePage).flyout_link_container_element).not_to be_visible
|
|
end
|
|
|
|
Then(/^I see the notification flyout$/) do
|
|
expect(on(ArticlePage).flyout_element.when_present).to be_visible
|
|
end
|
|
|
|
Then(/^I see the notification flyout button$/) do
|
|
expect(on(ArticlePage).flyout_link_container_element.when_present).to be_visible
|
|
end
|