]> source.dussan.org Git - sonarqube.git/blob
c735dca4150fe30de84327c8dafd9d3943390c0e
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: bitbucket 1`] = `
4 <div
5   className="display-flex-start"
6 >
7   <form
8     onSubmit={[Function]}
9   >
10     <h2
11       className="big"
12     >
13       onboarding.create_project.pat_form.title.bitbucket
14     </h2>
15     <p
16       className="big-spacer-top big-spacer-bottom"
17     >
18       onboarding.create_project.pat_form.help.bitbucket
19     </p>
20     <ValidationInput
21       id="personal_access_token"
22       isInvalid={false}
23       isValid={false}
24       label="onboarding.create_project.enter_pat"
25       required={true}
26     >
27       <input
28         autoFocus={true}
29         className="input-super-large"
30         id="personal_access_token"
31         minLength={1}
32         name="personal_access_token"
33         onChange={[Function]}
34         type="text"
35       />
36     </ValidationInput>
37     <SubmitButton
38       disabled={true}
39     >
40       save
41     </SubmitButton>
42     <DeferredSpinner
43       className="spacer-left"
44       loading={false}
45       timeout={100}
46     />
47   </form>
48   <Alert
49     className="big-spacer-left big-spacer-top"
50     display="block"
51     variant="info"
52   >
53     <h3>
54       onboarding.create_project.pat_help.title
55     </h3>
56     <p
57       className="big-spacer-top big-spacer-bottom"
58     >
59       <FormattedMessage
60         defaultMessage="onboarding.create_project.pat_help.instructions"
61         id="onboarding.create_project.pat_help.instructions"
62         values={
63           Object {
64             "alm": "onboarding.alm.bitbucket",
65           }
66         }
67       />
68     </p>
69     <div
70       className="text-middle"
71     >
72       <img
73         alt=""
74         className="spacer-right"
75         height="16"
76         src="/images/alm/bitbucket.svg"
77       />
78       <a
79         href="http://www.example.com/plugins/servlet/access-tokens/add"
80         rel="noopener noreferrer"
81         target="_blank"
82       >
83         onboarding.create_project.pat_help.link
84       </a>
85     </div>
86     <p
87       className="big-spacer-top big-spacer-bottom"
88     >
89       onboarding.create_project.pat_help.instructions2.bitbucket
90     </p>
91     <ul>
92       <li>
93         <FormattedMessage
94           defaultMessage="onboarding.create_project.pat_help.bbs_permission_projects"
95           id="onboarding.create_project.pat_help.bbs_permission_projects"
96           values={
97             Object {
98               "perm": <strong>
99                 onboarding.create_project.pat_help.read_permission
100               </strong>,
101             }
102           }
103         />
104       </li>
105       <li>
106         <FormattedMessage
107           defaultMessage="onboarding.create_project.pat_help.bbs_permission_repos"
108           id="onboarding.create_project.pat_help.bbs_permission_repos"
109           values={
110             Object {
111               "perm": <strong>
112                 onboarding.create_project.pat_help.read_permission
113               </strong>,
114             }
115           }
116         />
117       </li>
118     </ul>
119   </Alert>
120 </div>
121 `;
122
123 exports[`should render correctly: gitlab 1`] = `
124 <div
125   className="display-flex-start"
126 >
127   <form
128     onSubmit={[Function]}
129   >
130     <h2
131       className="big"
132     >
133       onboarding.create_project.pat_form.title.gitlab
134     </h2>
135     <p
136       className="big-spacer-top big-spacer-bottom"
137     >
138       onboarding.create_project.pat_form.help.gitlab
139     </p>
140     <ValidationInput
141       id="personal_access_token"
142       isInvalid={false}
143       isValid={false}
144       label="onboarding.create_project.enter_pat"
145       required={true}
146     >
147       <input
148         autoFocus={true}
149         className="input-super-large"
150         id="personal_access_token"
151         minLength={1}
152         name="personal_access_token"
153         onChange={[Function]}
154         type="text"
155       />
156     </ValidationInput>
157     <SubmitButton
158       disabled={true}
159     >
160       save
161     </SubmitButton>
162     <DeferredSpinner
163       className="spacer-left"
164       loading={false}
165       timeout={100}
166     />
167   </form>
168   <Alert
169     className="big-spacer-left big-spacer-top"
170     display="block"
171     variant="info"
172   >
173     <h3>
174       onboarding.create_project.pat_help.title
175     </h3>
176     <p
177       className="big-spacer-top big-spacer-bottom"
178     >
179       <FormattedMessage
180         defaultMessage="onboarding.create_project.pat_help.instructions"
181         id="onboarding.create_project.pat_help.instructions"
182         values={
183           Object {
184             "alm": "onboarding.alm.gitlab",
185           }
186         }
187       />
188     </p>
189     <div
190       className="text-middle"
191     >
192       <img
193         alt=""
194         className="spacer-right"
195         height="16"
196         src="/images/alm/gitlab.svg"
197       />
198       <a
199         href="https://gitlab.com/profile/personal_access_tokens"
200         rel="noopener noreferrer"
201         target="_blank"
202       >
203         onboarding.create_project.pat_help.link
204       </a>
205     </div>
206     <p
207       className="big-spacer-top big-spacer-bottom"
208     >
209       onboarding.create_project.pat_help.instructions2.gitlab
210     </p>
211     <ul>
212       <li
213         className="spacer-bottom"
214       >
215         <strong>
216           onboarding.create_project.pat_help.gitlab.read_api_permission
217         </strong>
218       </li>
219     </ul>
220   </Alert>
221 </div>
222 `;
223
224 exports[`should render correctly: gitlab with non-standard api path 1`] = `
225 <div
226   className="display-flex-start"
227 >
228   <form
229     onSubmit={[Function]}
230   >
231     <h2
232       className="big"
233     >
234       onboarding.create_project.pat_form.title.gitlab
235     </h2>
236     <p
237       className="big-spacer-top big-spacer-bottom"
238     >
239       onboarding.create_project.pat_form.help.gitlab
240     </p>
241     <ValidationInput
242       id="personal_access_token"
243       isInvalid={false}
244       isValid={false}
245       label="onboarding.create_project.enter_pat"
246       required={true}
247     >
248       <input
249         autoFocus={true}
250         className="input-super-large"
251         id="personal_access_token"
252         minLength={1}
253         name="personal_access_token"
254         onChange={[Function]}
255         type="text"
256       />
257     </ValidationInput>
258     <SubmitButton
259       disabled={true}
260     >
261       save
262     </SubmitButton>
263     <DeferredSpinner
264       className="spacer-left"
265       loading={false}
266       timeout={100}
267     />
268   </form>
269   <Alert
270     className="big-spacer-left big-spacer-top"
271     display="block"
272     variant="info"
273   >
274     <h3>
275       onboarding.create_project.pat_help.title
276     </h3>
277     <p
278       className="big-spacer-top big-spacer-bottom"
279     >
280       <FormattedMessage
281         defaultMessage="onboarding.create_project.pat_help.instructions"
282         id="onboarding.create_project.pat_help.instructions"
283         values={
284           Object {
285             "alm": "onboarding.alm.gitlab",
286           }
287         }
288       />
289     </p>
290     <div
291       className="text-middle"
292     >
293       <img
294         alt=""
295         className="spacer-right"
296         height="16"
297         src="/images/alm/gitlab.svg"
298       />
299       <a
300         href="https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#creating-a-personal-access-token"
301         rel="noopener noreferrer"
302         target="_blank"
303       >
304         onboarding.create_project.pat_help.link
305       </a>
306     </div>
307     <p
308       className="big-spacer-top big-spacer-bottom"
309     >
310       onboarding.create_project.pat_help.instructions2.gitlab
311     </p>
312     <ul>
313       <li
314         className="spacer-bottom"
315       >
316         <strong>
317           onboarding.create_project.pat_help.gitlab.read_api_permission
318         </strong>
319       </li>
320     </ul>
321   </Alert>
322 </div>
323 `;
324
325 exports[`should render correctly: submitting 1`] = `
326 <div
327   className="display-flex-start"
328 >
329   <form
330     onSubmit={[Function]}
331   >
332     <h2
333       className="big"
334     >
335       onboarding.create_project.pat_form.title.bitbucket
336     </h2>
337     <p
338       className="big-spacer-top big-spacer-bottom"
339     >
340       onboarding.create_project.pat_form.help.bitbucket
341     </p>
342     <ValidationInput
343       id="personal_access_token"
344       isInvalid={false}
345       isValid={false}
346       label="onboarding.create_project.enter_pat"
347       required={true}
348     >
349       <input
350         autoFocus={true}
351         className="input-super-large"
352         id="personal_access_token"
353         minLength={1}
354         name="personal_access_token"
355         onChange={[Function]}
356         type="text"
357       />
358     </ValidationInput>
359     <SubmitButton
360       disabled={true}
361     >
362       save
363     </SubmitButton>
364     <DeferredSpinner
365       className="spacer-left"
366       loading={true}
367       timeout={100}
368     />
369   </form>
370   <Alert
371     className="big-spacer-left big-spacer-top"
372     display="block"
373     variant="info"
374   >
375     <h3>
376       onboarding.create_project.pat_help.title
377     </h3>
378     <p
379       className="big-spacer-top big-spacer-bottom"
380     >
381       <FormattedMessage
382         defaultMessage="onboarding.create_project.pat_help.instructions"
383         id="onboarding.create_project.pat_help.instructions"
384         values={
385           Object {
386             "alm": "onboarding.alm.bitbucket",
387           }
388         }
389       />
390     </p>
391     <div
392       className="text-middle"
393     >
394       <img
395         alt=""
396         className="spacer-right"
397         height="16"
398         src="/images/alm/bitbucket.svg"
399       />
400       <a
401         href="http://www.example.com/plugins/servlet/access-tokens/add"
402         rel="noopener noreferrer"
403         target="_blank"
404       >
405         onboarding.create_project.pat_help.link
406       </a>
407     </div>
408     <p
409       className="big-spacer-top big-spacer-bottom"
410     >
411       onboarding.create_project.pat_help.instructions2.bitbucket
412     </p>
413     <ul>
414       <li>
415         <FormattedMessage
416           defaultMessage="onboarding.create_project.pat_help.bbs_permission_projects"
417           id="onboarding.create_project.pat_help.bbs_permission_projects"
418           values={
419             Object {
420               "perm": <strong>
421                 onboarding.create_project.pat_help.read_permission
422               </strong>,
423             }
424           }
425         />
426       </li>
427       <li>
428         <FormattedMessage
429           defaultMessage="onboarding.create_project.pat_help.bbs_permission_repos"
430           id="onboarding.create_project.pat_help.bbs_permission_repos"
431           values={
432             Object {
433               "perm": <strong>
434                 onboarding.create_project.pat_help.read_permission
435               </strong>,
436             }
437           }
438         />
439       </li>
440     </ul>
441   </Alert>
442 </div>
443 `;
444
445 exports[`should render correctly: validation failed 1`] = `
446 <div
447   className="display-flex-start"
448 >
449   <form
450     onSubmit={[Function]}
451   >
452     <h2
453       className="big"
454     >
455       onboarding.create_project.pat_form.title.bitbucket
456     </h2>
457     <p
458       className="big-spacer-top big-spacer-bottom"
459     >
460       onboarding.create_project.pat_form.help.bitbucket
461     </p>
462     <ValidationInput
463       error="onboarding.create_project.pat_incorrect"
464       id="personal_access_token"
465       isInvalid={true}
466       isValid={false}
467       label="onboarding.create_project.enter_pat"
468       required={true}
469     >
470       <input
471         autoFocus={true}
472         className="input-super-large is-invalid"
473         id="personal_access_token"
474         minLength={1}
475         name="personal_access_token"
476         onChange={[Function]}
477         type="text"
478       />
479     </ValidationInput>
480     <SubmitButton
481       disabled={true}
482     >
483       save
484     </SubmitButton>
485     <DeferredSpinner
486       className="spacer-left"
487       loading={false}
488       timeout={100}
489     />
490   </form>
491   <Alert
492     className="big-spacer-left big-spacer-top"
493     display="block"
494     variant="info"
495   >
496     <h3>
497       onboarding.create_project.pat_help.title
498     </h3>
499     <p
500       className="big-spacer-top big-spacer-bottom"
501     >
502       <FormattedMessage
503         defaultMessage="onboarding.create_project.pat_help.instructions"
504         id="onboarding.create_project.pat_help.instructions"
505         values={
506           Object {
507             "alm": "onboarding.alm.bitbucket",
508           }
509         }
510       />
511     </p>
512     <div
513       className="text-middle"
514     >
515       <img
516         alt=""
517         className="spacer-right"
518         height="16"
519         src="/images/alm/bitbucket.svg"
520       />
521       <a
522         href="http://www.example.com/plugins/servlet/access-tokens/add"
523         rel="noopener noreferrer"
524         target="_blank"
525       >
526         onboarding.create_project.pat_help.link
527       </a>
528     </div>
529     <p
530       className="big-spacer-top big-spacer-bottom"
531     >
532       onboarding.create_project.pat_help.instructions2.bitbucket
533     </p>
534     <ul>
535       <li>
536         <FormattedMessage
537           defaultMessage="onboarding.create_project.pat_help.bbs_permission_projects"
538           id="onboarding.create_project.pat_help.bbs_permission_projects"
539           values={
540             Object {
541               "perm": <strong>
542                 onboarding.create_project.pat_help.read_permission
543               </strong>,
544             }
545           }
546         />
547       </li>
548       <li>
549         <FormattedMessage
550           defaultMessage="onboarding.create_project.pat_help.bbs_permission_repos"
551           id="onboarding.create_project.pat_help.bbs_permission_repos"
552           values={
553             Object {
554               "perm": <strong>
555                 onboarding.create_project.pat_help.read_permission
556               </strong>,
557             }
558           }
559         />
560       </li>
561     </ul>
562   </Alert>
563 </div>
564 `;