]> source.dussan.org Git - sonarqube.git/blob
6455bc57976441d20978ee3e3f1287008c72e553
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: default 1`] = `
4 Array [
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               <SelectLegacy
72                 className="abs-width-300"
73                 clearable={false}
74                 disabled={false}
75                 onChange={[Function]}
76                 optionRenderer={[Function]}
77                 options={
78                   Array [
79                     Object {
80                       "disabled": false,
81                       "label": "name",
82                       "value": "foo",
83                     },
84                     Object {
85                       "disabled": true,
86                       "label": "name",
87                       "value": "bar",
88                     },
89                   ]
90                 }
91                 value="foo"
92               />
93             </div>
94           </div>
95         </Radio>
96       </div>
97     </div>
98     <div
99       className="modal-foot"
100     >
101       <SubmitButton
102         disabled={true}
103       >
104         save
105       </SubmitButton>
106       <ButtonLink
107         disabled={false}
108         onClick={[Function]}
109       >
110         cancel
111       </ButtonLink>
112     </div>
113   </form>,
114 ]
115 `;
116
117 exports[`should render correctly: inherits system default 1`] = `
118 Array [
119   <div
120     className="modal-head"
121   >
122     <h2>
123       project_quality_profile.change_lang_X_profile.JavaScript
124     </h2>
125   </div>,
126   <form
127     onSubmit={[Function]}
128   >
129     <div
130       className="modal-body"
131     >
132       <div
133         className="big-spacer-bottom"
134       >
135         <Radio
136           checked={true}
137           className="display-flex-start"
138           disabled={false}
139           onCheck={[Function]}
140           value="-1"
141         >
142           <div
143             className="spacer-left"
144           >
145             <div
146               className="little-spacer-bottom"
147             >
148               project_quality_profile.always_use_default
149             </div>
150             <div
151               className="display-flex-center"
152             >
153               <span
154                 className="text-muted spacer-right"
155               >
156                 current_noun
157                 :
158               </span>
159               name
160             </div>
161           </div>
162         </Radio>
163       </div>
164       <div
165         className="big-spacer-bottom"
166       >
167         <Radio
168           checked={false}
169           className="display-flex-start"
170           disabled={false}
171           onCheck={[Function]}
172           value="foo"
173         >
174           <div
175             className="spacer-left"
176           >
177             <div
178               className="little-spacer-bottom"
179             >
180               project_quality_profile.always_use_specific
181             </div>
182             <div
183               className="display-flex-center"
184             >
185               <SelectLegacy
186                 className="abs-width-300"
187                 clearable={false}
188                 disabled={true}
189                 onChange={[Function]}
190                 optionRenderer={[Function]}
191                 options={
192                   Array [
193                     Object {
194                       "disabled": false,
195                       "label": "name",
196                       "value": "foo",
197                     },
198                     Object {
199                       "disabled": true,
200                       "label": "name",
201                       "value": "bar",
202                     },
203                   ]
204                 }
205                 value="foo"
206               />
207             </div>
208           </div>
209         </Radio>
210       </div>
211     </div>
212     <div
213       className="modal-foot"
214     >
215       <SubmitButton
216         disabled={true}
217       >
218         save
219       </SubmitButton>
220       <ButtonLink
221         disabled={false}
222         onClick={[Function]}
223       >
224         cancel
225       </ButtonLink>
226     </div>
227   </form>,
228 ]
229 `;
230
231 exports[`should render correctly: needs reanalysis 1`] = `
232 Array [
233   <div
234     className="modal-head"
235   >
236     <h2>
237       project_quality_profile.change_lang_X_profile.JavaScript
238     </h2>
239   </div>,
240   <form
241     onSubmit={[Function]}
242   >
243     <div
244       className="modal-body"
245     >
246       <div
247         className="big-spacer-bottom"
248       >
249         <Radio
250           checked={false}
251           className="display-flex-start"
252           disabled={false}
253           onCheck={[Function]}
254           value="-1"
255         >
256           <div
257             className="spacer-left"
258           >
259             <div
260               className="little-spacer-bottom"
261             >
262               project_quality_profile.always_use_default
263             </div>
264             <div
265               className="display-flex-center"
266             >
267               <span
268                 className="text-muted spacer-right"
269               >
270                 current_noun
271                 :
272               </span>
273               name
274             </div>
275           </div>
276         </Radio>
277       </div>
278       <div
279         className="big-spacer-bottom"
280       >
281         <Radio
282           checked={true}
283           className="display-flex-start"
284           disabled={false}
285           onCheck={[Function]}
286           value="foo"
287         >
288           <div
289             className="spacer-left"
290           >
291             <div
292               className="little-spacer-bottom"
293             >
294               project_quality_profile.always_use_specific
295             </div>
296             <div
297               className="display-flex-center"
298             >
299               <SelectLegacy
300                 className="abs-width-300"
301                 clearable={false}
302                 disabled={false}
303                 onChange={[Function]}
304                 optionRenderer={[Function]}
305                 options={
306                   Array [
307                     Object {
308                       "disabled": false,
309                       "label": "name",
310                       "value": "foo",
311                     },
312                     Object {
313                       "disabled": true,
314                       "label": "name",
315                       "value": "bar",
316                     },
317                   ]
318                 }
319                 value="foo"
320               />
321             </div>
322           </div>
323         </Radio>
324       </div>
325       <Alert
326         variant="warning"
327       >
328         project_quality_profile.requires_new_analysis
329       </Alert>
330     </div>
331     <div
332       className="modal-foot"
333     >
334       <SubmitButton
335         disabled={true}
336       >
337         save
338       </SubmitButton>
339       <ButtonLink
340         disabled={false}
341         onClick={[Function]}
342       >
343         cancel
344       </ButtonLink>
345     </div>
346   </form>,
347 ]
348 `;
349
350 exports[`should render select options correctly: default 1`] = `
351 <DisableableSelectOption
352   disableTooltipOverlay={[Function]}
353   disabledReason="project_quality_profile.add_language_modal.no_active_rules"
354   option={
355     Object {
356       "label": "Profile 1",
357       "value": "bar",
358     }
359   }
360 />
361 `;