diff options
author | Jarka Kadlecova <jarka@gitlab.com> | 2017-08-14 07:15:52 +0200 |
---|---|---|
committer | Jarka Kadlecova <jarka@gitlab.com> | 2017-08-14 07:15:52 +0200 |
commit | b67e333ce8dbb7bb81959c293e3e9c4aef5e9702 (patch) | |
tree | 2eef231f4dac6eedf23f50b03ba32280475c3d88 /spec/support/features | |
parent | 240d262db3ab073a6ce75acc4f365e48530146a8 (diff) | |
download | gitlab-ce-b67e333ce8dbb7bb81959c293e3e9c4aef5e9702.tar.gz |
fix static_analysis (rubocop)
Diffstat (limited to 'spec/support/features')
-rw-r--r-- | spec/support/features/discussion_comments_shared_example.rb | 8 |
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 |