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