]> source.dussan.org Git - sonarqube.git/blob
03c55f4adfc5cd6026a5032b90f1eb20937fdd99
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`applications should render correctly when there are many branchlikes 1`] = `
4 <span
5   className="display-flex-center flex-shrink text-ellipsis"
6 >
7   <BranchLikeIcon
8     branchLike={
9       Object {
10         "analysisDate": "2018-01-01",
11         "excludedFromPurge": true,
12         "isMain": true,
13         "name": "master",
14       }
15     }
16     fill="#0271B9"
17   />
18   <span
19     className="spacer-left spacer-right flex-shrink text-ellipsis js-branch-like-name"
20     title="master"
21   >
22     master
23   </span>
24   <DropdownIcon />
25 </span>
26 `;
27
28 exports[`applications should render correctly when there is only one branch and the user CAN'T admin the application 1`] = `
29 <span
30   className="display-flex-center flex-shrink text-ellipsis"
31 >
32   <BranchLikeIcon
33     branchLike={
34       Object {
35         "analysisDate": "2018-01-01",
36         "excludedFromPurge": true,
37         "isMain": true,
38         "name": "master",
39       }
40     }
41     fill="#0271B9"
42   />
43   <span
44     className="spacer-left spacer-right flex-shrink text-ellipsis js-branch-like-name"
45     title="master"
46   >
47     master
48   </span>
49 </span>
50 `;
51
52 exports[`applications should render correctly when there is only one branch and the user can admin the application 1`] = `
53 <span
54   className="display-flex-center flex-shrink text-ellipsis"
55 >
56   <BranchLikeIcon
57     branchLike={
58       Object {
59         "analysisDate": "2018-01-01",
60         "excludedFromPurge": true,
61         "isMain": true,
62         "name": "master",
63       }
64     }
65     fill="#0271B9"
66   />
67   <span
68     className="spacer-left spacer-right flex-shrink text-ellipsis js-branch-like-name"
69     title="master"
70   >
71     master
72   </span>
73   <HelpTooltip
74     overlay={
75       <React.Fragment>
76         <p>
77           application.branches.help
78         </p>
79         <hr
80           className="spacer-top spacer-bottom"
81         />
82         <Link
83           to={
84             Object {
85               "pathname": "/project/admin/extension/developer-server/application-console",
86               "search": "?id=my-project",
87             }
88           }
89         >
90           application.branches.link
91         </Link>
92       </React.Fragment>
93     }
94   >
95     <PlusCircleIcon
96       fill="#0271B9"
97       size={12}
98     />
99   </HelpTooltip>
100 </span>
101 `;
102
103 exports[`projects should render correctly when branches support is disabled: alm with mrs 1`] = `
104 <span
105   className="display-flex-center flex-shrink text-ellipsis"
106 >
107   <BranchLikeIcon
108     branchLike={
109       Object {
110         "analysisDate": "2018-01-01",
111         "excludedFromPurge": true,
112         "isMain": true,
113         "name": "master",
114       }
115     }
116     fill="#0271B9"
117   />
118   <span
119     className="spacer-left spacer-right flex-shrink text-ellipsis js-branch-like-name"
120     title="master"
121   >
122     master
123   </span>
124   <DocumentationTooltip
125     content="branch_like_navigation.no_branch_support.content_x.mr.alm.gitlab"
126     data-test="branches-support-disabled"
127     links={
128       Array [
129         Object {
130           "href": "https://redirect.sonarsource.com/editions/developer.html",
131           "label": "learn_more",
132         },
133       ]
134     }
135     title="branch_like_navigation.no_branch_support.title.mr"
136   >
137     <PlusCircleIcon
138       fill="#0271B9"
139       size={12}
140     />
141   </DocumentationTooltip>
142 </span>
143 `;
144
145 exports[`projects should render correctly when branches support is disabled: alm with prs 1`] = `
146 <span
147   className="display-flex-center flex-shrink text-ellipsis"
148 >
149   <BranchLikeIcon
150     branchLike={
151       Object {
152         "analysisDate": "2018-01-01",
153         "excludedFromPurge": true,
154         "isMain": true,
155         "name": "master",
156       }
157     }
158     fill="#0271B9"
159   />
160   <span
161     className="spacer-left spacer-right flex-shrink text-ellipsis js-branch-like-name"
162     title="master"
163   >
164     master
165   </span>
166   <DocumentationTooltip
167     content="branch_like_navigation.no_branch_support.content_x.pr.alm.github"
168     data-test="branches-support-disabled"
169     links={
170       Array [
171         Object {
172           "href": "https://redirect.sonarsource.com/editions/developer.html",
173           "label": "learn_more",
174         },
175       ]
176     }
177     title="branch_like_navigation.no_branch_support.title.pr"
178   >
179     <PlusCircleIcon
180       fill="#0271B9"
181       size={12}
182     />
183   </DocumentationTooltip>
184 </span>
185 `;
186
187 exports[`projects should render correctly when branches support is disabled: default 1`] = `
188 <span
189   className="display-flex-center flex-shrink text-ellipsis"
190 >
191   <BranchLikeIcon
192     branchLike={
193       Object {
194         "analysisDate": "2018-01-01",
195         "excludedFromPurge": true,
196         "isMain": true,
197         "name": "master",
198       }
199     }
200     fill="#0271B9"
201   />
202   <span
203     className="spacer-left spacer-right flex-shrink text-ellipsis js-branch-like-name"
204     title="master"
205   >
206     master
207   </span>
208   <DocumentationTooltip
209     content="branch_like_navigation.no_branch_support.content"
210     data-test="branches-support-disabled"
211     links={
212       Array [
213         Object {
214           "href": "https://redirect.sonarsource.com/editions/developer.html",
215           "label": "learn_more",
216         },
217       ]
218     }
219     title="branch_like_navigation.no_branch_support.title"
220   >
221     <PlusCircleIcon
222       fill="#0271B9"
223       size={12}
224     />
225   </DocumentationTooltip>
226 </span>
227 `;
228
229 exports[`projects should render correctly when there are many branchlikes 1`] = `
230 <span
231   className="display-flex-center flex-shrink text-ellipsis"
232 >
233   <BranchLikeIcon
234     branchLike={
235       Object {
236         "analysisDate": "2018-01-01",
237         "excludedFromPurge": true,
238         "isMain": true,
239         "name": "master",
240       }
241     }
242     fill="#0271B9"
243   />
244   <span
245     className="spacer-left spacer-right flex-shrink text-ellipsis js-branch-like-name"
246     title="master"
247   >
248     master
249   </span>
250   <DropdownIcon />
251 </span>
252 `;
253
254 exports[`projects should render correctly when there is only one branchlike 1`] = `
255 <span
256   className="display-flex-center flex-shrink text-ellipsis"
257 >
258   <BranchLikeIcon
259     branchLike={
260       Object {
261         "analysisDate": "2018-01-01",
262         "excludedFromPurge": true,
263         "isMain": true,
264         "name": "master",
265       }
266     }
267     fill="#0271B9"
268   />
269   <span
270     className="spacer-left spacer-right flex-shrink text-ellipsis js-branch-like-name"
271     title="master"
272   >
273     master
274   </span>
275   <DocumentationTooltip
276     content="branch_like_navigation.only_one_branch.content"
277     data-test="only-one-branch-like"
278     links={
279       Array [
280         Object {
281           "href": "/documentation/branches/overview/",
282           "label": "branch_like_navigation.only_one_branch.documentation",
283         },
284         Object {
285           "href": "/documentation/analysis/pull-request/",
286           "label": "branch_like_navigation.only_one_branch.pr_analysis",
287         },
288         Object {
289           "href": "/tutorials?id=my-project",
290           "inPlace": true,
291           "label": "branch_like_navigation.tutorial_for_ci",
292         },
293       ]
294     }
295     title="branch_like_navigation.only_one_branch.title"
296   >
297     <PlusCircleIcon
298       fill="#0271B9"
299       size={12}
300     />
301   </DocumentationTooltip>
302 </span>
303 `;