Changed helper methods to use the click method
This commit is contained in:
parent
41e5ec8f74
commit
2d58626a33
2 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ shared_examples 'reportable note' do |type|
|
||||||
end
|
end
|
||||||
|
|
||||||
def open_dropdown(dropdown)
|
def open_dropdown(dropdown)
|
||||||
dropdown.find('.more-actions-toggle').trigger('click')
|
dropdown.find('.more-actions-toggle').click
|
||||||
dropdown.find('.dropdown-menu li', match: :first)
|
dropdown.find('.dropdown-menu li', match: :first)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,7 +2,7 @@ module NoteInteractionHelpers
|
||||||
def open_more_actions_dropdown(note)
|
def open_more_actions_dropdown(note)
|
||||||
note_element = find("#note_#{note.id}")
|
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)
|
note_element.find('.more-actions .dropdown-menu li', match: :first)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue