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
ab88fcf1
Commit
ab88fcf1
authored
Aug 12, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Uncomments tests
parent
a3cf3e50
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
13 deletions
+10
-13
spec/support/features/discussion_comments_shared_example.rb
spec/support/features/discussion_comments_shared_example.rb
+9
-8
spec/support/quick_actions_helpers.rb
spec/support/quick_actions_helpers.rb
+1
-5
No files found.
spec/support/features/discussion_comments_shared_example.rb
View file @
ab88fcf1
...
@@ -11,6 +11,7 @@ shared_examples 'discussion comments' do |resource_name|
...
@@ -11,6 +11,7 @@ shared_examples 'discussion comments' do |resource_name|
expect
(
page
).
to
have_selector
toggle_selector
expect
(
page
).
to
have_selector
toggle_selector
find
(
"
#{
form_selector
}
.note-textarea"
).
send_keys
(
'a'
)
find
(
"
#{
form_selector
}
.note-textarea"
).
send_keys
(
'a'
)
find
(
submit_selector
).
click
find
(
submit_selector
).
click
wait_for_requests
wait_for_requests
...
@@ -75,17 +76,17 @@ shared_examples 'discussion comments' do |resource_name|
...
@@ -75,17 +76,17 @@ shared_examples 'discussion comments' do |resource_name|
expect
(
page
).
not_to
have_selector
menu_selector
expect
(
page
).
not_to
have_selector
menu_selector
end
end
#
it 'clicking the ul padding or divider should not change the text' do
it
'clicking the ul padding or divider should not change the text'
do
#
find(menu_selector).trigger 'click'
find
(
menu_selector
).
trigger
'click'
#
expect(page).to have_selector menu_selector
expect
(
page
).
to
have_selector
menu_selector
#
expect(find(dropdown_selector)).to have_content 'Comment'
expect
(
find
(
dropdown_selector
)).
to
have_content
'Comment'
#
find("#{menu_selector} .divider").trigger 'click'
find
(
"
#{
menu_selector
}
.divider"
).
trigger
'click'
#
expect(page).to have_selector menu_selector
expect
(
page
).
to
have_selector
menu_selector
#
expect(find(dropdown_selector)).to have_content 'Comment'
expect
(
find
(
dropdown_selector
)).
to
have_content
'Comment'
#
end
end
describe
'when selecting "Start discussion"'
do
describe
'when selecting "Start discussion"'
do
before
do
before
do
...
...
spec/support/quick_actions_helpers.rb
View file @
ab88fcf1
module
QuickActionsHelpers
module
QuickActionsHelpers
def
write_note
(
text
,
wait
=
true
)
def
write_note
(
text
)
Sidekiq
::
Testing
.
fake!
do
Sidekiq
::
Testing
.
fake!
do
page
.
within
(
'.js-main-target-form'
)
do
page
.
within
(
'.js-main-target-form'
)
do
fill_in
'note[note]'
,
with:
text
fill_in
'note[note]'
,
with:
text
find
(
'.js-comment-submit-button'
).
trigger
(
'click'
)
find
(
'.js-comment-submit-button'
).
trigger
(
'click'
)
if
wait
wait_for_requests
end
end
end
end
end
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