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
Tatuya Kamada
gitlab-ce
Commits
de3e0834
Commit
de3e0834
authored
Apr 06, 2017
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Further fixes for feature spec
parent
126c6512
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
spec/features/discussion_comments_spec.rb
spec/features/discussion_comments_spec.rb
+6
-4
No files found.
spec/features/discussion_comments_spec.rb
View file @
de3e0834
...
...
@@ -24,7 +24,7 @@ shared_examples 'discussion comments' do |resource_name|
expect
(
new_comment
).
not_to
have_selector
'.discussion'
end
if
resource_name
=
~
/(issue|merge request)/
if
resource_name
=
=
'issue'
it
"'Comment & close
#{
resource_name
}
' will post a comment and close the
#{
resource_name
}
"
do
find
(
"
#{
form_selector
}
.note-textarea"
).
send_keys
(
'a'
)
...
...
@@ -92,12 +92,15 @@ shared_examples 'discussion comments' do |resource_name|
describe
'when selecting "Start discussion"'
do
before
do
screenshot_and_open_image
find
(
"
#{
menu_selector
}
li"
,
match: :first
)
p
first
(
"
#{
menu_selector
}
li"
)[
'class'
]
p
first
(
"
#{
menu_selector
}
li"
).
text
first
(
"
#{
menu_selector
}
li"
).
click
end
it
'updates the note_type input to "DiscussionNote"'
do
expect
(
find
(
"
#{
form_selector
}
#note_type"
).
value
).
to
be
'DiscussionNote'
expect
(
find
(
"
#{
form_selector
}
#note_type"
,
visible:
false
).
value
).
to
be
'DiscussionNote'
end
it
'updates the submit button text'
do
...
...
@@ -124,7 +127,7 @@ shared_examples 'discussion comments' do |resource_name|
expect
(
new_comment
).
to
have_selector
'.discussion'
end
if
resource_name
=
~
/(issue|merge request)/
if
resource_name
=
=
'issue'
it
"'Start discussion & close
#{
resource_name
}
' will post a discussion and close the
#{
resource_name
}
"
do
find
(
close_selector
).
click
...
...
@@ -208,7 +211,6 @@ end
describe
'Discussion Comments'
,
:feature
,
:js
do
include
RepoHelpers
include
WaitForAjax
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
)
}
...
...
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