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
ab88fcf1
Commit
ab88fcf1
authored
Aug 12, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Uncomments tests
parent
a3cf3e50
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
13 deletions
+10
-13
discussion_comments_shared_example.rb
spec/support/features/discussion_comments_shared_example.rb
+9
-8
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