]> source.dussan.org Git - sonarqube.git/blob
15051129d68d09b763d772ff5a4df5b89cea7a8b
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should call close method correctly 1`] = `
4 Array [
5   Array [
6     false,
7   ],
8 ]
9 `;
10
11 exports[`should render disabled sorting options for visualizations 1`] = `
12 <div
13   className="projects-topbar"
14 >
15   <div
16     className="projects-topbar-actions open"
17   >
18     <div
19       className="projects-topbar-actions-inner"
20     >
21       <button
22         className="projects-topbar-button"
23         onClick={[Function]}
24       >
25         close
26       </button>
27       <div
28         className="projects-topbar-items"
29       >
30         <PerspectiveSelect
31           className="projects-topbar-item js-projects-perspective-select"
32           view="visualizations"
33           visualization="coverage"
34         />
35         <Tooltip
36           overlay="projects.sort.disabled"
37           placement="bottom"
38         >
39           <div>
40             <ProjectsSortingSelect
41               className="projects-topbar-item js-projects-sorting-select disabled"
42               defaultOption="analysis_date"
43               view="visualizations"
44             />
45           </div>
46         </Tooltip>
47       </div>
48     </div>
49   </div>
50 </div>
51 `;
52
53 exports[`should render option bar closed 1`] = `
54 <div
55   className="projects-topbar"
56 >
57   <div
58     className="projects-topbar-actions"
59   >
60     <div
61       className="projects-topbar-actions-inner"
62     >
63       <button
64         className="projects-topbar-button"
65         onClick={[Function]}
66       >
67         close
68       </button>
69       <div
70         className="projects-topbar-items"
71       >
72         <PerspectiveSelect
73           className="projects-topbar-item js-projects-perspective-select"
74           view="overall"
75         />
76         <ProjectsSortingSelect
77           className="projects-topbar-item js-projects-sorting-select"
78           defaultOption="analysis_date"
79           view="overall"
80         />
81       </div>
82     </div>
83   </div>
84 </div>
85 `;
86
87 exports[`should render option bar open 1`] = `
88 <div
89   className="projects-topbar"
90 >
91   <div
92     className="projects-topbar-actions open"
93   >
94     <div
95       className="projects-topbar-actions-inner"
96     >
97       <button
98         className="projects-topbar-button"
99         onClick={[Function]}
100       >
101         close
102       </button>
103       <div
104         className="projects-topbar-items"
105       >
106         <PerspectiveSelect
107           className="projects-topbar-item js-projects-perspective-select"
108           view="leak"
109           visualization="risk"
110         />
111         <ProjectsSortingSelect
112           className="projects-topbar-item js-projects-sorting-select"
113           defaultOption="name"
114           view="leak"
115         />
116       </div>
117     </div>
118   </div>
119 </div>
120 `;
121
122 exports[`should render switch the default sorting option for anonymous users 1`] = `
123 <ProjectsSortingSelect
124   className="projects-topbar-item js-projects-sorting-select"
125   defaultOption="name"
126   view="overall"
127 />
128 `;
129
130 exports[`should render switch the default sorting option for anonymous users 2`] = `
131 <ProjectsSortingSelect
132   className="projects-topbar-item js-projects-sorting-select"
133   defaultOption="analysis_date"
134   view="leak"
135 />
136 `;