debian-mirror-gitlab/spec/support/quick_actions_helpers.rb
2017-09-10 17:25:29 +05:30

10 lines
253 B
Ruby

module QuickActionsHelpers
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