]> source.dussan.org Git - sonarqube.git/blob
96b6595eb05a4e6357ceeae2946632acaa3aa348
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: default 1`] = `
4 <div
5   className="settings-definition"
6 >
7   <div
8     className="settings-definition-left"
9   >
10     <h3
11       className="settings-definition-name"
12     >
13       email_configuration.test.title
14     </h3>
15   </div>
16   <form
17     className="settings-definition-right"
18     onSubmit={[Function]}
19   >
20     <div
21       className="form-field"
22     >
23       <label
24         htmlFor="test-email-to"
25       >
26         email_configuration.test.to_address
27         <em
28           className="mandatory"
29         >
30           *
31         </em>
32       </label>
33       <input
34         className="settings-large-input"
35         disabled={false}
36         id="test-email-to"
37         onChange={[Function]}
38         required={true}
39         type="email"
40         value="luke@skywalker.biz"
41       />
42     </div>
43     <div
44       className="form-field"
45     >
46       <label
47         htmlFor="test-email-subject"
48       >
49         email_configuration.test.subject
50       </label>
51       <input
52         className="settings-large-input"
53         disabled={false}
54         id="test-email-subject"
55         onChange={[Function]}
56         type="text"
57         value="email_configuration.test.subject"
58       />
59     </div>
60     <div
61       className="form-field"
62     >
63       <label
64         htmlFor="test-email-message"
65       >
66         email_configuration.test.message
67         <em
68           className="mandatory"
69         >
70           *
71         </em>
72       </label>
73       <textarea
74         className="settings-large-input"
75         disabled={false}
76         id="test-email-message"
77         onChange={[Function]}
78         required={true}
79         rows={5}
80         value="email_configuration.test.message_text"
81       />
82     </div>
83     <SubmitButton
84       disabled={false}
85     >
86       email_configuration.test.send
87     </SubmitButton>
88   </form>
89 </div>
90 `;
91
92 exports[`should render correctly: error 1`] = `
93 <div
94   className="settings-definition"
95 >
96   <div
97     className="settings-definition-left"
98   >
99     <h3
100       className="settings-definition-name"
101     >
102       email_configuration.test.title
103     </h3>
104   </div>
105   <form
106     className="settings-definition-right"
107     onSubmit={[Function]}
108   >
109     <div
110       className="form-field"
111     >
112       <Alert
113         variant="error"
114       >
115         Some error message
116       </Alert>
117     </div>
118     <div
119       className="form-field"
120     >
121       <label
122         htmlFor="test-email-to"
123       >
124         email_configuration.test.to_address
125         <em
126           className="mandatory"
127         >
128           *
129         </em>
130       </label>
131       <input
132         className="settings-large-input"
133         disabled={false}
134         id="test-email-to"
135         onChange={[Function]}
136         required={true}
137         type="email"
138         value="luke@skywalker.biz"
139       />
140     </div>
141     <div
142       className="form-field"
143     >
144       <label
145         htmlFor="test-email-subject"
146       >
147         email_configuration.test.subject
148       </label>
149       <input
150         className="settings-large-input"
151         disabled={false}
152         id="test-email-subject"
153         onChange={[Function]}
154         type="text"
155         value="email_configuration.test.subject"
156       />
157     </div>
158     <div
159       className="form-field"
160     >
161       <label
162         htmlFor="test-email-message"
163       >
164         email_configuration.test.message
165         <em
166           className="mandatory"
167         >
168           *
169         </em>
170       </label>
171       <textarea
172         className="settings-large-input"
173         disabled={false}
174         id="test-email-message"
175         onChange={[Function]}
176         required={true}
177         rows={5}
178         value="email_configuration.test.message_text"
179       />
180     </div>
181     <SubmitButton
182       disabled={false}
183     >
184       email_configuration.test.send
185     </SubmitButton>
186   </form>
187 </div>
188 `;
189
190 exports[`should render correctly: sending 1`] = `
191 <div
192   className="settings-definition"
193 >
194   <div
195     className="settings-definition-left"
196   >
197     <h3
198       className="settings-definition-name"
199     >
200       email_configuration.test.title
201     </h3>
202   </div>
203   <form
204     className="settings-definition-right"
205     onSubmit={[Function]}
206   >
207     <div
208       className="form-field"
209     >
210       <label
211         htmlFor="test-email-to"
212       >
213         email_configuration.test.to_address
214         <em
215           className="mandatory"
216         >
217           *
218         </em>
219       </label>
220       <input
221         className="settings-large-input"
222         disabled={true}
223         id="test-email-to"
224         onChange={[Function]}
225         required={true}
226         type="email"
227         value="luke@skywalker.biz"
228       />
229     </div>
230     <div
231       className="form-field"
232     >
233       <label
234         htmlFor="test-email-subject"
235       >
236         email_configuration.test.subject
237       </label>
238       <input
239         className="settings-large-input"
240         disabled={true}
241         id="test-email-subject"
242         onChange={[Function]}
243         type="text"
244         value="email_configuration.test.subject"
245       />
246     </div>
247     <div
248       className="form-field"
249     >
250       <label
251         htmlFor="test-email-message"
252       >
253         email_configuration.test.message
254         <em
255           className="mandatory"
256         >
257           *
258         </em>
259       </label>
260       <textarea
261         className="settings-large-input"
262         disabled={true}
263         id="test-email-message"
264         onChange={[Function]}
265         required={true}
266         rows={5}
267         value="email_configuration.test.message_text"
268       />
269     </div>
270     <SubmitButton
271       disabled={true}
272     >
273       email_configuration.test.send
274     </SubmitButton>
275     <DeferredSpinner
276       className="spacer-left"
277     />
278   </form>
279 </div>
280 `;
281
282 exports[`should render correctly: success 1`] = `
283 <div
284   className="settings-definition"
285 >
286   <div
287     className="settings-definition-left"
288   >
289     <h3
290       className="settings-definition-name"
291     >
292       email_configuration.test.title
293     </h3>
294   </div>
295   <form
296     className="settings-definition-right"
297     onSubmit={[Function]}
298   >
299     <div
300       className="form-field"
301     >
302       <Alert
303         variant="success"
304       >
305         email_configuration.test.email_was_sent_to_x.email@example.com
306       </Alert>
307     </div>
308     <div
309       className="form-field"
310     >
311       <label
312         htmlFor="test-email-to"
313       >
314         email_configuration.test.to_address
315         <em
316           className="mandatory"
317         >
318           *
319         </em>
320       </label>
321       <input
322         className="settings-large-input"
323         disabled={false}
324         id="test-email-to"
325         onChange={[Function]}
326         required={true}
327         type="email"
328         value="luke@skywalker.biz"
329       />
330     </div>
331     <div
332       className="form-field"
333     >
334       <label
335         htmlFor="test-email-subject"
336       >
337         email_configuration.test.subject
338       </label>
339       <input
340         className="settings-large-input"
341         disabled={false}
342         id="test-email-subject"
343         onChange={[Function]}
344         type="text"
345         value="email_configuration.test.subject"
346       />
347     </div>
348     <div
349       className="form-field"
350     >
351       <label
352         htmlFor="test-email-message"
353       >
354         email_configuration.test.message
355         <em
356           className="mandatory"
357         >
358           *
359         </em>
360       </label>
361       <textarea
362         className="settings-large-input"
363         disabled={false}
364         id="test-email-message"
365         onChange={[Function]}
366         required={true}
367         rows={5}
368         value="email_configuration.test.message_text"
369       />
370     </div>
371     <SubmitButton
372       disabled={false}
373     >
374       email_configuration.test.send
375     </SubmitButton>
376   </form>
377 </div>
378 `;