diff options
author | Rémy Coutable <remy@rymai.me> | 2017-03-22 19:40:35 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-03-22 19:45:21 +0100 |
commit | f879e40da73b0c149c0928883ad8965224fab8d3 (patch) | |
tree | 1ec79cd1b9aae2110b7a5e56b97433ba2243284c /spec/support/wait_for_requests.rb | |
parent | 7322770dda0f94885790324d1fc653e20491e7bd (diff) | |
download | gitlab-ce-f879e40da73b0c149c0928883ad8965224fab8d3.tar.gz |
Don't navigate to about:blank
This turned out to prevent the browser from clearing the local storage.
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/support/wait_for_requests.rb')
-rw-r--r-- | spec/support/wait_for_requests.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/spec/support/wait_for_requests.rb b/spec/support/wait_for_requests.rb index 4a8958c7336..0bfa7f72ff8 100644 --- a/spec/support/wait_for_requests.rb +++ b/spec/support/wait_for_requests.rb @@ -3,7 +3,6 @@ module WaitForRequests # This is inspired by http://www.salsify.com/blog/engineering/tearing-capybara-ajax-tests def wait_for_requests_complete - stop_client Gitlab::Testing::RequestBlockerMiddleware.block_requests! wait_for('pending AJAX requests complete') do Gitlab::Testing::RequestBlockerMiddleware.num_active_requests.zero? @@ -12,13 +11,6 @@ module WaitForRequests Gitlab::Testing::RequestBlockerMiddleware.allow_requests! end - # Navigate away from the current page which will prevent any new requests from being started - def stop_client - page.execute_script %Q{ - window.location = "about:blank"; - } - end - # Waits until the passed block returns true def wait_for(condition_name, max_wait_time: Capybara.default_max_wait_time, polling_interval: 0.01) wait_until = Time.now + max_wait_time.seconds |