Changed helper methods to use the click method

This commit is contained in:
Jose Ivan Vargas 2017-09-12 16:43:28 -05:00
parent 41e5ec8f74
commit 2d58626a33
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ shared_examples 'reportable note' do |type|
end
def open_dropdown(dropdown)
dropdown.find('.more-actions-toggle').trigger('click')
dropdown.find('.more-actions-toggle').click
dropdown.find('.dropdown-menu li', match: :first)
end
end

View File

@ -2,7 +2,7 @@ module NoteInteractionHelpers
def open_more_actions_dropdown(note)
note_element = find("#note_#{note.id}")
note_element.find('.more-actions-toggle').trigger('click')
note_element.find('.more-actions-toggle').click
note_element.find('.more-actions .dropdown-menu li', match: :first)
end
end