Last modified: 2014-04-14 16:35:35 UTC
In the mediawiki_selenium gem login_page.rb line 35 is: logout_element.when_present(10) if wait_for_logout_element --- However, some tests clearly fail to honor the 10 second timeout value https://wmf.ci.cloudbees.com/job/browsertests-en.wikipedia.beta.wmflabs.org-windows-internet_explorer_10/578/testReport/(root)/Edit/Go_to_edit_page/ for example fails with timed out after 5 seconds, waiting for {:href=>/Special:UserLogout/, :tag_name=>"a"} to become present (Watir::Wait::TimeoutError) and the gem login method is clearly being called correctly.
Change 125700 had a related patch set uploaded by Zfilipin: Login sometimes takes more than 5 seconds to complete https://gerrit.wikimedia.org/r/125700
browsertests repo is using mediawiki_selenium 0.2.12[1][2] but the code you are referring to[3] is present in version 0.2.17. Running "bundle update" should fix the problem[5]. 1: https://github.com/wikimedia/qa-browsertests/blob/master/tests/browser/Gemfile.lock#L28 2: https://wmf.ci.cloudbees.com/job/browsertests-en.wikipedia.beta.wmflabs.org-windows-internet_explorer_10/578/console 3: https://github.com/wikimedia/mediawiki-selenium/commit/b01819473d2ecd88a3ad21307550345c46236e71 4: https://github.com/wikimedia/mediawiki-selenium/commit/bfcd98a861bd30f07faa0152a29d38fdf5117f6e 5: https://gerrit.wikimedia.org/r/#/c/125700/
Change 125700 merged by Cmcmahon: Login sometimes takes more than 5 seconds to complete https://gerrit.wikimedia.org/r/125700