]> source.dussan.org Git - sonarqube.git/blob
97099a9e2629791a0f76810297d23cfc2cffecf6
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: default 1`] = `
4 [
5   <div
6     className="modal-head"
7   >
8     <h2>
9       project_quality_profile.change_lang_X_profile.JavaScript
10     </h2>
11   </div>,
12   <form
13     onSubmit={[Function]}
14   >
15     <div
16       className="modal-body"
17     >
18       <div
19         className="big-spacer-bottom"
20       >
21         <Radio
22           checked={false}
23           className="display-flex-start"
24           disabled={false}
25           onCheck={[Function]}
26           value="-1"
27         >
28           <div
29             className="spacer-left"
30           >
31             <div
32               className="little-spacer-bottom"
33             >
34               project_quality_profile.always_use_default
35             </div>
36             <div
37               className="display-flex-center"
38             >
39               <span
40                 className="text-muted spacer-right"
41               >
42                 current_noun
43                 :
44               </span>
45               name
46             </div>
47           </div>
48         </Radio>
49       </div>
50       <div
51         className="big-spacer-bottom"
52       >
53         <Radio
54           checked={true}
55           className="display-flex-start"
56           disabled={false}
57           onCheck={[Function]}
58           value="foo"
59         >
60           <div
61             className="spacer-left"
62           >
63             <div
64               className="little-spacer-bottom"
65             >
66               project_quality_profile.always_use_specific
67             </div>
68             <div
69               className="display-flex-center"
70             >
71               <Select
72                 className="abs-width-300"
73                 components={
74                   {
75                     "Option": [Function],
76                   }
77                 }
78                 isDisabled={false}
79                 onChange={[Function]}
80                 options={
81                   [
82                     {
83                       "isDisabled": false,
84                       "label": "name",
85                       "language": "js",
86                       "value": "foo",
87                     },
88                     {
89                       "isDisabled": true,
90                       "label": "name",
91                       "language": "js",
92                       "value": "bar",
93                     },
94                   ]
95                 }
96                 value={
97                   {
98                     "isDisabled": false,
99                     "label": "name",
100                     "language": "js",
101                     "value": "foo",
102                   }
103                 }
104               />
105             </div>
106           </div>
107         </Radio>
108       </div>
109     </div>
110     <div
111       className="modal-foot"
112     >
113       <SubmitButton
114         disabled={true}
115       >
116         save
117       </SubmitButton>
118       <ButtonLink
119         disabled={false}
120         onClick={[Function]}
121       >
122         cancel
123       </ButtonLink>
124     </div>
125   </form>,
126 ]
127 `;
128
129 exports[`should render correctly: inherits system default 1`] = `
130 [
131   <div
132     className="modal-head"
133   >
134     <h2>
135       project_quality_profile.change_lang_X_profile.JavaScript
136     </h2>
137   </div>,
138   <form
139     onSubmit={[Function]}
140   >
141     <div
142       className="modal-body"
143     >
144       <div
145         className="big-spacer-bottom"
146       >
147         <Radio
148           checked={true}
149           className="display-flex-start"
150           disabled={false}
151           onCheck={[Function]}
152           value="-1"
153         >
154           <div
155             className="spacer-left"
156           >
157             <div
158               className="little-spacer-bottom"
159             >
160               project_quality_profile.always_use_default
161             </div>
162             <div
163               className="display-flex-center"
164             >
165               <span
166                 className="text-muted spacer-right"
167               >
168                 current_noun
169                 :
170               </span>
171               name
172             </div>
173           </div>
174         </Radio>
175       </div>
176       <div
177         className="big-spacer-bottom"
178       >
179         <Radio
180           checked={false}
181           className="display-flex-start"
182           disabled={false}
183           onCheck={[Function]}
184           value="foo"
185         >
186           <div
187             className="spacer-left"
188           >
189             <div
190               className="little-spacer-bottom"
191             >
192               project_quality_profile.always_use_specific
193             </div>
194             <div
195               className="display-flex-center"
196             >
197               <Select
198                 className="abs-width-300"
199                 components={
200                   {
201                     "Option": [Function],
202                   }
203                 }
204                 isDisabled={true}
205                 onChange={[Function]}
206                 options={
207                   [
208                     {
209                       "isDisabled": false,
210                       "label": "name",
211                       "language": "js",
212                       "value": "foo",
213                     },
214                     {
215                       "isDisabled": true,
216                       "label": "name",
217                       "language": "js",
218                       "value": "bar",
219                     },
220                   ]
221                 }
222                 value={
223                   {
224                     "isDisabled": false,
225                     "label": "name",
226                     "language": "js",
227                     "value": "foo",
228                   }
229                 }
230               />
231             </div>
232           </div>
233         </Radio>
234       </div>
235     </div>
236     <div
237       className="modal-foot"
238     >
239       <SubmitButton
240         disabled={true}
241       >
242         save
243       </SubmitButton>
244       <ButtonLink
245         disabled={false}
246         onClick={[Function]}
247       >
248         cancel
249       </ButtonLink>
250     </div>
251   </form>,
252 ]
253 `;
254
255 exports[`should render correctly: needs reanalysis 1`] = `
256 [
257   <div
258     className="modal-head"
259   >
260     <h2>
261       project_quality_profile.change_lang_X_profile.JavaScript
262     </h2>
263   </div>,
264   <form
265     onSubmit={[Function]}
266   >
267     <div
268       className="modal-body"
269     >
270       <div
271         className="big-spacer-bottom"
272       >
273         <Radio
274           checked={false}
275           className="display-flex-start"
276           disabled={false}
277           onCheck={[Function]}
278           value="-1"
279         >
280           <div
281             className="spacer-left"
282           >
283             <div
284               className="little-spacer-bottom"
285             >
286               project_quality_profile.always_use_default
287             </div>
288             <div
289               className="display-flex-center"
290             >
291               <span
292                 className="text-muted spacer-right"
293               >
294                 current_noun
295                 :
296               </span>
297               name
298             </div>
299           </div>
300         </Radio>
301       </div>
302       <div
303         className="big-spacer-bottom"
304       >
305         <Radio
306           checked={true}
307           className="display-flex-start"
308           disabled={false}
309           onCheck={[Function]}
310           value="foo"
311         >
312           <div
313             className="spacer-left"
314           >
315             <div
316               className="little-spacer-bottom"
317             >
318               project_quality_profile.always_use_specific
319             </div>
320             <div
321               className="display-flex-center"
322             >
323               <Select
324                 className="abs-width-300"
325                 components={
326                   {
327                     "Option": [Function],
328                   }
329                 }
330                 isDisabled={false}
331                 onChange={[Function]}
332                 options={
333                   [
334                     {
335                       "isDisabled": false,
336                       "label": "name",
337                       "language": "js",
338                       "value": "foo",
339                     },
340                     {
341                       "isDisabled": true,
342                       "label": "name",
343                       "language": "js",
344                       "value": "bar",
345                     },
346                   ]
347                 }
348                 value={
349                   {
350                     "isDisabled": false,
351                     "label": "name",
352                     "language": "js",
353                     "value": "foo",
354                   }
355                 }
356               />
357             </div>
358           </div>
359         </Radio>
360       </div>
361       <Alert
362         variant="warning"
363       >
364         project_quality_profile.requires_new_analysis
365       </Alert>
366     </div>
367     <div
368       className="modal-foot"
369     >
370       <SubmitButton
371         disabled={true}
372       >
373         save
374       </SubmitButton>
375       <ButtonLink
376         disabled={false}
377         onClick={[Function]}
378       >
379         cancel
380       </ButtonLink>
381     </div>
382   </form>,
383 ]
384 `;