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