]> source.dussan.org Git - sonarqube.git/blob
db23d06a772a1db03257d911adaca493a8b74967
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`CurrentBranchLikeRenderer should render correctly for application 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   />
17   <span
18     className="spacer-left spacer-right flex-shrink text-ellipsis js-branch-like-name"
19     title="master"
20   >
21     master
22   </span>
23   <DropdownIcon />
24 </span>
25 `;
26
27 exports[`CurrentBranchLikeRenderer should render correctly for application when there is only one branch and the user CAN'T admin the application 1`] = `
28 <span
29   className="display-flex-center flex-shrink text-ellipsis"
30 >
31   <BranchLikeIcon
32     branchLike={
33       Object {
34         "analysisDate": "2018-01-01",
35         "excludedFromPurge": true,
36         "isMain": true,
37         "name": "master",
38       }
39     }
40   />
41   <span
42     className="spacer-left spacer-right flex-shrink text-ellipsis js-branch-like-name"
43     title="master"
44   >
45     master
46   </span>
47 </span>
48 `;
49
50 exports[`CurrentBranchLikeRenderer should render correctly for application when there is only one branch and the user can admin the application 1`] = `
51 <span
52   className="display-flex-center flex-shrink text-ellipsis"
53 >
54   <BranchLikeIcon
55     branchLike={
56       Object {
57         "analysisDate": "2018-01-01",
58         "excludedFromPurge": true,
59         "isMain": true,
60         "name": "master",
61       }
62     }
63   />
64   <span
65     className="spacer-left spacer-right flex-shrink text-ellipsis js-branch-like-name"
66     title="master"
67   >
68     master
69   </span>
70   <HelpTooltip
71     overlay={
72       <React.Fragment>
73         <p>
74           application.branches.help
75         </p>
76         <hr
77           className="spacer-top spacer-bottom"
78         />
79         <Link
80           onlyActiveOnIndex={false}
81           style={Object {}}
82           to={
83             Object {
84               "pathname": "/application/console",
85               "query": Object {
86                 "id": "my-project",
87               },
88             }
89           }
90         >
91           application.branches.link
92         </Link>
93       </React.Fragment>
94     }
95   >
96     <PlusCircleIcon
97       fill="#4b9fd5"
98       size={12}
99     />
100   </HelpTooltip>
101 </span>
102 `;
103
104 exports[`CurrentBranchLikeRenderer should render correctly for project when branches support is disabled 1`] = `
105 <span
106   className="display-flex-center flex-shrink text-ellipsis"
107 >
108   <BranchLikeIcon
109     branchLike={
110       Object {
111         "analysisDate": "2018-01-01",
112         "excludedFromPurge": true,
113         "isMain": true,
114         "name": "master",
115       }
116     }
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"
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"
136   >
137     <PlusCircleIcon
138       fill="#4b9fd5"
139       size={12}
140     />
141   </DocumentationTooltip>
142 </span>
143 `;
144
145 exports[`CurrentBranchLikeRenderer should render correctly for project when there are many branchlikes 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   />
159   <span
160     className="spacer-left spacer-right flex-shrink text-ellipsis js-branch-like-name"
161     title="master"
162   >
163     master
164   </span>
165   <DropdownIcon />
166 </span>
167 `;
168
169 exports[`CurrentBranchLikeRenderer should render correctly for project when there is only one branchlike 1`] = `
170 <span
171   className="display-flex-center flex-shrink text-ellipsis"
172 >
173   <BranchLikeIcon
174     branchLike={
175       Object {
176         "analysisDate": "2018-01-01",
177         "excludedFromPurge": true,
178         "isMain": true,
179         "name": "master",
180       }
181     }
182   />
183   <span
184     className="spacer-left spacer-right flex-shrink text-ellipsis js-branch-like-name"
185     title="master"
186   >
187     master
188   </span>
189   <DocumentationTooltip
190     content="branch_like_navigation.only_one_branch.content"
191     data-test="only-one-branch-like"
192     links={
193       Array [
194         Object {
195           "href": "/documentation/branches/overview/",
196           "label": "branch_like_navigation.only_one_branch.documentation",
197         },
198         Object {
199           "href": "/documentation/analysis/pull-request/",
200           "label": "branch_like_navigation.only_one_branch.pr_analysis",
201         },
202         Object {
203           "href": "/tutorials?id=my-project",
204           "inPlace": true,
205           "label": "branch_like_navigation.tutorial_for_ci",
206         },
207       ]
208     }
209     title="branch_like_navigation.only_one_branch.title"
210   >
211     <PlusCircleIcon
212       fill="#4b9fd5"
213       size={12}
214     />
215   </DocumentationTooltip>
216 </span>
217 `;