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