Changed helper methods to use the click method
This commit is contained in:
parent
41e5ec8f74
commit
2d58626a33
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue