]> source.dussan.org Git - sonarqube.git/blob
2b6933ea8724c28744f4978a0f7aa784239d3fbc
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <header
5   className="page-header"
6 >
7   <div
8     className="display-flex-space-between spacer-top"
9   >
10     <SearchFilterContainer
11       onQueryChange={[MockFunction]}
12       query={
13         Object {
14           "search": "test",
15         }
16       }
17     />
18     <div
19       className="display-flex-center"
20     >
21       <Connect(withAppState(Connect(withCurrentUser(ProjectCreationMenu))))
22         className="little-spacer-right"
23       />
24       <Connect(withAppState(Connect(withCurrentUser(withRouter(ApplicationCreation)))))
25         className="little-spacer-right"
26       />
27       <Connect(HomePageSelect)
28         className="spacer-left little-spacer-right"
29         currentPage={
30           Object {
31             "type": "PROJECTS",
32           }
33         }
34       />
35     </div>
36   </div>
37   <div
38     className="big-spacer-top display-flex-space-between"
39   >
40     <div
41       className="display-flex-center"
42     >
43       <span
44         className="projects-total-label"
45       >
46         <strong
47           id="projects-total"
48         >
49           12
50         </strong>
51          
52         projects._projects
53       </span>
54     </div>
55     <div
56       className="display-flex-center"
57     >
58       <PerspectiveSelect
59         className="projects-topbar-item js-projects-perspective-select"
60         onChange={[MockFunction]}
61         view="overall"
62       />
63       <Tooltip>
64         <div
65           className="projects-topbar-item"
66         >
67           <ProjectsSortingSelect
68             className="js-projects-sorting-select"
69             defaultOption="analysis_date"
70             onChange={[MockFunction]}
71             selectedSort="size"
72             view="overall"
73           />
74         </div>
75       </Tooltip>
76     </div>
77   </div>
78 </header>
79 `;
80
81 exports[`should render correctly while loading 1`] = `
82 <header
83   className="page-header"
84 >
85   <div
86     className="display-flex-space-between spacer-top"
87   >
88     <SearchFilterContainer
89       onQueryChange={[MockFunction]}
90       query={
91         Object {
92           "search": "test",
93         }
94       }
95     />
96     <div
97       className="display-flex-center"
98     >
99       <Connect(withAppState(Connect(withCurrentUser(ProjectCreationMenu))))
100         className="little-spacer-right"
101       />
102       <Connect(withAppState(Connect(withCurrentUser(withRouter(ApplicationCreation)))))
103         className="little-spacer-right"
104       />
105       <Connect(HomePageSelect)
106         className="spacer-left little-spacer-right"
107         currentPage={
108           Object {
109             "type": "PROJECTS",
110           }
111         }
112       />
113     </div>
114   </div>
115   <div
116     className="big-spacer-top display-flex-space-between"
117   >
118     <div
119       className="display-flex-center is-loading"
120     >
121       <span
122         className="projects-total-label"
123       >
124         <strong
125           id="projects-total"
126         >
127           2
128         </strong>
129          
130         projects._projects
131       </span>
132     </div>
133     <div
134       className="display-flex-center"
135     >
136       <PerspectiveSelect
137         className="projects-topbar-item js-projects-perspective-select"
138         onChange={[MockFunction]}
139         view="overall"
140       />
141       <Tooltip>
142         <div
143           className="projects-topbar-item"
144         >
145           <ProjectsSortingSelect
146             className="js-projects-sorting-select"
147             defaultOption="analysis_date"
148             onChange={[MockFunction]}
149             selectedSort="size"
150             view="overall"
151           />
152         </div>
153       </Tooltip>
154     </div>
155   </div>
156 </header>
157 `;
158
159 exports[`should render disabled sorting options for visualizations 1`] = `
160 <header
161   className="page-header"
162 >
163   <div
164     className="display-flex-space-between spacer-top"
165   >
166     <SearchFilterContainer
167       onQueryChange={[MockFunction]}
168       query={
169         Object {
170           "search": "test",
171         }
172       }
173     />
174     <div
175       className="display-flex-center"
176     >
177       <Connect(withAppState(Connect(withCurrentUser(ProjectCreationMenu))))
178         className="little-spacer-right"
179       />
180       <Connect(withAppState(Connect(withCurrentUser(withRouter(ApplicationCreation)))))
181         className="little-spacer-right"
182       />
183       <Connect(HomePageSelect)
184         className="spacer-left little-spacer-right"
185         currentPage={
186           Object {
187             "type": "PROJECTS",
188           }
189         }
190       />
191     </div>
192   </div>
193   <div
194     className="big-spacer-top display-flex-space-between"
195   >
196     <div
197       className="display-flex-center"
198     />
199     <div
200       className="display-flex-center"
201     >
202       <PerspectiveSelect
203         className="projects-topbar-item js-projects-perspective-select"
204         onChange={[MockFunction]}
205         view="visualizations"
206         visualization="coverage"
207       />
208       <Tooltip
209         overlay="projects.sort.disabled"
210       >
211         <div
212           className="projects-topbar-item disabled"
213         >
214           <ProjectsSortingSelect
215             className="js-projects-sorting-select"
216             defaultOption="analysis_date"
217             onChange={[MockFunction]}
218             selectedSort="size"
219             view="visualizations"
220           />
221         </div>
222       </Tooltip>
223     </div>
224   </div>
225 </header>
226 `;
227
228 exports[`should render switch the default sorting option for anonymous users 1`] = `
229 <ProjectsSortingSelect
230   className="js-projects-sorting-select"
231   defaultOption="name"
232   onChange={[MockFunction]}
233   selectedSort="size"
234   view="overall"
235 />
236 `;
237
238 exports[`should render switch the default sorting option for anonymous users 2`] = `
239 <ProjectsSortingSelect
240   className="js-projects-sorting-select"
241   defaultOption="analysis_date"
242   onChange={[MockFunction]}
243   selectedSort="size"
244   view="leak"
245 />
246 `;