10 lines
254 B
Ruby
10 lines
254 B
Ruby
module SlashCommandsHelpers
|
|
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
|