2020-07-07 12:09:16 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
RSpec.shared_context 'project service Jira context' do
|
2021-03-29 21:09:08 +00:00
|
|
|
let(:url) { 'https://jira.example.com' }
|
|
|
|
let(:test_url) { 'https://jira.example.com/rest/api/2/serverInfo' }
|
2020-07-07 12:09:16 +00:00
|
|
|
|
|
|
|
def fill_form(disable: false)
|
2020-08-24 12:10:17 +00:00
|
|
|
click_active_checkbox if disable
|
2020-07-07 12:09:16 +00:00
|
|
|
|
|
|
|
fill_in 'service_url', with: url
|
|
|
|
fill_in 'service_username', with: 'username'
|
|
|
|
fill_in 'service_password', with: 'password'
|
|
|
|
end
|
|
|
|
end
|