gitlab-org--gitlab-foss/spec/support/slash_commands_helpers.rb
2017-02-10 15:09:08 -06:00

10 lines
241 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('.comment-btn').trigger('click')
end
end
end
end