diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-19 04:45:44 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-19 04:45:44 +0300 |
commit | 85dc423f7090da0a52c73eb66faf22ddb20efff9 (patch) | |
tree | 9160f299afd8c80c038f08e1545be119f5e3f1e1 /spec/frontend/incidents_settings | |
parent | 15c2c8c66dbe422588e5411eee7e68f1fa440bb8 (diff) |
Add latest changes from gitlab-org/gitlab@13-4-stable-ee
Diffstat (limited to 'spec/frontend/incidents_settings')
-rw-r--r-- | spec/frontend/incidents_settings/components/__snapshots__/alerts_form_spec.js.snap | 20 | ||||
-rw-r--r-- | spec/frontend/incidents_settings/components/alerts_form_spec.js | 2 |
2 files changed, 18 insertions, 4 deletions
diff --git a/spec/frontend/incidents_settings/components/__snapshots__/alerts_form_spec.js.snap b/spec/frontend/incidents_settings/components/__snapshots__/alerts_form_spec.js.snap index f3f610e4bb7..cab2165b5db 100644 --- a/spec/frontend/incidents_settings/components/__snapshots__/alerts_form_spec.js.snap +++ b/spec/frontend/incidents_settings/components/__snapshots__/alerts_form_spec.js.snap @@ -45,7 +45,7 @@ exports[`Alert integration settings form default state should match the default </gl-link-stub> </label> - <gl-new-dropdown-stub + <gl-dropdown-stub block="true" category="tertiary" data-qa-selector="incident_templates_dropdown" @@ -55,7 +55,7 @@ exports[`Alert integration settings form default state should match the default text="selecte_tmpl" variant="default" > - <gl-new-dropdown-item-stub + <gl-dropdown-item-stub avatarurl="" data-qa-selector="incident_templates_item" iconcolor="" @@ -67,8 +67,8 @@ exports[`Alert integration settings form default state should match the default No template selected - </gl-new-dropdown-item-stub> - </gl-new-dropdown-stub> + </gl-dropdown-item-stub> + </gl-dropdown-stub> </gl-form-group-stub> <gl-form-group-stub @@ -81,6 +81,18 @@ exports[`Alert integration settings form default state should match the default </gl-form-checkbox-stub> </gl-form-group-stub> + <gl-form-group-stub + class="gl-pl-0 gl-mb-5" + > + <gl-form-checkbox-stub + checked="true" + > + <span> + Automatically close incident issues when the associated Prometheus alert resolves. + </span> + </gl-form-checkbox-stub> + </gl-form-group-stub> + <div class="gl-display-flex gl-justify-content-end" > diff --git a/spec/frontend/incidents_settings/components/alerts_form_spec.js b/spec/frontend/incidents_settings/components/alerts_form_spec.js index 04832f31e58..2516e8afdfa 100644 --- a/spec/frontend/incidents_settings/components/alerts_form_spec.js +++ b/spec/frontend/incidents_settings/components/alerts_form_spec.js @@ -16,6 +16,7 @@ describe('Alert integration settings form', () => { createIssue: true, sendEmail: false, templates: [], + autoCloseIncident: true, }, }, }); @@ -42,6 +43,7 @@ describe('Alert integration settings form', () => { create_issue: wrapper.vm.createIssueEnabled, issue_template_key: wrapper.vm.issueTemplate, send_email: wrapper.vm.sendEmailEnabled, + auto_close_incident: wrapper.vm.autoCloseIncident, }), ); }); |