diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-08-12 02:14:45 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-08-12 02:14:45 +0300 |
commit | ab88fcf117c4f55071ffaa476b7e72e0c11a967f (patch) | |
tree | 4898369d4a6cc2d49e3b4543815890175658f33f /spec/support/features | |
parent | a3cf3e5074fdad83120d1b2815e422f342c6de42 (diff) |
Uncomments tests
Diffstat (limited to 'spec/support/features')
-rw-r--r-- | spec/support/features/discussion_comments_shared_example.rb | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/spec/support/features/discussion_comments_shared_example.rb b/spec/support/features/discussion_comments_shared_example.rb index 1508783a166..831d0d5880c 100644 --- a/spec/support/features/discussion_comments_shared_example.rb +++ b/spec/support/features/discussion_comments_shared_example.rb @@ -11,6 +11,7 @@ shared_examples 'discussion comments' do |resource_name| expect(page).to have_selector toggle_selector find("#{form_selector} .note-textarea").send_keys('a') + find(submit_selector).click wait_for_requests @@ -75,17 +76,17 @@ 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' + it 'clicking the ul padding or divider should not change the text' do + find(menu_selector).trigger 'click' - # expect(page).to have_selector menu_selector - # expect(find(dropdown_selector)).to have_content 'Comment' + expect(page).to have_selector menu_selector + 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(find(dropdown_selector)).to have_content 'Comment' - # end + expect(page).to have_selector menu_selector + expect(find(dropdown_selector)).to have_content 'Comment' + end describe 'when selecting "Start discussion"' do before do |