summaryrefslogtreecommitdiff
path: root/spec/features/projects
diff options
context:
space:
mode:
authorJarka Kadlecova <jarka@gitlab.com>2017-05-30 14:53:01 +0200
committerJarka Kadlecova <jarka@gitlab.com>2017-06-01 07:47:16 +0200
commit84c68bb1402528944aa433b7a120d392fd93845b (patch)
tree10e8c1f43623db1a82314e513375a400be1d2a37 /spec/features/projects
parenta678f42ebb5bcb7434954865b2b2ecd67463aa3c (diff)
downloadgitlab-ce-84c68bb1402528944aa433b7a120d392fd93845b.tar.gz
Address MR comments
Diffstat (limited to 'spec/features/projects')
-rw-r--r--spec/features/projects/services/jira_service_spec.rb12
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