summaryrefslogtreecommitdiff
path: root/spec/frontend/alerts_settings/__snapshots__/alerts_settings_form_old_spec.js.snap
blob: 9306bf24baf92d33d0566fe368a6ba6e4ca9b6e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`AlertsSettingsFormOld with default values renders the initial template 1`] = `
"<gl-form-stub>
  <h5 class=\\"gl-font-lg gl-my-5\\"></h5>
  <!---->
  <div data-testid=\\"alert-settings-description\\">
    <p>
      <gl-sprintf-stub message=\\"You must provide this URL and authorization key to authorize an external service to send alerts to GitLab. You can provide this URL and key to multiple services. After configuring an external service, alerts from your service will display on the GitLab %{linkStart}Alerts%{linkEnd} page.\\"></gl-sprintf-stub>
    </p>
    <p>
      <gl-sprintf-stub message=\\"Review your external service's documentation to learn where to provide this information to your external service, and the %{linkStart}GitLab documentation%{linkEnd} to learn more about configuring your endpoint.\\"></gl-sprintf-stub>
    </p>
  </div>
  <gl-form-group-stub label-for=\\"integration-type\\" label=\\"Integration\\">
    <gl-form-select-stub id=\\"integration-type\\" options=\\"[object Object],[object Object],[object Object]\\" data-testid=\\"alert-settings-select\\" value=\\"HTTP\\"></gl-form-select-stub> <span class=\\"gl-text-gray-500\\"><gl-sprintf-stub message=\\"Learn more about our our upcoming %{linkStart}integrations%{linkEnd}\\"></gl-sprintf-stub></span>
  </gl-form-group-stub>
  <gl-form-group-stub label=\\"Active\\" label-for=\\"active\\">
    <toggle-button-stub id=\\"active\\"></toggle-button-stub>
  </gl-form-group-stub>
  <!---->
  <gl-form-group-stub label=\\"Webhook URL\\" label-for=\\"url\\">
    <gl-form-input-group-stub value=\\"/alerts/notify.json\\" predefinedoptions=\\"[object Object]\\" id=\\"url\\" readonly=\\"\\"></gl-form-input-group-stub> <span class=\\"gl-text-gray-500\\">

      </span>
  </gl-form-group-stub>
  <gl-form-group-stub label-for=\\"authorization-key\\">
    <gl-form-input-group-stub value=\\"\\" predefinedoptions=\\"[object Object]\\" id=\\"authorization-key\\" readonly=\\"\\" class=\\"gl-mb-2\\"></gl-form-input-group-stub>
    <gl-button-stub category=\\"primary\\" variant=\\"default\\" size=\\"medium\\" icon=\\"\\" buttontextclasses=\\"\\" disabled=\\"true\\" class=\\"gl-mt-3\\" role=\\"button\\" tabindex=\\"0\\">Reset key</gl-button-stub>
    <gl-modal-stub modalid=\\"tokenModal\\" titletag=\\"h4\\" modalclass=\\"\\" size=\\"md\\" title=\\"Reset key\\" ok-title=\\"Reset key\\" ok-variant=\\"danger\\">
      Resetting the authorization key for this project will require updating the authorization key in every alert source it is enabled in.
    </gl-modal-stub>
  </gl-form-group-stub>
  <gl-form-group-stub label=\\"Alert test payload\\" label-for=\\"alert-json\\">
    <gl-form-textarea-stub noresize=\\"true\\" id=\\"alert-json\\" disabled=\\"true\\" state=\\"true\\" placeholder=\\"Enter test alert JSON....\\" rows=\\"6\\" max-rows=\\"10\\"></gl-form-textarea-stub>
  </gl-form-group-stub>
  <gl-button-stub category=\\"primary\\" variant=\\"default\\" size=\\"medium\\" icon=\\"\\" buttontextclasses=\\"\\" disabled=\\"true\\">Test alert payload</gl-button-stub>
  <div class=\\"footer-block row-content-block gl-display-flex gl-justify-content-space-between\\">
    <gl-button-stub category=\\"primary\\" variant=\\"success\\" size=\\"medium\\" icon=\\"\\" buttontextclasses=\\"\\" disabled=\\"true\\">
      Save changes
    </gl-button-stub>
    <gl-button-stub category=\\"primary\\" variant=\\"default\\" size=\\"medium\\" icon=\\"\\" buttontextclasses=\\"\\" disabled=\\"true\\">
      Cancel
    </gl-button-stub>
  </div>
</gl-form-stub>"
`;