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