mediawiki-extensions-Echo/tests/browser/features/support/echo_pageobject_extension.rb
Moriel Schottlender 8b2c6355cc Add browser test for notifications in Echo
This browser test checks that mentions go to alerts and talk page
messages go to messages popup. This also upgrades the MW-Selenium
version in Echo tests to 1.6.1.

Depends on MW-Selenium version 1.6.1 (See T114061)

Bug: T113081
Change-Id: I40a17500cdfb838420c04dc0b9268ba56515cc2c
2015-10-04 22:23:51 -07:00

10 lines
224 B
Ruby

module PageObject
def refresh_until(timeout = PageObject.default_page_wait, message = nil)
platform.wait_until(timeout, message) do
yield.tap do |result|
refresh unless result
end
end
end
end