]> source.dussan.org Git - sonarqube.git/blob
f7310b990755148b9a1ea22e1f5b0c427a192a2a
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: default 1`] = `
4 <div
5   className="boxed-group quality-profile-projects"
6 >
7   <div
8     className="boxed-group-actions"
9   >
10     <Tooltip
11       overlay={null}
12     >
13       <Button
14         className="js-change-projects"
15         disabled={false}
16         onClick={[Function]}
17       >
18         quality_profiles.change_projects
19       </Button>
20     </Tooltip>
21   </div>
22   <header
23     className="boxed-group-header"
24   >
25     <h2>
26       projects
27     </h2>
28   </header>
29   <div
30     className="boxed-group-inner"
31   >
32     <ul>
33       <li
34         className="spacer-top js-profile-project"
35         data-key="org.sonarsource.xml:xml"
36         key="org.sonarsource.xml:xml"
37       >
38         <Link
39           className="link-with-icon"
40           to={
41             Object {
42               "pathname": "/dashboard",
43               "search": "?id=org.sonarsource.xml%3Axml",
44             }
45           }
46         >
47           <QualifierIcon
48             qualifier="TRK"
49           />
50            
51           <span>
52             SonarXML
53           </span>
54         </Link>
55       </li>
56     </ul>
57     <ListFooter
58       count={1}
59       loadMore={[Function]}
60       ready={true}
61       total={10}
62     />
63   </div>
64 </div>
65 `;
66
67 exports[`should render correctly: loading 1`] = `
68 <div
69   className="boxed-group quality-profile-projects"
70 >
71   <div
72     className="boxed-group-actions"
73   >
74     <Tooltip
75       overlay={null}
76     >
77       <Button
78         className="js-change-projects"
79         disabled={false}
80         onClick={[Function]}
81       >
82         quality_profiles.change_projects
83       </Button>
84     </Tooltip>
85   </div>
86   <header
87     className="boxed-group-header"
88   >
89     <h2>
90       projects
91     </h2>
92   </header>
93   <div
94     className="boxed-group-inner"
95   >
96     <i
97       className="spinner"
98     />
99   </div>
100 </div>
101 `;
102
103 exports[`should render correctly: no active rules, but associated projects 1`] = `
104 <div
105   className="boxed-group quality-profile-projects"
106 >
107   <div
108     className="boxed-group-actions"
109   >
110     <Tooltip
111       overlay="quality_profiles.cannot_associate_projects_no_rules"
112     >
113       <Button
114         className="js-change-projects"
115         disabled={true}
116         onClick={[Function]}
117       >
118         quality_profiles.change_projects
119       </Button>
120     </Tooltip>
121   </div>
122   <header
123     className="boxed-group-header"
124   >
125     <h2>
126       projects
127     </h2>
128   </header>
129   <div
130     className="boxed-group-inner"
131   >
132     <ul>
133       <li
134         className="spacer-top js-profile-project"
135         data-key="org.sonarsource.xml:xml"
136         key="org.sonarsource.xml:xml"
137       >
138         <Link
139           className="link-with-icon"
140           to={
141             Object {
142               "pathname": "/dashboard",
143               "search": "?id=org.sonarsource.xml%3Axml",
144             }
145           }
146         >
147           <QualifierIcon
148             qualifier="TRK"
149           />
150            
151           <span>
152             SonarXML
153           </span>
154         </Link>
155       </li>
156     </ul>
157     <ListFooter
158       count={1}
159       loadMore={[Function]}
160       ready={true}
161       total={10}
162     />
163   </div>
164 </div>
165 `;
166
167 exports[`should render correctly: no active rules, no associated projects 1`] = `
168 <div
169   className="boxed-group quality-profile-projects"
170 >
171   <div
172     className="boxed-group-actions"
173   >
174     <Tooltip
175       overlay="quality_profiles.cannot_associate_projects_no_rules"
176     >
177       <Button
178         className="js-change-projects"
179         disabled={true}
180         onClick={[Function]}
181       >
182         quality_profiles.change_projects
183       </Button>
184     </Tooltip>
185   </div>
186   <header
187     className="boxed-group-header"
188   >
189     <h2>
190       projects
191     </h2>
192   </header>
193   <div
194     className="boxed-group-inner"
195   >
196     <div>
197       quality_profiles.cannot_associate_projects_no_rules
198     </div>
199   </div>
200 </div>
201 `;
202
203 exports[`should render correctly: no rights 1`] = `
204 <div
205   className="boxed-group quality-profile-projects"
206 >
207   <header
208     className="boxed-group-header"
209   >
210     <h2>
211       projects
212     </h2>
213   </header>
214   <div
215     className="boxed-group-inner"
216   >
217     <ul>
218       <li
219         className="spacer-top js-profile-project"
220         data-key="org.sonarsource.xml:xml"
221         key="org.sonarsource.xml:xml"
222       >
223         <Link
224           className="link-with-icon"
225           to={
226             Object {
227               "pathname": "/dashboard",
228               "search": "?id=org.sonarsource.xml%3Axml",
229             }
230           }
231         >
232           <QualifierIcon
233             qualifier="TRK"
234           />
235            
236           <span>
237             SonarXML
238           </span>
239         </Link>
240       </li>
241     </ul>
242     <ListFooter
243       count={1}
244       loadMore={[Function]}
245       ready={true}
246       total={10}
247     />
248   </div>
249 </div>
250 `;