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
ce7449ce
Unverified
Commit
ce7449ce
authored
Oct 20, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clear localStorage after each capybara test (global)
parent
95d629a1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
8 deletions
+3
-8
gfm_autocomplete_spec.rb
spec/features/issues/gfm_autocomplete_spec.rb
+0
-4
markdown_toolbar_spec.rb
spec/features/issues/markdown_toolbar_spec.rb
+0
-4
capybara.rb
spec/support/capybara.rb
+3
-0
No files found.
spec/features/issues/gfm_autocomplete_spec.rb
View file @
ce7449ce
...
...
@@ -16,10 +16,6 @@ feature 'GFM autocomplete', :js do
wait_for_requests
end
after
do
execute_script
(
"localStorage.clear();"
)
end
it
'updates issue descripton with GFM reference'
do
find
(
'.issuable-edit'
).
click
...
...
spec/features/issues/markdown_toolbar_spec.rb
View file @
ce7449ce
...
...
@@ -11,10 +11,6 @@ feature 'Issue markdown toolbar', :js do
visit
project_issue_path
(
project
,
issue
)
end
after
do
execute_script
(
"localStorage.clear();"
)
end
it
"doesn't include first new line when adding bold"
do
find
(
'#note-body'
).
native
.
send_keys
(
'test'
)
find
(
'#note-body'
).
native
.
send_key
(
:enter
)
...
...
spec/support/capybara.rb
View file @
ce7449ce
...
...
@@ -45,6 +45,9 @@ RSpec.configure do |config|
end
config
.
after
(
:example
,
:js
)
do
|
example
|
# prevent localstorage from introducing side effects based on test order
execute_script
(
"localStorage.clear();"
)
# capybara/rspec already calls Capybara.reset_sessions! in an `after` hook,
# but `block_and_wait_for_requests_complete` is called before it so by
# calling it explicitely here, we prevent any new requests from being fired
...
...
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