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