]> source.dussan.org Git - sonarqube.git/blob
7a004599bfb717e45a80995852d0183b0e625510
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should handle the descending sort direction 1`] = `
4 <div>
5   <label>
6     projects.sort_by
7     :
8   </label>
9   <Select
10     addLabelText="Add \\"{label}\\"?"
11     arrowRenderer={[Function]}
12     autosize={true}
13     backspaceRemoves={true}
14     backspaceToRemoveMessage="Press backspace to remove {label}"
15     className="little-spacer-left input-large"
16     clearAllText="Clear all"
17     clearValueText="Clear value"
18     clearable={false}
19     delimiter=","
20     disabled={false}
21     escapeClearsValue={true}
22     filterOptions={[Function]}
23     ignoreAccents={true}
24     ignoreCase={true}
25     inputProps={Object {}}
26     isLoading={false}
27     joinValues={false}
28     labelKey="label"
29     matchPos="any"
30     matchProp="any"
31     menuBuffer={0}
32     menuRenderer={[Function]}
33     multi={false}
34     noResultsText="No results found"
35     onBlurResetsInput={true}
36     onChange={[Function]}
37     onCloseResetsInput={true}
38     openAfterFocus={false}
39     optionComponent={[Function]}
40     options={
41       Array [
42         Object {
43           "class": undefined,
44           "label": "projects.sorting.name (projects.sorting.default)",
45           "value": "name",
46         },
47         Object {
48           "class": undefined,
49           "label": "projects.sorting.analysis_date",
50           "value": "analysis_date",
51         },
52         Object {
53           "class": undefined,
54           "label": "projects.sorting.reliability",
55           "value": "reliability",
56         },
57         Object {
58           "class": undefined,
59           "label": "projects.sorting.security",
60           "value": "security",
61         },
62         Object {
63           "class": undefined,
64           "label": "projects.sorting.maintainability",
65           "value": "maintainability",
66         },
67         Object {
68           "class": undefined,
69           "label": "projects.sorting.coverage",
70           "value": "coverage",
71         },
72         Object {
73           "class": undefined,
74           "label": "projects.sorting.duplications",
75           "value": "duplications",
76         },
77         Object {
78           "class": undefined,
79           "label": "projects.sorting.size",
80           "value": "size",
81         },
82       ]
83     }
84     pageSize={5}
85     placeholder="Select..."
86     required={false}
87     scrollMenuIntoView={true}
88     searchable={false}
89     simpleValue={false}
90     tabSelectsValue={true}
91     value="vulnerability"
92     valueComponent={[Function]}
93     valueKey="value"
94   />
95   <Tooltip
96     overlay="projects.sort_descending"
97     placement="bottom"
98   >
99     <a
100       className="spacer-left button-icon"
101       href="#"
102       onClick={[Function]}
103     >
104       <SortDescIcon
105         className="little-spacer-top"
106       />
107     </a>
108   </Tooltip>
109 </div>
110 `;
111
112 exports[`should render correctly for leak view 1`] = `
113 <div>
114   <label>
115     projects.sort_by
116     :
117   </label>
118   <Select
119     addLabelText="Add \\"{label}\\"?"
120     arrowRenderer={[Function]}
121     autosize={true}
122     backspaceRemoves={true}
123     backspaceToRemoveMessage="Press backspace to remove {label}"
124     className="little-spacer-left input-large"
125     clearAllText="Clear all"
126     clearValueText="Clear value"
127     clearable={false}
128     delimiter=","
129     disabled={false}
130     escapeClearsValue={true}
131     filterOptions={[Function]}
132     ignoreAccents={true}
133     ignoreCase={true}
134     inputProps={Object {}}
135     isLoading={false}
136     joinValues={false}
137     labelKey="label"
138     matchPos="any"
139     matchProp="any"
140     menuBuffer={0}
141     menuRenderer={[Function]}
142     multi={false}
143     noResultsText="No results found"
144     onBlurResetsInput={true}
145     onChange={[Function]}
146     onCloseResetsInput={true}
147     openAfterFocus={false}
148     optionComponent={[Function]}
149     options={
150       Array [
151         Object {
152           "class": undefined,
153           "label": "projects.sorting.analysis_date (projects.sorting.default)",
154           "value": "analysis_date",
155         },
156         Object {
157           "class": undefined,
158           "label": "projects.sorting.name",
159           "value": "name",
160         },
161         Object {
162           "class": "projects-leak-sorting-option",
163           "label": "projects.sorting.new_reliability",
164           "value": "new_reliability",
165         },
166         Object {
167           "class": "projects-leak-sorting-option",
168           "label": "projects.sorting.new_security",
169           "value": "new_security",
170         },
171         Object {
172           "class": "projects-leak-sorting-option",
173           "label": "projects.sorting.new_maintainability",
174           "value": "new_maintainability",
175         },
176         Object {
177           "class": "projects-leak-sorting-option",
178           "label": "projects.sorting.new_coverage",
179           "value": "new_coverage",
180         },
181         Object {
182           "class": "projects-leak-sorting-option",
183           "label": "projects.sorting.new_duplications",
184           "value": "new_duplications",
185         },
186         Object {
187           "class": "projects-leak-sorting-option",
188           "label": "projects.sorting.new_lines",
189           "value": "new_lines",
190         },
191       ]
192     }
193     pageSize={5}
194     placeholder="Select..."
195     required={false}
196     scrollMenuIntoView={true}
197     searchable={false}
198     simpleValue={false}
199     tabSelectsValue={true}
200     value="new_coverage"
201     valueComponent={[Function]}
202     valueKey="value"
203   />
204   <Tooltip
205     overlay="projects.sort_ascending"
206     placement="bottom"
207   >
208     <a
209       className="spacer-left button-icon"
210       href="#"
211       onClick={[Function]}
212     >
213       <SortAscIcon
214         className="little-spacer-top"
215       />
216     </a>
217   </Tooltip>
218 </div>
219 `;
220
221 exports[`should render correctly for overall view 1`] = `
222 <div>
223   <label>
224     projects.sort_by
225     :
226   </label>
227   <Select
228     addLabelText="Add \\"{label}\\"?"
229     arrowRenderer={[Function]}
230     autosize={true}
231     backspaceRemoves={true}
232     backspaceToRemoveMessage="Press backspace to remove {label}"
233     className="little-spacer-left input-large"
234     clearAllText="Clear all"
235     clearValueText="Clear value"
236     clearable={false}
237     delimiter=","
238     disabled={false}
239     escapeClearsValue={true}
240     filterOptions={[Function]}
241     ignoreAccents={true}
242     ignoreCase={true}
243     inputProps={Object {}}
244     isLoading={false}
245     joinValues={false}
246     labelKey="label"
247     matchPos="any"
248     matchProp="any"
249     menuBuffer={0}
250     menuRenderer={[Function]}
251     multi={false}
252     noResultsText="No results found"
253     onBlurResetsInput={true}
254     onChange={[Function]}
255     onCloseResetsInput={true}
256     openAfterFocus={false}
257     optionComponent={[Function]}
258     options={
259       Array [
260         Object {
261           "class": undefined,
262           "label": "projects.sorting.name (projects.sorting.default)",
263           "value": "name",
264         },
265         Object {
266           "class": undefined,
267           "label": "projects.sorting.analysis_date",
268           "value": "analysis_date",
269         },
270         Object {
271           "class": undefined,
272           "label": "projects.sorting.reliability",
273           "value": "reliability",
274         },
275         Object {
276           "class": undefined,
277           "label": "projects.sorting.security",
278           "value": "security",
279         },
280         Object {
281           "class": undefined,
282           "label": "projects.sorting.maintainability",
283           "value": "maintainability",
284         },
285         Object {
286           "class": undefined,
287           "label": "projects.sorting.coverage",
288           "value": "coverage",
289         },
290         Object {
291           "class": undefined,
292           "label": "projects.sorting.duplications",
293           "value": "duplications",
294         },
295         Object {
296           "class": undefined,
297           "label": "projects.sorting.size",
298           "value": "size",
299         },
300       ]
301     }
302     pageSize={5}
303     placeholder="Select..."
304     required={false}
305     scrollMenuIntoView={true}
306     searchable={false}
307     simpleValue={false}
308     tabSelectsValue={true}
309     value="name"
310     valueComponent={[Function]}
311     valueKey="value"
312   />
313   <Tooltip
314     overlay="projects.sort_ascending"
315     placement="bottom"
316   >
317     <a
318       className="spacer-left button-icon"
319       href="#"
320       onClick={[Function]}
321     >
322       <SortAscIcon
323         className="little-spacer-top"
324       />
325     </a>
326   </Tooltip>
327 </div>
328 `;