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