]> source.dussan.org Git - sonarqube.git/blob
db78b925ddd9ad35b58fc98c65abc71bcf725d8e
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly for Monthly housekeeping policy 1`] = `
4 <div
5   className="page page-limited"
6   id="marketplace-page"
7 >
8   <Suggestions
9     suggestions="audit-logs"
10   />
11   <Helmet
12     defer={true}
13     encodeSpecialCharacters={true}
14     prioritizeSeoTags={false}
15     title="audit_logs.page"
16   />
17   <header
18     className="page-header"
19   >
20     <h1
21       className="page-title"
22     >
23       audit_logs.page
24     </h1>
25   </header>
26   <p
27     className="big-spacer-bottom"
28   >
29     audit_logs.page.description.1
30     <br />
31     <FormattedMessage
32       defaultMessage="audit_logs.page.description.2"
33       id="audit_logs.page.description.2"
34       values={
35         Object {
36           "housekeeping": "audit_logs.housekeeping_policy.Monthly",
37           "link": <ForwardRef(Link)
38             to={
39               Object {
40                 "hash": "#auditLogs",
41                 "pathname": "/admin/settings",
42                 "search": "?category=housekeeping",
43               }
44             }
45           >
46             audit_logs.page.description.link
47           </ForwardRef(Link)>,
48         }
49       }
50     />
51   </p>
52   <div
53     className="huge-spacer-bottom"
54   >
55     <h2
56       className="big-spacer-bottom"
57     >
58       audit_logs.download
59     </h2>
60     <ul>
61       <li
62         className="spacer-bottom"
63         key="today"
64       >
65         <Radio
66           checked={true}
67           onCheck={[MockFunction]}
68           value="today"
69         >
70           audit_logs.range_option.today
71         </Radio>
72       </li>
73       <li
74         className="spacer-bottom"
75         key="7days"
76       >
77         <Radio
78           checked={false}
79           onCheck={[MockFunction]}
80           value="7days"
81         >
82           audit_logs.range_option.7days
83         </Radio>
84       </li>
85       <li
86         className="spacer-bottom"
87         key="30days"
88       >
89         <Radio
90           checked={false}
91           onCheck={[MockFunction]}
92           value="30days"
93         >
94           audit_logs.range_option.30days
95         </Radio>
96       </li>
97       <li
98         className="spacer-bottom"
99         key="custom"
100       >
101         <Radio
102           checked={false}
103           onCheck={[MockFunction]}
104           value="custom"
105         >
106           audit_logs.range_option.custom
107         </Radio>
108       </li>
109     </ul>
110     <DateRangeInput
111       className="big-spacer-left"
112       maxDate={2020-07-21T12:00:00.000Z}
113       minDate={2020-06-21T12:00:00.000Z}
114       onChange={[MockFunction]}
115     />
116   </div>
117   <DownloadButton
118     downloadStarted={false}
119     onStartDownload={[MockFunction]}
120     selection="today"
121   />
122 </div>
123 `;
124
125 exports[`should render correctly for Trimestrial housekeeping policy 1`] = `
126 <div
127   className="page page-limited"
128   id="marketplace-page"
129 >
130   <Suggestions
131     suggestions="audit-logs"
132   />
133   <Helmet
134     defer={true}
135     encodeSpecialCharacters={true}
136     prioritizeSeoTags={false}
137     title="audit_logs.page"
138   />
139   <header
140     className="page-header"
141   >
142     <h1
143       className="page-title"
144     >
145       audit_logs.page
146     </h1>
147   </header>
148   <p
149     className="big-spacer-bottom"
150   >
151     audit_logs.page.description.1
152     <br />
153     <FormattedMessage
154       defaultMessage="audit_logs.page.description.2"
155       id="audit_logs.page.description.2"
156       values={
157         Object {
158           "housekeeping": "audit_logs.housekeeping_policy.Trimestrial",
159           "link": <ForwardRef(Link)
160             to={
161               Object {
162                 "hash": "#auditLogs",
163                 "pathname": "/admin/settings",
164                 "search": "?category=housekeeping",
165               }
166             }
167           >
168             audit_logs.page.description.link
169           </ForwardRef(Link)>,
170         }
171       }
172     />
173   </p>
174   <div
175     className="huge-spacer-bottom"
176   >
177     <h2
178       className="big-spacer-bottom"
179     >
180       audit_logs.download
181     </h2>
182     <ul>
183       <li
184         className="spacer-bottom"
185         key="today"
186       >
187         <Radio
188           checked={true}
189           onCheck={[MockFunction]}
190           value="today"
191         >
192           audit_logs.range_option.today
193         </Radio>
194       </li>
195       <li
196         className="spacer-bottom"
197         key="7days"
198       >
199         <Radio
200           checked={false}
201           onCheck={[MockFunction]}
202           value="7days"
203         >
204           audit_logs.range_option.7days
205         </Radio>
206       </li>
207       <li
208         className="spacer-bottom"
209         key="30days"
210       >
211         <Radio
212           checked={false}
213           onCheck={[MockFunction]}
214           value="30days"
215         >
216           audit_logs.range_option.30days
217         </Radio>
218       </li>
219       <li
220         className="spacer-bottom"
221         key="90days"
222       >
223         <Radio
224           checked={false}
225           onCheck={[MockFunction]}
226           value="90days"
227         >
228           audit_logs.range_option.90days
229         </Radio>
230       </li>
231       <li
232         className="spacer-bottom"
233         key="custom"
234       >
235         <Radio
236           checked={false}
237           onCheck={[MockFunction]}
238           value="custom"
239         >
240           audit_logs.range_option.custom
241         </Radio>
242       </li>
243     </ul>
244     <DateRangeInput
245       className="big-spacer-left"
246       maxDate={2020-07-21T12:00:00.000Z}
247       minDate={2020-04-22T12:00:00.000Z}
248       onChange={[MockFunction]}
249     />
250   </div>
251   <DownloadButton
252     downloadStarted={false}
253     onStartDownload={[MockFunction]}
254     selection="today"
255   />
256 </div>
257 `;
258
259 exports[`should render correctly for Weekly housekeeping policy 1`] = `
260 <div
261   className="page page-limited"
262   id="marketplace-page"
263 >
264   <Suggestions
265     suggestions="audit-logs"
266   />
267   <Helmet
268     defer={true}
269     encodeSpecialCharacters={true}
270     prioritizeSeoTags={false}
271     title="audit_logs.page"
272   />
273   <header
274     className="page-header"
275   >
276     <h1
277       className="page-title"
278     >
279       audit_logs.page
280     </h1>
281   </header>
282   <p
283     className="big-spacer-bottom"
284   >
285     audit_logs.page.description.1
286     <br />
287     <FormattedMessage
288       defaultMessage="audit_logs.page.description.2"
289       id="audit_logs.page.description.2"
290       values={
291         Object {
292           "housekeeping": "audit_logs.housekeeping_policy.Weekly",
293           "link": <ForwardRef(Link)
294             to={
295               Object {
296                 "hash": "#auditLogs",
297                 "pathname": "/admin/settings",
298                 "search": "?category=housekeeping",
299               }
300             }
301           >
302             audit_logs.page.description.link
303           </ForwardRef(Link)>,
304         }
305       }
306     />
307   </p>
308   <div
309     className="huge-spacer-bottom"
310   >
311     <h2
312       className="big-spacer-bottom"
313     >
314       audit_logs.download
315     </h2>
316     <ul>
317       <li
318         className="spacer-bottom"
319         key="today"
320       >
321         <Radio
322           checked={true}
323           onCheck={[MockFunction]}
324           value="today"
325         >
326           audit_logs.range_option.today
327         </Radio>
328       </li>
329       <li
330         className="spacer-bottom"
331         key="7days"
332       >
333         <Radio
334           checked={false}
335           onCheck={[MockFunction]}
336           value="7days"
337         >
338           audit_logs.range_option.7days
339         </Radio>
340       </li>
341       <li
342         className="spacer-bottom"
343         key="custom"
344       >
345         <Radio
346           checked={false}
347           onCheck={[MockFunction]}
348           value="custom"
349         >
350           audit_logs.range_option.custom
351         </Radio>
352       </li>
353     </ul>
354     <DateRangeInput
355       className="big-spacer-left"
356       maxDate={2020-07-21T12:00:00.000Z}
357       minDate={2020-07-14T12:00:00.000Z}
358       onChange={[MockFunction]}
359     />
360   </div>
361   <DownloadButton
362     downloadStarted={false}
363     onStartDownload={[MockFunction]}
364     selection="today"
365   />
366 </div>
367 `;
368
369 exports[`should render correctly for Yearly housekeeping policy 1`] = `
370 <div
371   className="page page-limited"
372   id="marketplace-page"
373 >
374   <Suggestions
375     suggestions="audit-logs"
376   />
377   <Helmet
378     defer={true}
379     encodeSpecialCharacters={true}
380     prioritizeSeoTags={false}
381     title="audit_logs.page"
382   />
383   <header
384     className="page-header"
385   >
386     <h1
387       className="page-title"
388     >
389       audit_logs.page
390     </h1>
391   </header>
392   <p
393     className="big-spacer-bottom"
394   >
395     audit_logs.page.description.1
396     <br />
397     <FormattedMessage
398       defaultMessage="audit_logs.page.description.2"
399       id="audit_logs.page.description.2"
400       values={
401         Object {
402           "housekeeping": "audit_logs.housekeeping_policy.Yearly",
403           "link": <ForwardRef(Link)
404             to={
405               Object {
406                 "hash": "#auditLogs",
407                 "pathname": "/admin/settings",
408                 "search": "?category=housekeeping",
409               }
410             }
411           >
412             audit_logs.page.description.link
413           </ForwardRef(Link)>,
414         }
415       }
416     />
417   </p>
418   <div
419     className="huge-spacer-bottom"
420   >
421     <h2
422       className="big-spacer-bottom"
423     >
424       audit_logs.download
425     </h2>
426     <ul>
427       <li
428         className="spacer-bottom"
429         key="today"
430       >
431         <Radio
432           checked={true}
433           onCheck={[MockFunction]}
434           value="today"
435         >
436           audit_logs.range_option.today
437         </Radio>
438       </li>
439       <li
440         className="spacer-bottom"
441         key="7days"
442       >
443         <Radio
444           checked={false}
445           onCheck={[MockFunction]}
446           value="7days"
447         >
448           audit_logs.range_option.7days
449         </Radio>
450       </li>
451       <li
452         className="spacer-bottom"
453         key="30days"
454       >
455         <Radio
456           checked={false}
457           onCheck={[MockFunction]}
458           value="30days"
459         >
460           audit_logs.range_option.30days
461         </Radio>
462       </li>
463       <li
464         className="spacer-bottom"
465         key="90days"
466       >
467         <Radio
468           checked={false}
469           onCheck={[MockFunction]}
470           value="90days"
471         >
472           audit_logs.range_option.90days
473         </Radio>
474       </li>
475       <li
476         className="spacer-bottom"
477         key="custom"
478       >
479         <Radio
480           checked={false}
481           onCheck={[MockFunction]}
482           value="custom"
483         >
484           audit_logs.range_option.custom
485         </Radio>
486       </li>
487     </ul>
488     <DateRangeInput
489       className="big-spacer-left"
490       maxDate={2020-07-21T12:00:00.000Z}
491       minDate={2019-07-22T12:00:00.000Z}
492       onChange={[MockFunction]}
493     />
494   </div>
495   <DownloadButton
496     downloadStarted={false}
497     onStartDownload={[MockFunction]}
498     selection="today"
499   />
500 </div>
501 `;