mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-02 11:26:26 +00:00
ba2d072255
mw_selenium errors out with undefined method `last_session_ids=' when run in jenkins. Bug: T114368 Change-Id: Ie4d1b15be3b12694d9adba8747f1457f43ead57c
12 lines
340 B
Ruby
12 lines
340 B
Ruby
require 'mediawiki_selenium'
|
|
|
|
require 'mediawiki_selenium/support'
|
|
require 'mediawiki_selenium/step_definitions'
|
|
|
|
def env_or_default(key, default)
|
|
ENV[key].nil? ? default : ENV[key].to_i
|
|
end
|
|
|
|
PageObject.default_page_wait = env_or_default 'PAGE_WAIT_TIMEOUT', 10
|
|
PageObject.default_element_wait = env_or_default 'ELEMENT_WAIT_TIMEOUT', 30
|
|
|