diff options
author | Simon Knox <psimyn@gmail.com> | 2017-08-28 08:03:33 +0300 |
---|---|---|
committer | Simon Knox <psimyn@gmail.com> | 2017-08-28 09:38:26 +0300 |
commit | bcd2135e08fea5193b0ed9960cd96fab6e7015a4 (patch) | |
tree | 95ab8823a44d9fc7598f15a016e6b65b7db65e06 /spec/support | |
parent | ef8eb3f6f7c1af167017ecc854e9fe385cee9354 (diff) |
fix transient test failures caused by wrong dropdown trigger
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/features/reportable_note_shared_examples.rb | 2 | ||||
-rw-r--r-- | spec/support/helpers/note_interaction_helpers.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/features/reportable_note_shared_examples.rb b/spec/support/features/reportable_note_shared_examples.rb index cb483ae9a5a..5a0e7c3d099 100644 --- a/spec/support/features/reportable_note_shared_examples.rb +++ b/spec/support/features/reportable_note_shared_examples.rb @@ -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 diff --git a/spec/support/helpers/note_interaction_helpers.rb b/spec/support/helpers/note_interaction_helpers.rb index 551c759133c..86008698692 100644 --- a/spec/support/helpers/note_interaction_helpers.rb +++ b/spec/support/helpers/note_interaction_helpers.rb @@ -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 |