]> source.dussan.org Git - sonarqube.git/blob
ce74b8537f1c077ad6e50c0bcd35d7bbd64bb8ec
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: hidden 1`] = `""`;
4
5 exports[`should render correctly: visible 1`] = `
6 <Modal
7   contentLabel="keyboard_shortcuts.title"
8   onRequestClose={[Function]}
9   size="medium"
10 >
11   <div
12     className="modal-head"
13   >
14     <h2>
15       keyboard_shortcuts.title
16     </h2>
17   </div>
18   <div
19     className="modal-body modal-container markdown display-flex-wrap display-flex-space-between"
20   >
21     <div
22       className="spacer-right"
23       key="global"
24     >
25       <h3>
26         keyboard_shortcuts.global.title
27       </h3>
28       <table>
29         <thead>
30           <tr>
31             <th>
32               keyboard_shortcuts.shortcut
33             </th>
34             <th>
35               keyboard_shortcuts.action
36             </th>
37           </tr>
38         </thead>
39         <tbody>
40           <tr
41             key="search"
42           >
43             <td>
44               <code
45                 className="little-spacer-right"
46                 key="s"
47               >
48                 s
49               </code>
50             </td>
51             <td>
52               keyboard_shortcuts.global.search
53             </td>
54           </tr>
55           <tr
56             key="open_shortcuts"
57           >
58             <td>
59               <code
60                 className="little-spacer-right"
61                 key="?"
62               >
63                 ?
64               </code>
65             </td>
66             <td>
67               keyboard_shortcuts.global.open_shortcuts
68             </td>
69           </tr>
70         </tbody>
71       </table>
72     </div>
73     <div
74       className="spacer-right"
75       key="code_page"
76     >
77       <h3>
78         keyboard_shortcuts.code_page.title
79       </h3>
80       <table>
81         <thead>
82           <tr>
83             <th>
84               keyboard_shortcuts.shortcut
85             </th>
86             <th>
87               keyboard_shortcuts.action
88             </th>
89           </tr>
90         </thead>
91         <tbody>
92           <tr
93             key="select_files"
94           >
95             <td>
96               <code
97                 className="little-spacer-right"
98                 key="↑"
99               >
100                 ↑
101               </code>
102               <code
103                 className="little-spacer-right"
104                 key="↓"
105               >
106                 ↓
107               </code>
108             </td>
109             <td>
110               keyboard_shortcuts.code_page.select_files
111             </td>
112           </tr>
113           <tr
114             key="open_file"
115           >
116             <td>
117               <code
118                 className="little-spacer-right"
119                 key="→"
120               >
121                 →
122               </code>
123             </td>
124             <td>
125               keyboard_shortcuts.code_page.open_file
126             </td>
127           </tr>
128           <tr
129             key="back"
130           >
131             <td>
132               <code
133                 className="little-spacer-right"
134                 key="←"
135               >
136                 ←
137               </code>
138             </td>
139             <td>
140               keyboard_shortcuts.code_page.back
141             </td>
142           </tr>
143         </tbody>
144       </table>
145     </div>
146     <div
147       className="spacer-right"
148       key="issues_page"
149     >
150       <h3>
151         keyboard_shortcuts.issues_page.title
152       </h3>
153       <table>
154         <thead>
155           <tr>
156             <th>
157               keyboard_shortcuts.shortcut
158             </th>
159             <th>
160               keyboard_shortcuts.action
161             </th>
162           </tr>
163         </thead>
164         <tbody>
165           <tr
166             key="navigate"
167           >
168             <td>
169               <code
170                 className="little-spacer-right"
171                 key="↑"
172               >
173                 ↑
174               </code>
175               <code
176                 className="little-spacer-right"
177                 key="↓"
178               >
179                 ↓
180               </code>
181             </td>
182             <td>
183               keyboard_shortcuts.issues_page.navigate
184             </td>
185           </tr>
186           <tr
187             key="source_code"
188           >
189             <td>
190               <code
191                 className="little-spacer-right"
192                 key="→"
193               >
194                 →
195               </code>
196             </td>
197             <td>
198               keyboard_shortcuts.issues_page.source_code
199             </td>
200           </tr>
201           <tr
202             key="back"
203           >
204             <td>
205               <code
206                 className="little-spacer-right"
207                 key="←"
208               >
209                 ←
210               </code>
211             </td>
212             <td>
213               keyboard_shortcuts.issues_page.back
214             </td>
215           </tr>
216           <tr
217             key="navigate_locations"
218           >
219             <td>
220               <code
221                 className="little-spacer-right"
222                 key="alt"
223               >
224                 alt
225               </code>
226               <span
227                 className="little-spacer-right"
228                 key="+"
229               >
230                 +
231               </span>
232               <code
233                 className="little-spacer-right"
234                 key="↑"
235               >
236                 ↑
237               </code>
238               <code
239                 className="little-spacer-right"
240                 key="↓"
241               >
242                 ↓
243               </code>
244             </td>
245             <td>
246               keyboard_shortcuts.issues_page.navigate_locations
247             </td>
248           </tr>
249           <tr
250             key="switch_flows"
251           >
252             <td>
253               <code
254                 className="little-spacer-right"
255                 key="alt"
256               >
257                 alt
258               </code>
259               <span
260                 className="little-spacer-right"
261                 key="+"
262               >
263                 +
264               </span>
265               <code
266                 className="little-spacer-right"
267                 key="←"
268               >
269                 ←
270               </code>
271               <code
272                 className="little-spacer-right"
273                 key="→"
274               >
275                 →
276               </code>
277             </td>
278             <td>
279               keyboard_shortcuts.issues_page.switch_flows
280             </td>
281           </tr>
282           <tr
283             key="transition"
284           >
285             <td>
286               <code
287                 className="little-spacer-right"
288                 key="f"
289               >
290                 f
291               </code>
292             </td>
293             <td>
294               keyboard_shortcuts.issues_page.transition
295             </td>
296           </tr>
297           <tr
298             key="assign"
299           >
300             <td>
301               <code
302                 className="little-spacer-right"
303                 key="a"
304               >
305                 a
306               </code>
307             </td>
308             <td>
309               keyboard_shortcuts.issues_page.assign
310             </td>
311           </tr>
312           <tr
313             key="assign_to_me"
314           >
315             <td>
316               <code
317                 className="little-spacer-right"
318                 key="m"
319               >
320                 m
321               </code>
322             </td>
323             <td>
324               keyboard_shortcuts.issues_page.assign_to_me
325             </td>
326           </tr>
327           <tr
328             key="severity"
329           >
330             <td>
331               <code
332                 className="little-spacer-right"
333                 key="i"
334               >
335                 i
336               </code>
337             </td>
338             <td>
339               keyboard_shortcuts.issues_page.severity
340             </td>
341           </tr>
342           <tr
343             key="comment"
344           >
345             <td>
346               <code
347                 className="little-spacer-right"
348                 key="c"
349               >
350                 c
351               </code>
352             </td>
353             <td>
354               keyboard_shortcuts.issues_page.comment
355             </td>
356           </tr>
357           <tr
358             key="submit_comment"
359           >
360             <td>
361               <code
362                 className="little-spacer-right"
363                 key="ctrl"
364               >
365                 ctrl
366               </code>
367               <span
368                 className="little-spacer-right"
369                 key="+"
370               >
371                 +
372               </span>
373               <code
374                 className="little-spacer-right"
375                 key="enter"
376               >
377                 enter
378               </code>
379             </td>
380             <td>
381               keyboard_shortcuts.issues_page.submit_comment
382             </td>
383           </tr>
384           <tr
385             key="tags"
386           >
387             <td>
388               <code
389                 className="little-spacer-right"
390                 key="t"
391               >
392                 t
393               </code>
394             </td>
395             <td>
396               keyboard_shortcuts.issues_page.tags
397             </td>
398           </tr>
399         </tbody>
400       </table>
401     </div>
402     <div
403       className="spacer-right"
404       key="measures_page"
405     >
406       <h3>
407         keyboard_shortcuts.measures_page.title
408       </h3>
409       <table>
410         <thead>
411           <tr>
412             <th>
413               keyboard_shortcuts.shortcut
414             </th>
415             <th>
416               keyboard_shortcuts.action
417             </th>
418           </tr>
419         </thead>
420         <tbody>
421           <tr
422             key="select_files"
423           >
424             <td>
425               <code
426                 className="little-spacer-right"
427                 key="↑"
428               >
429                 ↑
430               </code>
431               <code
432                 className="little-spacer-right"
433                 key="↓"
434               >
435                 ↓
436               </code>
437             </td>
438             <td>
439               keyboard_shortcuts.measures_page.select_files
440             </td>
441           </tr>
442           <tr
443             key="open_file"
444           >
445             <td>
446               <code
447                 className="little-spacer-right"
448                 key="→"
449               >
450                 →
451               </code>
452             </td>
453             <td>
454               keyboard_shortcuts.measures_page.open_file
455             </td>
456           </tr>
457           <tr
458             key="back"
459           >
460             <td>
461               <code
462                 className="little-spacer-right"
463                 key="←"
464               >
465                 ←
466               </code>
467             </td>
468             <td>
469               keyboard_shortcuts.measures_page.back
470             </td>
471           </tr>
472         </tbody>
473       </table>
474     </div>
475     <div
476       className="spacer-right"
477       key="rules_page"
478     >
479       <h3>
480         keyboard_shortcuts.rules_page.title
481       </h3>
482       <table>
483         <thead>
484           <tr>
485             <th>
486               keyboard_shortcuts.shortcut
487             </th>
488             <th>
489               keyboard_shortcuts.action
490             </th>
491           </tr>
492         </thead>
493         <tbody>
494           <tr
495             key="navigate"
496           >
497             <td>
498               <code
499                 className="little-spacer-right"
500                 key="↑"
501               >
502                 ↑
503               </code>
504               <code
505                 className="little-spacer-right"
506                 key="↓"
507               >
508                 ↓
509               </code>
510             </td>
511             <td>
512               keyboard_shortcuts.rules_page.navigate
513             </td>
514           </tr>
515           <tr
516             key="rule_details"
517           >
518             <td>
519               <code
520                 className="little-spacer-right"
521                 key="→"
522               >
523                 →
524               </code>
525             </td>
526             <td>
527               keyboard_shortcuts.rules_page.rule_details
528             </td>
529           </tr>
530           <tr
531             key="back"
532           >
533             <td>
534               <code
535                 className="little-spacer-right"
536                 key="←"
537               >
538                 ←
539               </code>
540             </td>
541             <td>
542               keyboard_shortcuts.rules_page.back
543             </td>
544           </tr>
545         </tbody>
546       </table>
547     </div>
548   </div>
549   <div
550     className="modal-foot"
551   >
552     <Button
553       onClick={[Function]}
554     >
555       close
556     </Button>
557   </div>
558 </Modal>
559 `;