Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
95d629a1
Commit
95d629a1
authored
Oct 20, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix rubocop (oops)
parent
b673fcc1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
spec/features/issues/gfm_autocomplete_spec.rb
spec/features/issues/gfm_autocomplete_spec.rb
+4
-4
spec/features/issues/markdown_toolbar_spec.rb
spec/features/issues/markdown_toolbar_spec.rb
+1
-1
spec/support/input_helper.rb
spec/support/input_helper.rb
+1
-1
No files found.
spec/features/issues/gfm_autocomplete_spec.rb
View file @
95d629a1
...
...
@@ -17,13 +17,13 @@ feature 'GFM autocomplete', :js do
end
after
do
execute_script
(
"localStorage.clear();"
)
;
execute_script
(
"localStorage.clear();"
)
end
it
'updates issue descripton with GFM reference'
do
find
(
'.issuable-edit'
).
click
simulate
I
nput
(
'#issue-description'
,
"@
#{
user
.
name
[
0
...
3
]
}
"
)
simulate
_i
nput
(
'#issue-description'
,
"@
#{
user
.
name
[
0
...
3
]
}
"
)
find
(
'.atwho-view .cur'
).
click
...
...
@@ -106,7 +106,7 @@ feature 'GFM autocomplete', :js do
it
'includes items for assignee dropdowns with non-ASCII characters in name'
do
page
.
within
'.timeline-content-form'
do
find
(
'#note-body'
).
native
.
send_keys
(
''
)
simulate
Input
(
'#note-body'
,
"@
#{
user
.
name
[
0
...
8
]
}
"
);
simulate
_input
(
'#note-body'
,
"@
#{
user
.
name
[
0
...
8
]
}
"
)
end
expect
(
page
).
to
have_selector
(
'.atwho-container'
)
...
...
@@ -134,7 +134,7 @@ feature 'GFM autocomplete', :js do
note
=
find
(
'#note-body'
)
page
.
within
'.timeline-content-form'
do
note
.
native
.
send_keys
(
''
)
simulate
I
nput
(
'#note-body'
,
"~
#{
label
.
title
[
0
]
}
"
)
simulate
_i
nput
(
'#note-body'
,
"~
#{
label
.
title
[
0
]
}
"
)
note
.
click
end
...
...
spec/features/issues/markdown_toolbar_spec.rb
View file @
95d629a1
...
...
@@ -12,7 +12,7 @@ feature 'Issue markdown toolbar', :js do
end
after
do
execute_script
(
"localStorage.clear();"
)
;
execute_script
(
"localStorage.clear();"
)
end
it
"doesn't include first new line when adding bold"
do
...
...
spec/support/input_helper.rb
View file @
95d629a1
# see app/assets/javascripts/test_utils/simulate_input.js
module
InputHelper
def
simulate
I
nput
(
selector
,
input
=
''
)
def
simulate
_i
nput
(
selector
,
input
=
''
)
evaluate_script
(
"window.simulateInput(
#{
selector
.
to_json
}
,
#{
input
.
to_json
}
);"
)
end
end
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