]> source.dussan.org Git - sonarqube.git/blob
eb9bf997e3693d7a70f2058fc7e82a0c8bd0bc14
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: no projects 1`] = `
4 <Alert
5   className="spacer-top"
6   variant="warning"
7 >
8   <FormattedMessage
9     defaultMessage="onboarding.create_project.gitlab.no_projects"
10     id="onboarding.create_project.gitlab.no_projects"
11     values={
12       Object {
13         "link": <Link
14           onlyActiveOnIndex={false}
15           style={Object {}}
16           to={
17             Object {
18               "pathname": "/projects/create",
19               "query": Object {
20                 "mode": "gitlab",
21                 "resetPat": 1,
22               },
23             }
24           }
25         >
26           onboarding.create_project.update_your_token
27         </Link>,
28       }
29     }
30   />
31 </Alert>
32 `;
33
34 exports[`should render correctly: no projects when searching 1`] = `
35 <div
36   className="boxed-group big-padded create-project-import-gitlab"
37 >
38   <SearchBox
39     className="spacer"
40     loading={false}
41     minLength={3}
42     onChange={[MockFunction]}
43     placeholder="onboarding.create_project.gitlab.search_prompt"
44   />
45   <hr />
46   <div
47     className="padded"
48   >
49     no_results
50   </div>
51   <ListFooter
52     count={0}
53     loadMore={[MockFunction]}
54     loading={false}
55     total={0}
56   />
57 </div>
58 `;
59
60 exports[`should render correctly: projects 1`] = `
61 <div
62   className="boxed-group big-padded create-project-import-gitlab"
63 >
64   <SearchBox
65     className="spacer"
66     loading={false}
67     minLength={3}
68     onChange={[MockFunction]}
69     placeholder="onboarding.create_project.gitlab.search_prompt"
70   />
71   <hr />
72   <table
73     className="data zebra zebra-hover"
74   >
75     <tbody>
76       <tr
77         key="id1234"
78       >
79         <td>
80           <Tooltip
81             overlay="awesome-project-exclamation"
82           >
83             <strong
84               className="project-name display-inline-block text-ellipsis"
85             >
86               Awesome Project !
87             </strong>
88           </Tooltip>
89           <br />
90           <Tooltip
91             overlay="company/best-projects"
92           >
93             <span
94               className="text-muted project-path display-inline-block text-ellipsis"
95             >
96               Company / Best Projects
97             </span>
98           </Tooltip>
99         </td>
100         <td>
101           <a
102             className="display-inline-flex-center big-spacer-right"
103             href="https://gitlab.company.com/best-projects/awesome-project-exclamation"
104             rel="noopener noreferrer"
105             target="_blank"
106           >
107             <DetachIcon
108               className="little-spacer-right"
109             />
110             onboarding.create_project.gitlab.link
111           </a>
112         </td>
113         <td
114           colSpan={2}
115         >
116            
117         </td>
118       </tr>
119       <tr
120         key="2"
121       >
122         <td>
123           <Tooltip
124             overlay="awesome-project-exclamation"
125           >
126             <strong
127               className="project-name display-inline-block text-ellipsis"
128             >
129               Awesome Project !
130             </strong>
131           </Tooltip>
132           <br />
133           <Tooltip
134             overlay="company/best-projects"
135           >
136             <span
137               className="text-muted project-path display-inline-block text-ellipsis"
138             >
139               Company / Best Projects
140             </span>
141           </Tooltip>
142         </td>
143         <td>
144           <a
145             className="display-inline-flex-center big-spacer-right"
146             href="https://gitlab.company.com/best-projects/awesome-project-exclamation"
147             rel="noopener noreferrer"
148             target="_blank"
149           >
150             <DetachIcon
151               className="little-spacer-right"
152             />
153             onboarding.create_project.gitlab.link
154           </a>
155         </td>
156         <td>
157           <span
158             className="display-flex-center display-flex-justify-end already-set-up"
159           >
160             <CheckIcon
161               className="little-spacer-right"
162               size={12}
163             />
164             onboarding.create_project.repository_imported
165             :
166           </span>
167         </td>
168         <td>
169           <div
170             className="sq-project-link text-ellipsis"
171           >
172             <Link
173               onlyActiveOnIndex={false}
174               style={Object {}}
175               to={
176                 Object {
177                   "pathname": "/dashboard",
178                   "query": Object {
179                     "branch": undefined,
180                     "id": "already-imported",
181                   },
182                 }
183               }
184             >
185               <QualifierIcon
186                 className="spacer-right"
187                 qualifier="TRK"
188               />
189               Already Imported
190             </Link>
191           </div>
192         </td>
193       </tr>
194     </tbody>
195   </table>
196   <ListFooter
197     count={2}
198     loadMore={[MockFunction]}
199     loading={false}
200     total={2}
201   />
202 </div>
203 `;
204
205 exports[`should render correctly: undefined projects 1`] = `
206 <Alert
207   className="spacer-top"
208   variant="warning"
209 >
210   <FormattedMessage
211     defaultMessage="onboarding.create_project.gitlab.no_projects"
212     id="onboarding.create_project.gitlab.no_projects"
213     values={
214       Object {
215         "link": <Link
216           onlyActiveOnIndex={false}
217           style={Object {}}
218           to={
219             Object {
220               "pathname": "/projects/create",
221               "query": Object {
222                 "mode": "gitlab",
223                 "resetPat": 1,
224               },
225             }
226           }
227         >
228           onboarding.create_project.update_your_token
229         </Link>,
230       }
231     }
232   />
233 </Alert>
234 `;