]> source.dussan.org Git - sonarqube.git/blob
86a8372f88648d1361b5348b2ef07c7d4aef77a1
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`renders main branch 1`] = `
4 <div
5   className="navbar-context-branches"
6 >
7   <div
8     className="dropdown"
9   >
10     <Toggler
11       onRequestClose={[Function]}
12       open={false}
13       overlay={
14         <ComponentNavBranchesMenu
15           branchLikes={
16             Array [
17               Object {
18                 "isMain": true,
19                 "name": "master",
20               },
21               Object {
22                 "isMain": false,
23                 "name": "foo",
24                 "type": "LONG",
25               },
26             ]
27           }
28           component={Object {}}
29           currentBranchLike={
30             Object {
31               "isMain": true,
32               "name": "master",
33             }
34           }
35           onClose={[Function]}
36         />
37       }
38     >
39       <a
40         className="link-base-color link-no-underline nowrap"
41         href="#"
42         onClick={[Function]}
43       >
44         <BranchIcon
45           branchLike={
46             Object {
47               "isMain": true,
48               "name": "master",
49             }
50           }
51           className="little-spacer-right"
52         />
53         <span
54           className="text-limited text-top"
55           title="master"
56         >
57           master
58         </span>
59         <DropdownIcon
60           className="little-spacer-left"
61         />
62       </a>
63     </Toggler>
64   </div>
65 </div>
66 `;
67
68 exports[`renders no branch support popup 1`] = `
69 <DocTooltip
70   className="spacer-left"
71   doc={Promise {}}
72 >
73   <PlusCircleIcon
74     fill="#b4b4b4"
75     size={12}
76   />
77 </DocTooltip>
78 `;
79
80 exports[`renders pull request 1`] = `
81 <div
82   className="navbar-context-branches"
83 >
84   <div
85     className="dropdown"
86   >
87     <Toggler
88       onRequestClose={[Function]}
89       open={false}
90       overlay={
91         <ComponentNavBranchesMenu
92           branchLikes={
93             Array [
94               Object {
95                 "base": "master",
96                 "branch": "feature",
97                 "key": "1234",
98                 "title": "Feature PR",
99                 "url": "https://example.com/pull/1234",
100               },
101               Object {
102                 "isMain": false,
103                 "name": "foo",
104                 "type": "LONG",
105               },
106             ]
107           }
108           component={Object {}}
109           currentBranchLike={
110             Object {
111               "base": "master",
112               "branch": "feature",
113               "key": "1234",
114               "title": "Feature PR",
115               "url": "https://example.com/pull/1234",
116             }
117           }
118           onClose={[Function]}
119         />
120       }
121     >
122       <a
123         className="link-base-color link-no-underline nowrap"
124         href="#"
125         onClick={[Function]}
126       >
127         <BranchIcon
128           branchLike={
129             Object {
130               "base": "master",
131               "branch": "feature",
132               "key": "1234",
133               "title": "Feature PR",
134               "url": "https://example.com/pull/1234",
135             }
136           }
137           className="little-spacer-right"
138         />
139         <span
140           className="text-limited text-top"
141           title="1234 – Feature PR"
142         >
143           1234 – Feature PR
144         </span>
145         <DropdownIcon
146           className="little-spacer-left"
147         />
148       </a>
149     </Toggler>
150   </div>
151   <span
152     className="note big-spacer-left text-ellipsis flex-shrink"
153   >
154     <FormattedMessage
155       defaultMessage="branches.pull_request.for_merge_into_x_from_y"
156       id="branches.pull_request.for_merge_into_x_from_y"
157       values={
158         Object {
159           "base": <strong>
160             master
161           </strong>,
162           "branch": <strong>
163             feature
164           </strong>,
165         }
166       }
167     />
168   </span>
169 </div>
170 `;
171
172 exports[`renders short-living branch 1`] = `
173 <div
174   className="navbar-context-branches"
175 >
176   <div
177     className="dropdown"
178   >
179     <Toggler
180       onRequestClose={[Function]}
181       open={false}
182       overlay={
183         <ComponentNavBranchesMenu
184           branchLikes={
185             Array [
186               Object {
187                 "isMain": false,
188                 "mergeBranch": "master",
189                 "name": "foo",
190                 "status": Object {
191                   "bugs": 0,
192                   "codeSmells": 0,
193                   "qualityGateStatus": "OK",
194                   "vulnerabilities": 0,
195                 },
196                 "type": "SHORT",
197               },
198               Object {
199                 "isMain": false,
200                 "name": "foo",
201                 "type": "LONG",
202               },
203             ]
204           }
205           component={Object {}}
206           currentBranchLike={
207             Object {
208               "isMain": false,
209               "mergeBranch": "master",
210               "name": "foo",
211               "status": Object {
212                 "bugs": 0,
213                 "codeSmells": 0,
214                 "qualityGateStatus": "OK",
215                 "vulnerabilities": 0,
216               },
217               "type": "SHORT",
218             }
219           }
220           onClose={[Function]}
221         />
222       }
223     >
224       <a
225         className="link-base-color link-no-underline nowrap"
226         href="#"
227         onClick={[Function]}
228       >
229         <BranchIcon
230           branchLike={
231             Object {
232               "isMain": false,
233               "mergeBranch": "master",
234               "name": "foo",
235               "status": Object {
236                 "bugs": 0,
237                 "codeSmells": 0,
238                 "qualityGateStatus": "OK",
239                 "vulnerabilities": 0,
240               },
241               "type": "SHORT",
242             }
243           }
244           className="little-spacer-right"
245         />
246         <span
247           className="text-limited text-top"
248           title="foo"
249         >
250           foo
251         </span>
252         <DropdownIcon
253           className="little-spacer-left"
254         />
255       </a>
256     </Toggler>
257   </div>
258   <span
259     className="note big-spacer-left"
260   >
261     from
262      
263     <strong>
264       master
265     </strong>
266   </span>
267 </div>
268 `;
269
270 exports[`renders single branch popup 1`] = `
271 <DocTooltip
272   className="spacer-left"
273   doc={Promise {}}
274 >
275   <PlusCircleIcon
276     fill="#4b9fd5"
277     size={12}
278   />
279 </DocTooltip>
280 `;