diff options
Diffstat (limited to 'spec/support/quick_actions_helpers.rb')
-rw-r--r-- | spec/support/quick_actions_helpers.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/support/quick_actions_helpers.rb b/spec/support/quick_actions_helpers.rb new file mode 100644 index 00000000000..d2aaae7518f --- /dev/null +++ b/spec/support/quick_actions_helpers.rb @@ -0,0 +1,10 @@ +module QuickActionsHelpers + def write_note(text) + Sidekiq::Testing.fake! do + page.within('.js-main-target-form') do + fill_in 'note[note]', with: text + find('.js-comment-submit-button').trigger('click') + end + end + end +end |