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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
035bf5d4
Commit
035bf5d4
authored
Oct 05, 2017
by
Jose Ivan Vargas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix create_snipper and diff_notes specs
parent
7449c45d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
spec/features/merge_requests/user_posts_diff_notes_spec.rb
spec/features/merge_requests/user_posts_diff_notes_spec.rb
+3
-3
spec/features/projects/snippets/create_snippet_spec.rb
spec/features/projects/snippets/create_snippet_spec.rb
+2
-2
No files found.
spec/features/merge_requests/user_posts_diff_notes_spec.rb
View file @
035bf5d4
...
...
@@ -76,7 +76,7 @@ feature 'Merge requests > User posts diff notes', :js do
context
'with an unfolded line'
do
before
do
find
(
'.js-unfold'
,
match: :first
).
click
find
(
'.js-unfold'
,
match: :first
).
send_keys
(
:return
)
wait_for_requests
end
...
...
@@ -103,7 +103,7 @@ feature 'Merge requests > User posts diff notes', :js do
it
'allows commenting'
do
should_allow_commenting
(
find
(
'[id="2f6fcd96b88b36ce98c38da085c795a27d92a3dd_10_9"]'
))
first
(
'.js-note-delete'
,
visible:
false
).
trigger
(
'click'
)
first
(
'.js-note-delete'
,
visible:
false
).
click
should_allow_commenting
(
find
(
'[id="2f6fcd96b88b36ce98c38da085c795a27d92a3dd_10_9"]'
))
end
...
...
@@ -135,7 +135,7 @@ feature 'Merge requests > User posts diff notes', :js do
context
'with an unfolded line'
do
before
do
find
(
'.js-unfold'
,
match: :first
).
click
find
(
'.js-unfold'
,
match: :first
).
send_keys
(
:return
)
wait_for_requests
end
...
...
spec/features/projects/snippets/create_snippet_spec.rb
View file @
035bf5d4
...
...
@@ -10,7 +10,7 @@ feature 'Create Snippet', :js do
fill_in
'project_snippet_title'
,
with:
'My Snippet Title'
fill_in
'project_snippet_description'
,
with:
'My Snippet **Description**'
page
.
within
(
'.file-editor'
)
do
find
(
'.ace_text-input'
).
native
.
send_keys
(
'Hello World!'
)
find
(
'.ace_text-input'
,
visible:
false
)
.
send_keys
(
'Hello World!'
)
end
end
...
...
@@ -59,7 +59,7 @@ feature 'Create Snippet', :js do
fill_form
dropzone_file
Rails
.
root
.
join
(
'spec'
,
'fixtures'
,
'banana_sample.gif'
)
click_button
(
'Create snippet'
)
find
(
"input[value='Create snippet']"
).
send_keys
(
:return
)
wait_for_requests
expect
(
page
).
to
have_content
(
'My Snippet Title'
)
...
...
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