]> source.dussan.org Git - sonarqube.git/blob
7c2d25d78cec134d45018eb07c26a9af0d4b0a60
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: importing 1`] = `
4 <div
5   className="boxed-group big-padded create-project-import-gitlab"
6 >
7   <SearchBox
8     className="spacer"
9     loading={false}
10     minLength={3}
11     onChange={[MockFunction]}
12     placeholder="onboarding.create_project.gitlab.search_prompt"
13   />
14   <hr />
15   <table
16     className="data zebra zebra-hover"
17   >
18     <tbody>
19       <tr
20         key="id1234"
21       >
22         <td>
23           <Tooltip
24             overlay="awesome-project-exclamation"
25           >
26             <strong
27               className="project-name display-inline-block text-ellipsis"
28             >
29               Awesome Project !
30             </strong>
31           </Tooltip>
32           <br />
33           <Tooltip
34             overlay="company/best-projects"
35           >
36             <span
37               className="text-muted project-path display-inline-block text-ellipsis"
38             >
39               Company / Best Projects
40             </span>
41           </Tooltip>
42         </td>
43         <td>
44           <a
45             className="display-inline-flex-center big-spacer-right"
46             href="https://gitlab.company.com/best-projects/awesome-project-exclamation"
47             rel="noopener noreferrer"
48             target="_blank"
49           >
50             <DetachIcon
51               className="little-spacer-right"
52             />
53             onboarding.create_project.gitlab.link
54           </a>
55         </td>
56         <td
57           className="text-right"
58           colSpan={2}
59         >
60           <Button
61             disabled={true}
62             onClick={[Function]}
63           >
64             onboarding.create_project.gitlab.set_up
65           </Button>
66         </td>
67       </tr>
68       <tr
69         key="2"
70       >
71         <td>
72           <Tooltip
73             overlay="awesome-project-exclamation"
74           >
75             <strong
76               className="project-name display-inline-block text-ellipsis"
77             >
78               Awesome Project !
79             </strong>
80           </Tooltip>
81           <br />
82           <Tooltip
83             overlay="company/best-projects"
84           >
85             <span
86               className="text-muted project-path display-inline-block text-ellipsis"
87             >
88               Company / Best Projects
89             </span>
90           </Tooltip>
91         </td>
92         <td>
93           <a
94             className="display-inline-flex-center big-spacer-right"
95             href="https://gitlab.company.com/best-projects/awesome-project-exclamation"
96             rel="noopener noreferrer"
97             target="_blank"
98           >
99             <DetachIcon
100               className="little-spacer-right"
101             />
102             onboarding.create_project.gitlab.link
103           </a>
104         </td>
105         <td>
106           <span
107             className="display-flex-center display-flex-justify-end already-set-up"
108           >
109             <CheckIcon
110               className="little-spacer-right"
111               size={12}
112             />
113             onboarding.create_project.repository_imported
114             :
115           </span>
116         </td>
117         <td>
118           <div
119             className="sq-project-link text-ellipsis"
120           >
121             <Link
122               onlyActiveOnIndex={false}
123               style={Object {}}
124               to={
125                 Object {
126                   "pathname": "/dashboard",
127                   "query": Object {
128                     "branch": undefined,
129                     "id": "already-imported",
130                   },
131                 }
132               }
133             >
134               <QualifierIcon
135                 className="spacer-right"
136                 qualifier="TRK"
137               />
138               Already Imported
139             </Link>
140           </div>
141         </td>
142       </tr>
143     </tbody>
144   </table>
145   <ListFooter
146     count={2}
147     loadMore={[MockFunction]}
148     loading={false}
149     total={2}
150   />
151 </div>
152 `;
153
154 exports[`should render correctly: no projects 1`] = `
155 <Alert
156   className="spacer-top"
157   variant="warning"
158 >
159   <FormattedMessage
160     defaultMessage="onboarding.create_project.gitlab.no_projects"
161     id="onboarding.create_project.gitlab.no_projects"
162     values={
163       Object {
164         "link": <Link
165           onlyActiveOnIndex={false}
166           style={Object {}}
167           to={
168             Object {
169               "pathname": "/projects/create",
170               "query": Object {
171                 "mode": "gitlab",
172                 "resetPat": 1,
173               },
174             }
175           }
176         >
177           onboarding.create_project.update_your_token
178         </Link>,
179       }
180     }
181   />
182 </Alert>
183 `;
184
185 exports[`should render correctly: no projects when searching 1`] = `
186 <div
187   className="boxed-group big-padded create-project-import-gitlab"
188 >
189   <SearchBox
190     className="spacer"
191     loading={false}
192     minLength={3}
193     onChange={[MockFunction]}
194     placeholder="onboarding.create_project.gitlab.search_prompt"
195   />
196   <hr />
197   <div
198     className="padded"
199   >
200     no_results
201   </div>
202   <ListFooter
203     count={0}
204     loadMore={[MockFunction]}
205     loading={false}
206     total={0}
207   />
208 </div>
209 `;
210
211 exports[`should render correctly: projects 1`] = `
212 <div
213   className="boxed-group big-padded create-project-import-gitlab"
214 >
215   <SearchBox
216     className="spacer"
217     loading={false}
218     minLength={3}
219     onChange={[MockFunction]}
220     placeholder="onboarding.create_project.gitlab.search_prompt"
221   />
222   <hr />
223   <table
224     className="data zebra zebra-hover"
225   >
226     <tbody>
227       <tr
228         key="id1234"
229       >
230         <td>
231           <Tooltip
232             overlay="awesome-project-exclamation"
233           >
234             <strong
235               className="project-name display-inline-block text-ellipsis"
236             >
237               Awesome Project !
238             </strong>
239           </Tooltip>
240           <br />
241           <Tooltip
242             overlay="company/best-projects"
243           >
244             <span
245               className="text-muted project-path display-inline-block text-ellipsis"
246             >
247               Company / Best Projects
248             </span>
249           </Tooltip>
250         </td>
251         <td>
252           <a
253             className="display-inline-flex-center big-spacer-right"
254             href="https://gitlab.company.com/best-projects/awesome-project-exclamation"
255             rel="noopener noreferrer"
256             target="_blank"
257           >
258             <DetachIcon
259               className="little-spacer-right"
260             />
261             onboarding.create_project.gitlab.link
262           </a>
263         </td>
264         <td
265           className="text-right"
266           colSpan={2}
267         >
268           <Button
269             disabled={false}
270             onClick={[Function]}
271           >
272             onboarding.create_project.gitlab.set_up
273           </Button>
274         </td>
275       </tr>
276       <tr
277         key="2"
278       >
279         <td>
280           <Tooltip
281             overlay="awesome-project-exclamation"
282           >
283             <strong
284               className="project-name display-inline-block text-ellipsis"
285             >
286               Awesome Project !
287             </strong>
288           </Tooltip>
289           <br />
290           <Tooltip
291             overlay="company/best-projects"
292           >
293             <span
294               className="text-muted project-path display-inline-block text-ellipsis"
295             >
296               Company / Best Projects
297             </span>
298           </Tooltip>
299         </td>
300         <td>
301           <a
302             className="display-inline-flex-center big-spacer-right"
303             href="https://gitlab.company.com/best-projects/awesome-project-exclamation"
304             rel="noopener noreferrer"
305             target="_blank"
306           >
307             <DetachIcon
308               className="little-spacer-right"
309             />
310             onboarding.create_project.gitlab.link
311           </a>
312         </td>
313         <td>
314           <span
315             className="display-flex-center display-flex-justify-end already-set-up"
316           >
317             <CheckIcon
318               className="little-spacer-right"
319               size={12}
320             />
321             onboarding.create_project.repository_imported
322             :
323           </span>
324         </td>
325         <td>
326           <div
327             className="sq-project-link text-ellipsis"
328           >
329             <Link
330               onlyActiveOnIndex={false}
331               style={Object {}}
332               to={
333                 Object {
334                   "pathname": "/dashboard",
335                   "query": Object {
336                     "branch": undefined,
337                     "id": "already-imported",
338                   },
339                 }
340               }
341             >
342               <QualifierIcon
343                 className="spacer-right"
344                 qualifier="TRK"
345               />
346               Already Imported
347             </Link>
348           </div>
349         </td>
350       </tr>
351     </tbody>
352   </table>
353   <ListFooter
354     count={2}
355     loadMore={[MockFunction]}
356     loading={false}
357     total={2}
358   />
359 </div>
360 `;
361
362 exports[`should render correctly: undefined projects 1`] = `
363 <Alert
364   className="spacer-top"
365   variant="warning"
366 >
367   <FormattedMessage
368     defaultMessage="onboarding.create_project.gitlab.no_projects"
369     id="onboarding.create_project.gitlab.no_projects"
370     values={
371       Object {
372         "link": <Link
373           onlyActiveOnIndex={false}
374           style={Object {}}
375           to={
376             Object {
377               "pathname": "/projects/create",
378               "query": Object {
379                 "mode": "gitlab",
380                 "resetPat": 1,
381               },
382             }
383           }
384         >
385           onboarding.create_project.update_your_token
386         </Link>,
387       }
388     }
389   />
390 </Alert>
391 `;