summaryrefslogtreecommitdiff
path: root/spec/support/features
diff options
context:
space:
mode:
authorJarka Kadlecova <jarka@gitlab.com>2017-08-14 07:15:52 +0200
committerJarka Kadlecova <jarka@gitlab.com>2017-08-14 07:15:52 +0200
commitb67e333ce8dbb7bb81959c293e3e9c4aef5e9702 (patch)
tree2eef231f4dac6eedf23f50b03ba32280475c3d88 /spec/support/features
parent240d262db3ab073a6ce75acc4f365e48530146a8 (diff)
downloadgitlab-ce-b67e333ce8dbb7bb81959c293e3e9c4aef5e9702.tar.gz
fix static_analysis (rubocop)
Diffstat (limited to 'spec/support/features')
-rw-r--r--spec/support/features/discussion_comments_shared_example.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/support/features/discussion_comments_shared_example.rb b/spec/support/features/discussion_comments_shared_example.rb
index b5004a5beba..81cb94ab8c4 100644
--- a/spec/support/features/discussion_comments_shared_example.rb
+++ b/spec/support/features/discussion_comments_shared_example.rb
@@ -76,15 +76,14 @@ shared_examples 'discussion comments' do |resource_name|
expect(page).not_to have_selector menu_selector
end
-
it 'clicking the ul padding or divider should not change the text' do
+ find(menu_selector).trigger 'click'
+
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'
@@ -94,8 +93,9 @@ shared_examples 'discussion comments' do |resource_name|
find("#{menu_selector} .divider").trigger 'click'
expect(page).to have_selector menu_selector
- expect(find(dropdown_selector)).to have_content 'Comment'
end
+
+ expect(find(dropdown_selector)).to have_content 'Comment'
end
describe 'when selecting "Start discussion"' do