Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-03-22 21:40:35 +0300
committerRémy Coutable <remy@rymai.me>2017-03-22 21:45:21 +0300
commitf879e40da73b0c149c0928883ad8965224fab8d3 (patch)
tree1ec79cd1b9aae2110b7a5e56b97433ba2243284c /spec/support
parent7322770dda0f94885790324d1fc653e20491e7bd (diff)
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')
-rw-r--r--spec/support/wait_for_requests.rb8
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