debian-mirror-gitlab/spec/support/slash_commands_helpers.rb

11 lines
226 B
Ruby
Raw Normal View History

2016-09-29 09:46:39 +05:30
module SlashCommandsHelpers
def write_note(text)
Sidekiq::Testing.fake! do
page.within('.js-main-target-form') do
fill_in 'note[note]', with: text
click_button 'Comment'
end
end
end
end