summaryrefslogtreecommitdiff
path: root/spec/javascripts
diff options
context:
space:
mode:
authorJarka Kadlecova <jarka@gitlab.com>2017-07-26 09:57:56 +0200
committerJarka Kadlecova <jarka@gitlab.com>2017-07-27 07:51:36 +0200
commitaa2b3ff1e4c8bb725a96ed55906d142300ccf017 (patch)
tree5e834e50277c1c12a18e5dd1523eb8d93259d4de /spec/javascripts
parentf2da36f19661353cd1bd6788fbdf1a65e2d70f8d (diff)
downloadgitlab-ce-aa2b3ff1e4c8bb725a96ed55906d142300ccf017.tar.gz
Display specific error message when JIRA test fails32483-jira-error
Diffstat (limited to 'spec/javascripts')
-rw-r--r--spec/javascripts/integrations/integration_settings_form_spec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/javascripts/integrations/integration_settings_form_spec.js b/spec/javascripts/integrations/integration_settings_form_spec.js
index 45909d4e70e..3daeb91b1e2 100644
--- a/spec/javascripts/integrations/integration_settings_form_spec.js
+++ b/spec/javascripts/integrations/integration_settings_form_spec.js
@@ -135,10 +135,10 @@ describe('IntegrationSettingsForm', () => {
integrationSettingsForm.testSettings(formData);
- deferred.resolve({ error: true, message: errorMessage });
+ deferred.resolve({ error: true, message: errorMessage, service_response: 'some error' });
const $flashContainer = $('.flash-container');
- expect($flashContainer.find('.flash-text').text()).toEqual(errorMessage);
+ expect($flashContainer.find('.flash-text').text()).toEqual('Test failed. some error');
expect($flashContainer.find('.flash-action')).toBeDefined();
expect($flashContainer.find('.flash-action').text()).toEqual('Save anyway');
});