2017-05-31 01:50:53 -04:00
|
|
|
module QuickActionsHelpers
|
2016-09-08 18:51:35 -04:00
|
|
|
def write_note(text)
|
|
|
|
Sidekiq::Testing.fake! do
|
|
|
|
page.within('.js-main-target-form') do
|
|
|
|
fill_in 'note[note]', with: text
|
2017-04-07 21:03:39 -04:00
|
|
|
find('.js-comment-submit-button').trigger('click')
|
2016-09-08 18:51:35 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|