Tobias Gritschacher has submitted this change and it was merged.

Change subject: ajax_wait needs to sleep
......................................................................


ajax_wait needs to sleep

Change-Id: I1636a0f0d69947691298f703e3acc5fcc15c3b6b
---
M selenium/spec/spec_helper.rb
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Tobias Gritschacher: Verified; Looks good to me, approved



diff --git a/selenium/spec/spec_helper.rb b/selenium/spec/spec_helper.rb
index 2b64aa0..0aa31db 100644
--- a/selenium/spec/spec_helper.rb
+++ b/selenium/spec/spec_helper.rb
@@ -97,6 +97,7 @@
 end
 
 def ajax_wait
+  sleep 1
   while (script = @browser.execute_script("return jQuery.active")) != 0 do
     sleep(1.0/3)
   end

-- 
To view, visit https://gerrit.wikimedia.org/r/70143
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I1636a0f0d69947691298f703e3acc5fcc15c3b6b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Tobias Gritschacher <[email protected]>
Gerrit-Reviewer: Tobias Gritschacher <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to