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