]> source.dussan.org Git - sonarqube.git/blob
c05fa79501e7c2deb58084d7d454fd3f9b887259
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: default 1`] = `
4 <Modal
5   contentLabel="quality_profiles.new_profile"
6   onRequestClose={[MockFunction]}
7   size="small"
8 >
9   <form
10     id="create-profile-form"
11     onSubmit={[Function]}
12   >
13     <div
14       className="modal-head"
15     >
16       <h2>
17         quality_profiles.new_profile
18       </h2>
19     </div>
20     <div
21       className="modal-body"
22     >
23       <div
24         className="modal-field"
25       >
26         <label
27           htmlFor="create-profile-name"
28         >
29           name
30           <em
31             className="mandatory"
32           >
33             *
34           </em>
35         </label>
36         <input
37           autoFocus={true}
38           id="create-profile-name"
39           maxLength={100}
40           name="name"
41           onChange={[Function]}
42           required={true}
43           size={50}
44           type="text"
45           value=""
46         />
47       </div>
48       <div
49         className="modal-field"
50       >
51         <label
52           htmlFor="create-profile-language"
53         >
54           language
55           <em
56             className="mandatory"
57           >
58             *
59           </em>
60         </label>
61         <Select
62           clearable={false}
63           id="create-profile-language"
64           name="language"
65           onChange={[Function]}
66           options={
67             Array [
68               Object {
69                 "label": "CSS",
70                 "value": "css",
71               },
72               Object {
73                 "label": "JavaScript",
74                 "value": "js",
75               },
76             ]
77           }
78           value="css"
79         />
80       </div>
81       <div
82         className="modal-field"
83       >
84         <label
85           htmlFor="create-profile-parent"
86         >
87           quality_profiles.parent
88         </label>
89         <Select
90           clearable={true}
91           id="create-profile-parent"
92           name="parentKey"
93           onChange={[Function]}
94           options={
95             Array [
96               Object {
97                 "label": "none",
98                 "value": "",
99               },
100               Object {
101                 "label": "name",
102                 "value": "key",
103               },
104             ]
105           }
106           value=""
107         />
108       </div>
109       <input
110         name="hello-ie11"
111         type="hidden"
112         value=""
113       />
114     </div>
115     <div
116       className="modal-foot"
117     >
118       <SubmitButton
119         disabled={false}
120         id="create-profile-submit"
121       >
122         create
123       </SubmitButton>
124       <ResetButtonLink
125         id="create-profile-cancel"
126         onClick={[MockFunction]}
127       >
128         cancel
129       </ResetButtonLink>
130     </div>
131   </form>
132 </Modal>
133 `;
134
135 exports[`should render correctly: with query filter 1`] = `
136 <Modal
137   contentLabel="quality_profiles.new_profile"
138   onRequestClose={[MockFunction]}
139   size="small"
140 >
141   <form
142     id="create-profile-form"
143     onSubmit={[Function]}
144   >
145     <div
146       className="modal-head"
147     >
148       <h2>
149         quality_profiles.new_profile
150       </h2>
151     </div>
152     <div
153       className="modal-body"
154     >
155       <div
156         className="modal-field"
157       >
158         <label
159           htmlFor="create-profile-name"
160         >
161           name
162           <em
163             className="mandatory"
164           >
165             *
166           </em>
167         </label>
168         <input
169           autoFocus={true}
170           id="create-profile-name"
171           maxLength={100}
172           name="name"
173           onChange={[Function]}
174           required={true}
175           size={50}
176           type="text"
177           value=""
178         />
179       </div>
180       <div
181         className="modal-field"
182       >
183         <label
184           htmlFor="create-profile-language"
185         >
186           language
187           <em
188             className="mandatory"
189           >
190             *
191           </em>
192         </label>
193         <Select
194           clearable={false}
195           id="create-profile-language"
196           name="language"
197           onChange={[Function]}
198           options={
199             Array [
200               Object {
201                 "label": "CSS",
202                 "value": "css",
203               },
204               Object {
205                 "label": "JavaScript",
206                 "value": "js",
207               },
208             ]
209           }
210           value="js"
211         />
212       </div>
213       <div
214         className="modal-field"
215       >
216         <label
217           htmlFor="create-profile-parent"
218         >
219           quality_profiles.parent
220         </label>
221         <Select
222           clearable={true}
223           id="create-profile-parent"
224           name="parentKey"
225           onChange={[Function]}
226           options={
227             Array [
228               Object {
229                 "label": "none",
230                 "value": "",
231               },
232               Object {
233                 "label": "name",
234                 "value": "key",
235               },
236             ]
237           }
238           value=""
239         />
240       </div>
241       <div
242         className="modal-field spacer-bottom js-importer"
243         data-key="key_importer"
244         key="key_importer"
245       >
246         <label
247           htmlFor="create-profile-form-backup-key_importer"
248         >
249           name_importer
250         </label>
251         <input
252           id="create-profile-form-backup-key_importer"
253           name="backup_key_importer"
254           type="file"
255         />
256         <p
257           className="note"
258         >
259           quality_profiles.optional_configuration_file
260         </p>
261       </div>
262       <input
263         name="hello-ie11"
264         type="hidden"
265         value=""
266       />
267     </div>
268     <div
269       className="modal-foot"
270     >
271       <SubmitButton
272         disabled={false}
273         id="create-profile-submit"
274       >
275         create
276       </SubmitButton>
277       <ResetButtonLink
278         id="create-profile-cancel"
279         onClick={[MockFunction]}
280       >
281         cancel
282       </ResetButtonLink>
283     </div>
284   </form>
285 </Modal>
286 `;