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