gitlab-org--gitlab-foss/spec/support/quick_actions_helpers.rb

11 lines
253 B
Ruby
Raw Normal View History

module QuickActionsHelpers
def write_note(text)
Sidekiq::Testing.fake! do
page.within('.js-main-target-form') do
fill_in 'note[note]', with: text
2017-04-07 21:03:39 -04:00
find('.js-comment-submit-button').trigger('click')
end
end
end
end