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
Léo-Paul Géneau
gitlab-ce
Commits
60adf5a9
Commit
60adf5a9
authored
Aug 12, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update dropdown tests to match bootstrap one on issue page and droplab on other pages
parent
dff60db2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
spec/support/features/discussion_comments_shared_example.rb
spec/support/features/discussion_comments_shared_example.rb
+16
-6
No files found.
spec/support/features/discussion_comments_shared_example.rb
View file @
60adf5a9
...
@@ -76,7 +76,16 @@ shared_examples 'discussion comments' do |resource_name|
...
@@ -76,7 +76,16 @@ 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
if
resource_name
==
'issue'
find
(
menu_selector
).
trigger
'click'
expect
(
find
(
dropdown_selector
)).
to
have_content
'Comment'
find
(
toggle_selector
).
click
find
(
"
#{
menu_selector
}
.divider"
).
trigger
'click'
expect
(
find
(
dropdown_selector
)).
to
have_content
'Comment'
else
find
(
menu_selector
).
trigger
'click'
find
(
menu_selector
).
trigger
'click'
expect
(
page
).
to
have_selector
menu_selector
expect
(
page
).
to
have_selector
menu_selector
...
@@ -87,6 +96,7 @@ shared_examples 'discussion comments' do |resource_name|
...
@@ -87,6 +96,7 @@ shared_examples 'discussion comments' do |resource_name|
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
end
describe
'when selecting "Start discussion"'
do
describe
'when selecting "Start discussion"'
do
before
do
before
do
...
...
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