]> source.dussan.org Git - sonarqube.git/blob
a50c55c2c6a1a0aa65fe8ffeafca7af6bd8badc2
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly when closed 1`] = `
4 <OutsideClickHandler
5   onClickOutside={[MockFunction]}
6 >
7   <div
8     className="dropdown"
9   >
10     <SearchBox
11       onChange={[MockFunction]}
12       onFocus={[MockFunction]}
13       onKeyDown={[MockFunction]}
14       placeholder="settings.search.placeholder"
15       value=""
16     />
17   </div>
18 </OutsideClickHandler>
19 `;
20
21 exports[`should render correctly when open: no results 1`] = `
22 <OutsideClickHandler
23   onClickOutside={[MockFunction]}
24 >
25   <div
26     className="dropdown"
27   >
28     <SearchBox
29       onChange={[MockFunction]}
30       onFocus={[MockFunction]}
31       onKeyDown={[MockFunction]}
32       placeholder="settings.search.placeholder"
33       value=""
34     />
35     <DropdownOverlay
36       noPadding={true}
37     >
38       <ul
39         className="settings-search-results menu"
40       >
41         <div
42           className="big-padded"
43         >
44           no_results
45         </div>
46       </ul>
47     </DropdownOverlay>
48   </div>
49 </OutsideClickHandler>
50 `;
51
52 exports[`should render correctly when open: results 1`] = `
53 <OutsideClickHandler
54   onClickOutside={[MockFunction]}
55 >
56   <div
57     className="dropdown"
58   >
59     <SearchBox
60       onChange={[MockFunction]}
61       onFocus={[MockFunction]}
62       onKeyDown={[MockFunction]}
63       placeholder="settings.search.placeholder"
64       value=""
65     />
66     <DropdownOverlay
67       noPadding={true}
68     >
69       <ul
70         className="settings-search-results menu"
71       >
72         <li
73           className="spacer-bottom spacer-top"
74           key="foo"
75         >
76           <ForwardRef(Link)
77             onClick={[MockFunction]}
78             onMouseEnter={[Function]}
79             to={
80               {
81                 "hash": "#foo",
82                 "pathname": "/admin/settings",
83                 "search": "?category=foo+category",
84               }
85             }
86           >
87             <div
88               className="settings-search-result-title display-flex-space-between"
89             >
90               <h3>
91                 Foo!
92               </h3>
93             </div>
94             <div
95               className="note spacer-top"
96             >
97               settings.key_x.foo
98             </div>
99           </ForwardRef(Link)>
100         </li>
101         <li
102           className="spacer-bottom spacer-top active"
103           key="bar"
104         >
105           <ForwardRef(Link)
106             onClick={[MockFunction]}
107             onMouseEnter={[Function]}
108             to={
109               {
110                 "hash": "#bar",
111                 "pathname": "/admin/settings",
112                 "search": "?category=foo+category",
113               }
114             }
115           >
116             <div
117               className="settings-search-result-title display-flex-space-between"
118             >
119               <h3>
120                 foo subCat
121               </h3>
122             </div>
123             <div
124               className="note spacer-top"
125             >
126               settings.key_x.bar
127             </div>
128           </ForwardRef(Link)>
129         </li>
130       </ul>
131     </DropdownOverlay>
132   </div>
133 </OutsideClickHandler>
134 `;