]> source.dussan.org Git - sonarqube.git/blob
caeabbe63ae99d93672061b2a0a3b1212a63b5e2
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`generates token 1`] = `
4 <div
5   className="boxed-group onboarding-step is-open"
6 >
7   <div
8     className="onboarding-step-number"
9   >
10     1
11   </div>
12   <div
13     className="boxed-group-header"
14   >
15     <h2>
16       onboarding.token.header
17     </h2>
18   </div>
19   <div
20     className=""
21   >
22     <div
23       className="boxed-group-inner"
24     >
25       <div>
26         <div>
27           <Radio
28             checked={true}
29             onCheck={[Function]}
30             value="generate"
31           >
32             onboarding.token.generate_project_token
33           </Radio>
34           <div
35             className="big-spacer-top"
36           >
37             <form
38               className="display-flex-center"
39               onSubmit={[Function]}
40             >
41               <div
42                 className="display-flex-column"
43               >
44                 <label
45                   className="h3"
46                   htmlFor="generate-token-input"
47                 >
48                   onboarding.token.generate_project_token.label
49                   <DocumentationTooltip
50                     className="spacer-left"
51                     content="onboarding.token.generate_project_token.help"
52                     links={
53                       Array [
54                         Object {
55                           "href": "/documentation/user-guide/user-token/",
56                           "label": "learn_more",
57                         },
58                       ]
59                     }
60                   />
61                 </label>
62                 <input
63                   autoFocus={true}
64                   className="input-super-large spacer-right spacer-top text-middle"
65                   id="generate-token-input"
66                   onChange={[Function]}
67                   required={true}
68                   type="text"
69                   value=""
70                 />
71               </div>
72               <div
73                 className="display-flex-column spacer-left big-spacer-right"
74               >
75                 <label
76                   className="h3"
77                   htmlFor="token-select-expiration"
78                 >
79                   users.tokens.expires_in
80                 </label>
81                 <div
82                   className="display-flex-center"
83                 >
84                   <Select
85                     className="spacer-top abs-width-100 spacer-right"
86                     id="token-select-expiration"
87                     isSearchable={false}
88                     onChange={[Function]}
89                     options={
90                       Array [
91                         Object {
92                           "label": "users.tokens.expiration.30",
93                           "value": 30,
94                         },
95                         Object {
96                           "label": "users.tokens.expiration.90",
97                           "value": 90,
98                         },
99                         Object {
100                           "label": "users.tokens.expiration.365",
101                           "value": 365,
102                         },
103                         Object {
104                           "label": "users.tokens.expiration.0",
105                           "value": 0,
106                         },
107                       ]
108                     }
109                     value={
110                       Object {
111                         "label": "users.tokens.expiration.30",
112                         "value": 30,
113                       }
114                     }
115                   />
116                   <SubmitButton
117                     className="text-middle spacer-top"
118                     disabled={true}
119                   >
120                     onboarding.token.generate
121                   </SubmitButton>
122                 </div>
123               </div>
124             </form>
125           </div>
126         </div>
127         <div
128           className="big-spacer-top"
129         >
130           <Radio
131             checked={false}
132             onCheck={[Function]}
133             value="use-existing"
134           >
135             onboarding.token.use_existing_token
136           </Radio>
137         </div>
138       </div>
139       <div
140         className="note big-spacer-top width-50"
141       >
142         <FormattedMessage
143           defaultMessage="onboarding.token.text"
144           id="onboarding.token.text"
145           values={
146             Object {
147               "link": <ForwardRef(Link)
148                 target="_blank"
149                 to="/account/security"
150               >
151                 onboarding.token.text.user_account
152               </ForwardRef(Link)>,
153             }
154           }
155         />
156       </div>
157     </div>
158   </div>
159 </div>
160 `;
161
162 exports[`generates token 2`] = `
163 <div
164   className="boxed-group onboarding-step is-open"
165 >
166   <div
167     className="onboarding-step-number"
168   >
169     1
170   </div>
171   <div
172     className="boxed-group-header"
173   >
174     <h2>
175       onboarding.token.header
176     </h2>
177   </div>
178   <div
179     className=""
180   >
181     <div
182       className="boxed-group-inner"
183     >
184       <div>
185         <div>
186           <Radio
187             checked={true}
188             onCheck={[Function]}
189             value="generate"
190           >
191             onboarding.token.generate_project_token
192           </Radio>
193           <div
194             className="big-spacer-top"
195           >
196             <form
197               className="display-flex-center"
198               onSubmit={[Function]}
199             >
200               <div
201                 className="display-flex-column"
202               >
203                 <label
204                   className="h3"
205                   htmlFor="generate-token-input"
206                 >
207                   onboarding.token.generate_project_token.label
208                   <DocumentationTooltip
209                     className="spacer-left"
210                     content="onboarding.token.generate_project_token.help"
211                     links={
212                       Array [
213                         Object {
214                           "href": "/documentation/user-guide/user-token/",
215                           "label": "learn_more",
216                         },
217                       ]
218                     }
219                   />
220                 </label>
221                 <input
222                   autoFocus={true}
223                   className="input-super-large spacer-right spacer-top text-middle"
224                   id="generate-token-input"
225                   onChange={[Function]}
226                   required={true}
227                   type="text"
228                   value="my token"
229                 />
230               </div>
231               <div
232                 className="display-flex-column spacer-left big-spacer-right"
233               >
234                 <label
235                   className="h3"
236                   htmlFor="token-select-expiration"
237                 >
238                   users.tokens.expires_in
239                 </label>
240                 <div
241                   className="display-flex-center"
242                 >
243                   <Select
244                     className="spacer-top abs-width-100 spacer-right"
245                     id="token-select-expiration"
246                     isSearchable={false}
247                     onChange={[Function]}
248                     options={
249                       Array [
250                         Object {
251                           "label": "users.tokens.expiration.30",
252                           "value": 30,
253                         },
254                         Object {
255                           "label": "users.tokens.expiration.90",
256                           "value": 90,
257                         },
258                         Object {
259                           "label": "users.tokens.expiration.365",
260                           "value": 365,
261                         },
262                         Object {
263                           "label": "users.tokens.expiration.0",
264                           "value": 0,
265                         },
266                       ]
267                     }
268                     value={
269                       Object {
270                         "label": "users.tokens.expiration.30",
271                         "value": 30,
272                       }
273                     }
274                   />
275                   <i
276                     className="spinner text-middle"
277                   />
278                 </div>
279               </div>
280             </form>
281           </div>
282         </div>
283         <div
284           className="big-spacer-top"
285         >
286           <Radio
287             checked={false}
288             onCheck={[Function]}
289             value="use-existing"
290           >
291             onboarding.token.use_existing_token
292           </Radio>
293         </div>
294       </div>
295       <div
296         className="note big-spacer-top width-50"
297       >
298         <FormattedMessage
299           defaultMessage="onboarding.token.text"
300           id="onboarding.token.text"
301           values={
302             Object {
303               "link": <ForwardRef(Link)
304                 target="_blank"
305                 to="/account/security"
306               >
307                 onboarding.token.text.user_account
308               </ForwardRef(Link)>,
309             }
310           }
311         />
312       </div>
313     </div>
314   </div>
315 </div>
316 `;
317
318 exports[`generates token 3`] = `
319 <div
320   className="boxed-group onboarding-step is-open"
321 >
322   <div
323     className="onboarding-step-number"
324   >
325     1
326   </div>
327   <div
328     className="boxed-group-header"
329   >
330     <h2>
331       onboarding.token.header
332     </h2>
333   </div>
334   <div
335     className=""
336   >
337     <div
338       className="boxed-group-inner"
339     >
340       <form
341         onSubmit={[Function]}
342       >
343         <span
344           className="text-middle"
345         >
346           my token
347           : 
348         </span>
349         <strong
350           className="spacer-right text-middle"
351         >
352           abcd1234
353         </strong>
354         <DeleteButton
355           className="button-small text-middle"
356           onClick={[Function]}
357         />
358       </form>
359       <div
360         className="note big-spacer-top width-50"
361       >
362         <FormattedMessage
363           defaultMessage="onboarding.token.text"
364           id="onboarding.token.text"
365           values={
366             Object {
367               "link": <ForwardRef(Link)
368                 target="_blank"
369                 to="/account/security"
370               >
371                 onboarding.token.text.user_account
372               </ForwardRef(Link)>,
373             }
374           }
375         />
376       </div>
377       <div
378         className="big-spacer-top"
379       >
380         <Button
381           className="js-continue"
382           onClick={[Function]}
383         >
384           continue
385         </Button>
386       </div>
387     </div>
388   </div>
389 </div>
390 `;
391
392 exports[`revokes token 1`] = `
393 <div
394   className="boxed-group onboarding-step is-open"
395 >
396   <div
397     className="onboarding-step-number"
398   >
399     1
400   </div>
401   <div
402     className="boxed-group-header"
403   >
404     <h2>
405       onboarding.token.header
406     </h2>
407   </div>
408   <div
409     className=""
410   >
411     <div
412       className="boxed-group-inner"
413     >
414       <form
415         onSubmit={[Function]}
416       >
417         <span
418           className="text-middle"
419         >
420           my token
421           : 
422         </span>
423         <strong
424           className="spacer-right text-middle"
425         >
426           abcd1234
427         </strong>
428         <DeleteButton
429           className="button-small text-middle"
430           onClick={[Function]}
431         />
432       </form>
433       <div
434         className="note big-spacer-top width-50"
435       >
436         <FormattedMessage
437           defaultMessage="onboarding.token.text"
438           id="onboarding.token.text"
439           values={
440             Object {
441               "link": <ForwardRef(Link)
442                 target="_blank"
443                 to="/account/security"
444               >
445                 onboarding.token.text.user_account
446               </ForwardRef(Link)>,
447             }
448           }
449         />
450       </div>
451       <div
452         className="big-spacer-top"
453       >
454         <Button
455           className="js-continue"
456           onClick={[Function]}
457         >
458           continue
459         </Button>
460       </div>
461     </div>
462   </div>
463 </div>
464 `;
465
466 exports[`revokes token 2`] = `
467 <div
468   className="boxed-group onboarding-step is-open"
469 >
470   <div
471     className="onboarding-step-number"
472   >
473     1
474   </div>
475   <div
476     className="boxed-group-header"
477   >
478     <h2>
479       onboarding.token.header
480     </h2>
481   </div>
482   <div
483     className=""
484   >
485     <div
486       className="boxed-group-inner"
487     >
488       <form
489         onSubmit={[Function]}
490       >
491         <span
492           className="text-middle"
493         >
494           my token
495           : 
496         </span>
497         <strong
498           className="spacer-right text-middle"
499         >
500           abcd1234
501         </strong>
502         <i
503           className="spinner text-middle"
504         />
505       </form>
506       <div
507         className="note big-spacer-top width-50"
508       >
509         <FormattedMessage
510           defaultMessage="onboarding.token.text"
511           id="onboarding.token.text"
512           values={
513             Object {
514               "link": <ForwardRef(Link)
515                 target="_blank"
516                 to="/account/security"
517               >
518                 onboarding.token.text.user_account
519               </ForwardRef(Link)>,
520             }
521           }
522         />
523       </div>
524       <div
525         className="big-spacer-top"
526       >
527         <Button
528           className="js-continue"
529           onClick={[Function]}
530         >
531           continue
532         </Button>
533       </div>
534     </div>
535   </div>
536 </div>
537 `;
538
539 exports[`revokes token 3`] = `
540 <div
541   className="boxed-group onboarding-step is-open"
542 >
543   <div
544     className="onboarding-step-number"
545   >
546     1
547   </div>
548   <div
549     className="boxed-group-header"
550   >
551     <h2>
552       onboarding.token.header
553     </h2>
554   </div>
555   <div
556     className=""
557   >
558     <div
559       className="boxed-group-inner"
560     >
561       <div>
562         <div>
563           <Radio
564             checked={true}
565             onCheck={[Function]}
566             value="generate"
567           >
568             onboarding.token.generate_project_token
569           </Radio>
570           <div
571             className="big-spacer-top"
572           >
573             <form
574               className="display-flex-center"
575               onSubmit={[Function]}
576             >
577               <div
578                 className="display-flex-column"
579               >
580                 <label
581                   className="h3"
582                   htmlFor="generate-token-input"
583                 >
584                   onboarding.token.generate_project_token.label
585                   <DocumentationTooltip
586                     className="spacer-left"
587                     content="onboarding.token.generate_project_token.help"
588                     links={
589                       Array [
590                         Object {
591                           "href": "/documentation/user-guide/user-token/",
592                           "label": "learn_more",
593                         },
594                       ]
595                     }
596                   />
597                 </label>
598                 <input
599                   autoFocus={true}
600                   className="input-super-large spacer-right spacer-top text-middle"
601                   id="generate-token-input"
602                   onChange={[Function]}
603                   required={true}
604                   type="text"
605                   value=""
606                 />
607               </div>
608               <div
609                 className="display-flex-column spacer-left big-spacer-right"
610               >
611                 <label
612                   className="h3"
613                   htmlFor="token-select-expiration"
614                 >
615                   users.tokens.expires_in
616                 </label>
617                 <div
618                   className="display-flex-center"
619                 >
620                   <Select
621                     className="spacer-top abs-width-100 spacer-right"
622                     id="token-select-expiration"
623                     isSearchable={false}
624                     onChange={[Function]}
625                     options={
626                       Array [
627                         Object {
628                           "label": "users.tokens.expiration.30",
629                           "value": 30,
630                         },
631                         Object {
632                           "label": "users.tokens.expiration.90",
633                           "value": 90,
634                         },
635                         Object {
636                           "label": "users.tokens.expiration.365",
637                           "value": 365,
638                         },
639                         Object {
640                           "label": "users.tokens.expiration.0",
641                           "value": 0,
642                         },
643                       ]
644                     }
645                     value={
646                       Object {
647                         "label": "users.tokens.expiration.30",
648                         "value": 30,
649                       }
650                     }
651                   />
652                   <SubmitButton
653                     className="text-middle spacer-top"
654                     disabled={true}
655                   >
656                     onboarding.token.generate
657                   </SubmitButton>
658                 </div>
659               </div>
660             </form>
661           </div>
662         </div>
663         <div
664           className="big-spacer-top"
665         >
666           <Radio
667             checked={false}
668             onCheck={[Function]}
669             value="use-existing"
670           >
671             onboarding.token.use_existing_token
672           </Radio>
673         </div>
674       </div>
675       <div
676         className="note big-spacer-top width-50"
677       >
678         <FormattedMessage
679           defaultMessage="onboarding.token.text"
680           id="onboarding.token.text"
681           values={
682             Object {
683               "link": <ForwardRef(Link)
684                 target="_blank"
685                 to="/account/security"
686               >
687                 onboarding.token.text.user_account
688               </ForwardRef(Link)>,
689             }
690           }
691         />
692       </div>
693     </div>
694   </div>
695 </div>
696 `;