diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-14 15:08:53 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-14 15:08:53 +0300 |
commit | 7a124e225ea58c2a432dd29f82ba682963886383 (patch) | |
tree | 4ad5eefec173bdc56aaacc81e4dfb66a8fb9e254 /spec/frontend/incidents_settings | |
parent | 067b3d04573d1473dbc6c81ef775d70c6636ff3f (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/incidents_settings')
-rw-r--r-- | spec/frontend/incidents_settings/components/__snapshots__/pagerduty_form_spec.js.snap | 4 | ||||
-rw-r--r-- | spec/frontend/incidents_settings/components/pagerduty_form_spec.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/frontend/incidents_settings/components/__snapshots__/pagerduty_form_spec.js.snap b/spec/frontend/incidents_settings/components/__snapshots__/pagerduty_form_spec.js.snap index 7e24aa439d4..fae93196d2c 100644 --- a/spec/frontend/incidents_settings/components/__snapshots__/pagerduty_form_spec.js.snap +++ b/spec/frontend/incidents_settings/components/__snapshots__/pagerduty_form_spec.js.snap @@ -57,12 +57,12 @@ exports[`Alert integration settings form should match the default snapshot 1`] = </gl-button-stub> <gl-modal-stub + actioncancel="[object Object]" + actionprimary="[object Object]" arialabel="" dismisslabel="Close" modalclass="" modalid="resetWebhookModal" - ok-title="Reset webhook URL" - ok-variant="danger" size="md" title="Reset webhook URL" titletag="h4" diff --git a/spec/frontend/incidents_settings/components/pagerduty_form_spec.js b/spec/frontend/incidents_settings/components/pagerduty_form_spec.js index d2b591d427d..521a861829b 100644 --- a/spec/frontend/incidents_settings/components/pagerduty_form_spec.js +++ b/spec/frontend/incidents_settings/components/pagerduty_form_spec.js @@ -47,7 +47,7 @@ describe('Alert integration settings form', () => { resetWebhookUrl.mockResolvedValueOnce({ data: { pagerduty_webhook_url: newWebhookUrl }, }); - findModal().vm.$emit('ok'); + findModal().vm.$emit('primary'); await waitForPromises(); expect(resetWebhookUrl).toHaveBeenCalled(); expect(findWebhookInput().attributes('value')).toBe(newWebhookUrl); @@ -56,7 +56,7 @@ describe('Alert integration settings form', () => { it('should show error message and NOT reset webhook url', async () => { resetWebhookUrl.mockRejectedValueOnce(); - findModal().vm.$emit('ok'); + findModal().vm.$emit('primary'); await waitForPromises(); expect(findAlert().attributes('variant')).toBe('danger'); }); |