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