diff options
Diffstat (limited to 'spec/features')
| -rw-r--r-- | spec/features/projects/services/jira_service_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/features/projects/services/jira_service_spec.rb b/spec/features/projects/services/jira_service_spec.rb index 3d951d6b3e3..9a092f4ed93 100644 --- a/spec/features/projects/services/jira_service_spec.rb +++ b/spec/features/projects/services/jira_service_spec.rb @@ -47,6 +47,18 @@ feature 'Setup Jira service', :feature, :js do WebMock.stub_request(:get, project_url).to_return(status: 401) end + it 'shows errors when some required fields are not filled in' do + click_link('JIRA') + + check 'Active' + fill_in 'service_password', with: 'password' + click_button('Test settings and save changes') + + page.within('.service-settings') do + expect(page).to have_content('This field is required.') + end + end + it 'activates the JIRA service' do click_link('JIRA') fill_form |
