debian-mirror-gitlab/spec/support/helpers/quick_actions_helpers.rb

11 lines
242 B
Ruby
Raw Normal View History

2018-10-15 14:42:47 +05:30
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').click
end
end
end
end