summaryrefslogtreecommitdiff
path: root/spec/frontend/sidebar/lock/__snapshots__/edit_form_spec.js.snap
blob: 18d4df297dfda4e9d6aa5de4aaed038c3bee4f1d (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Edit Form Dropdown In issue page when locked the appropriate warning text is rendered 1`] = `
<div
  class="dropdown-menu sidebar-item-warning-message"
  data-testid="warning-text"
>
  <p
    class="text"
  >
    <gl-sprintf-stub
      message="Unlock this %{issuableDisplayName}? %{strongStart}Everyone%{strongEnd} will be able to comment."
    />
  </p>
   
  <edit-form-buttons-stub
    islocked="true"
    issuabledisplayname="issue"
  />
</div>
`;

exports[`Edit Form Dropdown In issue page when unlocked the appropriate warning text is rendered 1`] = `
<div
  class="dropdown-menu sidebar-item-warning-message"
  data-testid="warning-text"
>
  <p
    class="text"
  >
    <gl-sprintf-stub
      message="Lock this %{issuableDisplayName}? Only %{strongStart}project members%{strongEnd} will be able to comment."
    />
  </p>
   
  <edit-form-buttons-stub
    issuabledisplayname="issue"
  />
</div>
`;

exports[`Edit Form Dropdown In merge request page when locked the appropriate warning text is rendered 1`] = `
<div
  class="dropdown-menu sidebar-item-warning-message"
  data-testid="warning-text"
>
  <p
    class="text"
  >
    <gl-sprintf-stub
      message="Unlock this %{issuableDisplayName}? %{strongStart}Everyone%{strongEnd} will be able to comment."
    />
  </p>
   
  <edit-form-buttons-stub
    islocked="true"
    issuabledisplayname="merge request"
  />
</div>
`;

exports[`Edit Form Dropdown In merge request page when unlocked the appropriate warning text is rendered 1`] = `
<div
  class="dropdown-menu sidebar-item-warning-message"
  data-testid="warning-text"
>
  <p
    class="text"
  >
    <gl-sprintf-stub
      message="Lock this %{issuableDisplayName}? Only %{strongStart}project members%{strongEnd} will be able to comment."
    />
  </p>
   
  <edit-form-buttons-stub
    issuabledisplayname="merge request"
  />
</div>
`;