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