]> source.dussan.org Git - sonarqube.git/blob
8026ce65c2bf5410927fa808757f4c0cfc105ac9
[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       {
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       {
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       {
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         <ForwardRef(Link)
83           to={
84             {
85               "pathname": "/project/admin/extension/developer-server/application-console",
86               "search": "?id=my-project",
87             }
88           }
89         >
90           application.branches.link
91         </ForwardRef(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       {
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       [
129         {
130           "doc": false,
131           "href": "https://www.sonarsource.com/plans-and-pricing/developer/",
132           "label": "learn_more",
133         },
134       ]
135     }
136     title="branch_like_navigation.no_branch_support.title.mr"
137   >
138     <PlusCircleIcon
139       fill="#0271B9"
140       size={12}
141     />
142   </DocumentationTooltip>
143 </span>
144 `;
145
146 exports[`projects should render correctly when branches support is disabled: alm with prs 1`] = `
147 <span
148   className="display-flex-center flex-shrink text-ellipsis"
149 >
150   <BranchLikeIcon
151     branchLike={
152       {
153         "analysisDate": "2018-01-01",
154         "excludedFromPurge": true,
155         "isMain": true,
156         "name": "master",
157       }
158     }
159     fill="#0271B9"
160   />
161   <span
162     className="spacer-left spacer-right flex-shrink text-ellipsis js-branch-like-name"
163     title="master"
164   >
165     master
166   </span>
167   <DocumentationTooltip
168     content="branch_like_navigation.no_branch_support.content_x.pr.alm.github"
169     data-test="branches-support-disabled"
170     links={
171       [
172         {
173           "doc": false,
174           "href": "https://www.sonarsource.com/plans-and-pricing/developer/",
175           "label": "learn_more",
176         },
177       ]
178     }
179     title="branch_like_navigation.no_branch_support.title.pr"
180   >
181     <PlusCircleIcon
182       fill="#0271B9"
183       size={12}
184     />
185   </DocumentationTooltip>
186 </span>
187 `;
188
189 exports[`projects should render correctly when branches support is disabled: default 1`] = `
190 <span
191   className="display-flex-center flex-shrink text-ellipsis"
192 >
193   <BranchLikeIcon
194     branchLike={
195       {
196         "analysisDate": "2018-01-01",
197         "excludedFromPurge": true,
198         "isMain": true,
199         "name": "master",
200       }
201     }
202     fill="#0271B9"
203   />
204   <span
205     className="spacer-left spacer-right flex-shrink text-ellipsis js-branch-like-name"
206     title="master"
207   >
208     master
209   </span>
210   <DocumentationTooltip
211     content="branch_like_navigation.no_branch_support.content"
212     data-test="branches-support-disabled"
213     links={
214       [
215         {
216           "doc": false,
217           "href": "https://www.sonarsource.com/plans-and-pricing/developer/",
218           "label": "learn_more",
219         },
220       ]
221     }
222     title="branch_like_navigation.no_branch_support.title"
223   >
224     <PlusCircleIcon
225       fill="#0271B9"
226       size={12}
227     />
228   </DocumentationTooltip>
229 </span>
230 `;
231
232 exports[`projects should render correctly when there are many branchlikes 1`] = `
233 <span
234   className="display-flex-center flex-shrink text-ellipsis"
235 >
236   <BranchLikeIcon
237     branchLike={
238       {
239         "analysisDate": "2018-01-01",
240         "excludedFromPurge": true,
241         "isMain": true,
242         "name": "master",
243       }
244     }
245     fill="#0271B9"
246   />
247   <span
248     className="spacer-left spacer-right flex-shrink text-ellipsis js-branch-like-name"
249     title="master"
250   >
251     master
252   </span>
253   <DropdownIcon />
254 </span>
255 `;
256
257 exports[`projects should render correctly when there is only one branchlike 1`] = `
258 <span
259   className="display-flex-center flex-shrink text-ellipsis"
260 >
261   <BranchLikeIcon
262     branchLike={
263       {
264         "analysisDate": "2018-01-01",
265         "excludedFromPurge": true,
266         "isMain": true,
267         "name": "master",
268       }
269     }
270     fill="#0271B9"
271   />
272   <span
273     className="spacer-left spacer-right flex-shrink text-ellipsis js-branch-like-name"
274     title="master"
275   >
276     master
277   </span>
278   <DocumentationTooltip
279     content="branch_like_navigation.only_one_branch.content"
280     data-test="only-one-branch-like"
281     links={
282       [
283         {
284           "href": "/analyzing-source-code/branches/branch-analysis/",
285           "label": "branch_like_navigation.only_one_branch.documentation",
286         },
287         {
288           "href": "/analyzing-source-code/pull-request-analysis",
289           "label": "branch_like_navigation.only_one_branch.pr_analysis",
290         },
291         {
292           "doc": false,
293           "href": "/tutorials?id=my-project",
294           "inPlace": true,
295           "label": "branch_like_navigation.tutorial_for_ci",
296         },
297       ]
298     }
299     title="branch_like_navigation.only_one_branch.title"
300   >
301     <PlusCircleIcon
302       fill="#0271B9"
303       size={12}
304     />
305   </DocumentationTooltip>
306 </span>
307 `;