]> source.dussan.org Git - sonarqube.git/blob
4b2f846624e0981beb44fa72677ad1f0739902a3
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should be disabled 1`] = `
4 <FacetBox
5   className="it__search-navigator-facet-box it__search-navigator-facet-header"
6   clearIconLabel="clear"
7   count={0}
8   countLabel="x_selected.0"
9   data-property="foo"
10   disabled={true}
11   id="facet_foo"
12   loading={false}
13   name="facet header"
14   onClear={[Function]}
15   open={false}
16   tooltipComponent={[Function]}
17 />
18 `;
19
20 exports[`should display all selected items 1`] = `
21 <FacetBox
22   className="it__search-navigator-facet-box it__search-navigator-facet-header"
23   clearIconLabel="clear"
24   count={3}
25   countLabel="x_selected.3"
26   data-property="foo"
27   id="facet_foo"
28   loading={false}
29   name="facet header"
30   onClear={[Function]}
31   onClick={[Function]}
32   open={true}
33   tooltipComponent={[Function]}
34 >
35   <span
36     className="it__search-navigator-facet-list"
37   >
38     <InputSearch
39       autoFocus={false}
40       className="it__search-box-input sw-mb-4 sw-w-full"
41       minLength={2}
42       onChange={[Function]}
43       placeholder="search for foo..."
44       searchInputAriaLabel="search_verb"
45       size="auto"
46       value=""
47     />
48     <FacetItemsList
49       labelledby="facet_foo"
50     >
51       <FacetItem
52         active={true}
53         className="it__search-navigator-facet"
54         key="a"
55         name="a"
56         onClick={[Function]}
57         stat="10"
58         tooltip="a"
59         value="a"
60       />
61       <FacetItem
62         active={true}
63         className="it__search-navigator-facet"
64         key="b"
65         name="b"
66         onClick={[Function]}
67         stat="5"
68         tooltip="b"
69         value="b"
70       />
71     </FacetItemsList>
72     <div
73       className="note spacer-bottom text-center"
74     >
75       ⋯
76     </div>
77     <FacetItemsList
78       labelledby="facet_foo"
79     >
80       <FacetItem
81         active={true}
82         className="it__search-navigator-facet"
83         key="c"
84         name="c"
85         onClick={[Function]}
86         stat="3"
87         tooltip="c"
88         value="c"
89       />
90     </FacetItemsList>
91     <ListStyleFacetFooter
92       nbShown={3}
93       showMore={[Function]}
94       total={3}
95     />
96     <MultipleSelectionHint
97       nbSelectableItems={3}
98       nbSelectedItems={3}
99     />
100   </span>
101 </FacetBox>
102 `;
103
104 exports[`should render 1`] = `
105 <FacetBox
106   className="it__search-navigator-facet-box it__search-navigator-facet-header"
107   clearIconLabel="clear"
108   count={0}
109   countLabel="x_selected.0"
110   data-property="foo"
111   id="facet_foo"
112   loading={false}
113   name="facet header"
114   onClear={[Function]}
115   onClick={[Function]}
116   open={true}
117   tooltipComponent={[Function]}
118 >
119   <span
120     className="it__search-navigator-facet-list"
121   >
122     <InputSearch
123       autoFocus={false}
124       className="it__search-box-input sw-mb-4 sw-w-full"
125       minLength={2}
126       onChange={[Function]}
127       placeholder="search for foo..."
128       searchInputAriaLabel="search_verb"
129       size="auto"
130       value=""
131     />
132     <FacetItemsList
133       labelledby="facet_foo"
134     >
135       <FacetItem
136         active={false}
137         className="it__search-navigator-facet"
138         key="a"
139         name="a"
140         onClick={[Function]}
141         stat="10"
142         tooltip="a"
143         value="a"
144       />
145       <FacetItem
146         active={false}
147         className="it__search-navigator-facet"
148         key="b"
149         name="b"
150         onClick={[Function]}
151         stat="8"
152         tooltip="b"
153         value="b"
154       />
155       <FacetItem
156         active={false}
157         className="it__search-navigator-facet"
158         key="c"
159         name="c"
160         onClick={[Function]}
161         stat="1"
162         tooltip="c"
163         value="c"
164       />
165     </FacetItemsList>
166     <ListStyleFacetFooter
167       nbShown={3}
168       showMore={[Function]}
169       total={3}
170     />
171     <MultipleSelectionHint
172       nbSelectableItems={3}
173       nbSelectedItems={0}
174     />
175   </span>
176 </FacetBox>
177 `;
178
179 exports[`should search 1`] = `
180 <FacetBox
181   className="it__search-navigator-facet-box it__search-navigator-facet-header"
182   clearIconLabel="clear"
183   count={0}
184   countLabel="x_selected.0"
185   data-property="foo"
186   id="facet_foo"
187   loading={false}
188   name="facet header"
189   onClear={[Function]}
190   onClick={[Function]}
191   open={true}
192   tooltipComponent={[Function]}
193 >
194   <span
195     className="it__search-navigator-facet-list"
196   >
197     <InputSearch
198       autoFocus={false}
199       className="it__search-box-input sw-mb-4 sw-w-full"
200       minLength={2}
201       onChange={[Function]}
202       placeholder="search for foo..."
203       searchInputAriaLabel="search_verb"
204       size="auto"
205       value="query"
206     />
207     <FacetItemsList
208       labelledby="facet_foo"
209     >
210       <FacetItem
211         active={false}
212         className="it__search-navigator-facet"
213         key="d"
214         name="d"
215         onClick={[Function]}
216         stat="7"
217         tooltip="d"
218         value="d"
219       />
220       <FacetItem
221         active={false}
222         className="it__search-navigator-facet"
223         key="e"
224         name="e"
225         onClick={[Function]}
226         stat="3"
227         tooltip="e"
228         value="e"
229       />
230     </FacetItemsList>
231     <ListFooter
232       className="sw-mb-2"
233       count={2}
234       loadMore={[Function]}
235       ready={true}
236       total={3}
237       useMIUIButtons={true}
238     />
239     <MultipleSelectionHint
240       nbSelectableItems={3}
241       nbSelectedItems={0}
242     />
243   </span>
244 </FacetBox>
245 `;
246
247 exports[`should search 2`] = `
248 <FacetBox
249   className="it__search-navigator-facet-box it__search-navigator-facet-header"
250   clearIconLabel="clear"
251   count={0}
252   countLabel="x_selected.0"
253   data-property="foo"
254   id="facet_foo"
255   loading={false}
256   name="facet header"
257   onClear={[Function]}
258   onClick={[Function]}
259   open={true}
260   tooltipComponent={[Function]}
261 >
262   <span
263     className="it__search-navigator-facet-list"
264   >
265     <InputSearch
266       autoFocus={false}
267       className="it__search-box-input sw-mb-4 sw-w-full"
268       minLength={2}
269       onChange={[Function]}
270       placeholder="search for foo..."
271       searchInputAriaLabel="search_verb"
272       size="auto"
273       value="query"
274     />
275     <FacetItemsList
276       labelledby="facet_foo"
277     >
278       <FacetItem
279         active={false}
280         className="it__search-navigator-facet"
281         key="d"
282         name="d"
283         onClick={[Function]}
284         stat="7"
285         tooltip="d"
286         value="d"
287       />
288       <FacetItem
289         active={false}
290         className="it__search-navigator-facet"
291         key="e"
292         name="e"
293         onClick={[Function]}
294         stat="3"
295         tooltip="e"
296         value="e"
297       />
298       <FacetItem
299         active={false}
300         className="it__search-navigator-facet"
301         key="f"
302         name="f"
303         onClick={[Function]}
304         stat="5"
305         tooltip="f"
306         value="f"
307       />
308     </FacetItemsList>
309     <ListFooter
310       className="sw-mb-2"
311       count={3}
312       loadMore={[Function]}
313       ready={true}
314       total={3}
315       useMIUIButtons={true}
316     />
317     <MultipleSelectionHint
318       nbSelectableItems={3}
319       nbSelectedItems={0}
320     />
321   </span>
322 </FacetBox>
323 `;
324
325 exports[`should search 3`] = `
326 <FacetBox
327   className="it__search-navigator-facet-box it__search-navigator-facet-header"
328   clearIconLabel="clear"
329   count={0}
330   countLabel="x_selected.0"
331   data-property="foo"
332   id="facet_foo"
333   loading={false}
334   name="facet header"
335   onClear={[Function]}
336   onClick={[Function]}
337   open={true}
338   tooltipComponent={[Function]}
339 >
340   <span
341     className="it__search-navigator-facet-list"
342   >
343     <InputSearch
344       autoFocus={false}
345       className="it__search-box-input sw-mb-4 sw-w-full"
346       minLength={2}
347       onChange={[Function]}
348       placeholder="search for foo..."
349       searchInputAriaLabel="search_verb"
350       size="auto"
351       value=""
352     />
353     <FacetItemsList
354       labelledby="facet_foo"
355     >
356       <FacetItem
357         active={false}
358         className="it__search-navigator-facet"
359         key="a"
360         name="a"
361         onClick={[Function]}
362         stat="10"
363         tooltip="a"
364         value="a"
365       />
366       <FacetItem
367         active={false}
368         className="it__search-navigator-facet"
369         key="b"
370         name="b"
371         onClick={[Function]}
372         stat="8"
373         tooltip="b"
374         value="b"
375       />
376       <FacetItem
377         active={false}
378         className="it__search-navigator-facet"
379         key="c"
380         name="c"
381         onClick={[Function]}
382         stat="1"
383         tooltip="c"
384         value="c"
385       />
386     </FacetItemsList>
387     <ListStyleFacetFooter
388       nbShown={3}
389       showMore={[Function]}
390       total={3}
391     />
392     <MultipleSelectionHint
393       nbSelectableItems={3}
394       nbSelectedItems={0}
395     />
396   </span>
397 </FacetBox>
398 `;
399
400 exports[`should search 4`] = `
401 <FacetBox
402   className="it__search-navigator-facet-box it__search-navigator-facet-header"
403   clearIconLabel="clear"
404   count={0}
405   countLabel="x_selected.0"
406   data-property="foo"
407   id="facet_foo"
408   loading={false}
409   name="facet header"
410   onClear={[Function]}
411   onClick={[Function]}
412   open={true}
413   tooltipComponent={[Function]}
414 >
415   <span
416     className="it__search-navigator-facet-list"
417   >
418     <InputSearch
419       autoFocus={false}
420       className="it__search-box-input sw-mb-4 sw-w-full"
421       minLength={2}
422       onChange={[Function]}
423       placeholder="search for foo..."
424       searchInputAriaLabel="search_verb"
425       size="auto"
426       value="blabla"
427     />
428     <div
429       className="sw-mb-2"
430     >
431       no_results
432     </div>
433     <MultipleSelectionHint
434       nbSelectableItems={3}
435       nbSelectedItems={0}
436     />
437   </span>
438 </FacetBox>
439 `;
440
441 exports[`should search 5`] = `
442 <FacetBox
443   className="it__search-navigator-facet-box it__search-navigator-facet-header"
444   clearIconLabel="clear"
445   count={0}
446   countLabel="x_selected.0"
447   data-property="foo"
448   id="facet_foo"
449   loading={false}
450   name="facet header"
451   onClear={[Function]}
452   onClick={[Function]}
453   open={true}
454   tooltipComponent={[Function]}
455 >
456   <span
457     className="it__search-navigator-facet-list"
458   >
459     <InputSearch
460       autoFocus={false}
461       className="it__search-box-input sw-mb-4 sw-w-full"
462       minLength={2}
463       onChange={[Function]}
464       placeholder="search for foo..."
465       searchInputAriaLabel="search_verb"
466       size="auto"
467       value="blabla"
468     />
469     <div
470       className="sw-mb-2"
471     >
472       no_results
473     </div>
474     <MultipleSelectionHint
475       nbSelectableItems={3}
476       nbSelectedItems={0}
477     />
478   </span>
479 </FacetBox>
480 `;