BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
f879e40d
Commit
f879e40d
authored
Mar 22, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain 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
>
parent
7322770d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
wait_for_requests.rb
spec/support/wait_for_requests.rb
+0
-8
No files found.
spec/support/wait_for_requests.rb
View file @
f879e40d
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment