fix transient test failures caused by wrong dropdown trigger
This commit is contained in:
parent
ef8eb3f6f7
commit
bcd2135e08
3 changed files with 3 additions and 3 deletions
|
@ -91,7 +91,7 @@ describe 'Comments on personal snippets', :js do
|
|||
|
||||
context 'when editing a note' do
|
||||
it 'changes the text' do
|
||||
find('.js-note-edit').click
|
||||
find('.js-note-edit').trigger('click')
|
||||
|
||||
page.within('.current-note-edit-form') do
|
||||
fill_in 'note[note]', with: 'new content'
|
||||
|
|
|
@ -34,7 +34,7 @@ shared_examples 'reportable note' do
|
|||
end
|
||||
|
||||
def open_dropdown(dropdown)
|
||||
dropdown.click
|
||||
dropdown.find('.more-actions-toggle').trigger('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').click
|
||||
note_element.find('.more-actions-toggle').trigger('click')
|
||||
note_element.find('.more-actions .dropdown-menu li', match: :first)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue