]> source.dussan.org Git - sonarqube.git/blob
a1055d09fabb8245d66de0f422518a820233581d
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should display error message when no issues available 1`] = `
4 <Modal
5   onRequestClose={[Function]}
6   size="small"
7 >
8   <form
9     id="bulk-change-form"
10     onSubmit={[Function]}
11   >
12     <div
13       className="modal-head"
14     >
15       <h2>
16         issue_bulk_change.form.title.0
17       </h2>
18     </div>
19     <div
20       className="modal-body modal-container"
21     >
22       <Alert
23         variant="warning"
24       >
25         issue_bulk_change.no_match
26       </Alert>
27     </div>
28     <div
29       className="modal-foot"
30     >
31       <Tooltip
32         overlay="issue_bulk_change.no_change_selected"
33       >
34         <SubmitButton
35           disabled={true}
36           id="bulk-change-submit"
37         >
38           apply
39         </SubmitButton>
40       </Tooltip>
41       <ResetButtonLink
42         onClick={[Function]}
43       >
44         cancel
45       </ResetButtonLink>
46     </div>
47   </form>
48 </Modal>
49 `;
50
51 exports[`should display form when issues are present 1`] = `
52 <Modal
53   onRequestClose={[Function]}
54   size="small"
55 >
56   <form
57     id="bulk-change-form"
58     onSubmit={[Function]}
59   >
60     <div
61       className="modal-head"
62     >
63       <h2>
64         issue_bulk_change.form.title.1
65       </h2>
66     </div>
67     <div
68       className="modal-body modal-container"
69     >
70       <Checkbox
71         checked={false}
72         className="display-inline-block spacer-top"
73         id="send-notifications"
74         onCheck={[Function]}
75         right={true}
76         thirdState={false}
77       >
78         <strong
79           className="little-spacer-right"
80         >
81           issue.send_notifications
82         </strong>
83       </Checkbox>
84     </div>
85     <div
86       className="modal-foot"
87     >
88       <Tooltip
89         overlay="issue_bulk_change.no_change_selected"
90       >
91         <SubmitButton
92           disabled={true}
93           id="bulk-change-submit"
94         >
95           apply
96         </SubmitButton>
97       </Tooltip>
98       <ResetButtonLink
99         onClick={[Function]}
100       >
101         cancel
102       </ResetButtonLink>
103     </div>
104   </form>
105 </Modal>
106 `;
107
108 exports[`should display warning when too many issues are passed 1`] = `
109 <h2>
110   issue_bulk_change.form.title.500
111 </h2>
112 `;
113
114 exports[`should display warning when too many issues are passed 2`] = `
115 <Alert
116   variant="warning"
117 >
118   <FormattedMessage
119     defaultMessage="issue_bulk_change.max_issues_reached"
120     id="issue_bulk_change.max_issues_reached"
121     values={
122       {
123         "max": <strong>
124           500
125         </strong>,
126       }
127     }
128   />
129 </Alert>
130 `;
131
132 exports[`should render select for severity: Option 1`] = `
133 <Option
134   data={
135     {
136       "label": "label",
137       "value": "value",
138     }
139   }
140 >
141   <SeverityHelper
142     className="display-flex-center"
143     severity="value"
144   />
145 </Option>
146 `;
147
148 exports[`should render select for severity: SingleValue 1`] = `
149 <SingleValue
150   data={
151     {
152       "label": "label",
153       "value": "value",
154     }
155   }
156 >
157   <SeverityHelper
158     className="display-flex-center"
159     severity="value"
160   />
161 </SingleValue>
162 `;
163
164 exports[`should render select for type: Option 1`] = `
165 <Option
166   data={
167     {
168       "label": "label",
169       "value": "value",
170     }
171   }
172 >
173   <div
174     className="display-flex-center"
175   >
176     <IssueTypeIcon
177       query="value"
178     />
179     <span
180       className="little-spacer-left"
181     >
182       label
183     </span>
184   </div>
185 </Option>
186 `;
187
188 exports[`should render select for type: SingleValue 1`] = `
189 <SingleValue
190   data={
191     {
192       "label": "label",
193       "value": "value",
194     }
195   }
196 >
197   <div
198     className="display-flex-center"
199   >
200     <IssueTypeIcon
201       query="value"
202     />
203     <span
204       className="little-spacer-left"
205     >
206       label
207     </span>
208   </div>
209 </SingleValue>
210 `;