]> source.dussan.org Git - sonarqube.git/blob
5f59a757faa3c86a36b87d5db45ebc564ff24a79
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly for multi-ALM binding: editing a definition 1`] = `
4 <div
5   className="big-padded"
6 >
7   <DeferredSpinner
8     loading={false}
9     timeout={100}
10   >
11     <AlmBindingDefinitionsTable
12       additionalColumnsHeaders={
13         Array [
14           "url",
15           "app_id",
16         ]
17       }
18       alm="github"
19       definitions={
20         Array [
21           Object {
22             "additionalColumns": Array [
23               "http://github.enterprise.com",
24               "123456",
25             ],
26             "key": "key",
27           },
28         ]
29       }
30       loading={false}
31       onCreate={[MockFunction]}
32       onDelete={[MockFunction]}
33       onEdit={[MockFunction]}
34     />
35     <AlmBindingDefinitionForm
36       bindingDefinition={
37         Object {
38           "appId": "123456",
39           "key": "key",
40           "privateKey": "asdf1234",
41           "url": "http://github.enterprise.com",
42         }
43       }
44       help={
45         <FormattedMessage
46           defaultMessage="settings.almintegration.github.info"
47           id="settings.almintegration.github.info"
48           values={
49             Object {
50               "link": <Link
51                 onlyActiveOnIndex={false}
52                 style={Object {}}
53                 target="_blank"
54                 to="/documentation/analysis/pr-decoration/"
55               >
56                 learn_more
57               </Link>,
58             }
59           }
60         />
61       }
62       onCancel={[MockFunction]}
63       onSubmit={[MockFunction]}
64       showInModal={true}
65     >
66       <Component />
67     </AlmBindingDefinitionForm>
68   </DeferredSpinner>
69 </div>
70 `;
71
72 exports[`should render correctly for multi-ALM binding: loaded 1`] = `
73 <div
74   className="big-padded"
75 >
76   <DeferredSpinner
77     loading={false}
78     timeout={100}
79   >
80     <AlmBindingDefinitionsTable
81       additionalColumnsHeaders={
82         Array [
83           "url",
84           "app_id",
85         ]
86       }
87       alm="github"
88       definitions={
89         Array [
90           Object {
91             "additionalColumns": Array [
92               "http://github.enterprise.com",
93               "123456",
94             ],
95             "key": "key",
96           },
97         ]
98       }
99       loading={false}
100       onCreate={[MockFunction]}
101       onDelete={[MockFunction]}
102       onEdit={[MockFunction]}
103     />
104   </DeferredSpinner>
105 </div>
106 `;
107
108 exports[`should render correctly for multi-ALM binding: loading ALM definitions 1`] = `
109 <div
110   className="big-padded"
111 >
112   <DeferredSpinner
113     loading={true}
114     timeout={100}
115   >
116     <AlmBindingDefinitionsTable
117       additionalColumnsHeaders={
118         Array [
119           "url",
120           "app_id",
121         ]
122       }
123       alm="github"
124       definitions={
125         Array [
126           Object {
127             "additionalColumns": Array [
128               "http://github.enterprise.com",
129               "123456",
130             ],
131             "key": "key",
132           },
133         ]
134       }
135       loading={false}
136       onCreate={[MockFunction]}
137       onDelete={[MockFunction]}
138       onEdit={[MockFunction]}
139     />
140   </DeferredSpinner>
141 </div>
142 `;
143
144 exports[`should render correctly for multi-ALM binding: loading project count 1`] = `
145 <div
146   className="big-padded"
147 >
148   <DeferredSpinner
149     loading={false}
150     timeout={100}
151   >
152     <AlmBindingDefinitionsTable
153       additionalColumnsHeaders={
154         Array [
155           "url",
156           "app_id",
157         ]
158       }
159       alm="github"
160       definitions={
161         Array [
162           Object {
163             "additionalColumns": Array [
164               "http://github.enterprise.com",
165               "123456",
166             ],
167             "key": "key",
168           },
169         ]
170       }
171       loading={true}
172       onCreate={[MockFunction]}
173       onDelete={[MockFunction]}
174       onEdit={[MockFunction]}
175     />
176   </DeferredSpinner>
177 </div>
178 `;
179
180 exports[`should render correctly for multi-ALM binding: submitting 1`] = `
181 <div
182   className="big-padded"
183 >
184   <DeferredSpinner
185     loading={false}
186     timeout={100}
187   >
188     <AlmBindingDefinitionsTable
189       additionalColumnsHeaders={
190         Array [
191           "url",
192           "app_id",
193         ]
194       }
195       alm="github"
196       definitions={
197         Array [
198           Object {
199             "additionalColumns": Array [
200               "http://github.enterprise.com",
201               "123456",
202             ],
203             "key": "key",
204           },
205         ]
206       }
207       loading={false}
208       onCreate={[MockFunction]}
209       onDelete={[MockFunction]}
210       onEdit={[MockFunction]}
211     />
212   </DeferredSpinner>
213 </div>
214 `;
215
216 exports[`should render correctly for multi-ALM binding: with features 1`] = `
217 <div
218   className="big-padded"
219 >
220   <DeferredSpinner
221     loading={false}
222     timeout={100}
223   >
224     <AlmBindingDefinitionsTable
225       additionalColumnsHeaders={
226         Array [
227           "url",
228           "app_id",
229         ]
230       }
231       alm="github"
232       definitions={
233         Array [
234           Object {
235             "additionalColumns": Array [
236               "http://github.enterprise.com",
237               "123456",
238             ],
239             "key": "key",
240           },
241         ]
242       }
243       loading={false}
244       onCreate={[MockFunction]}
245       onDelete={[MockFunction]}
246       onEdit={[MockFunction]}
247     />
248   </DeferredSpinner>
249   <div
250     className="big-spacer-top big-padded-top bordered-top"
251   >
252     <h3
253       className="big-spacer-bottom"
254     >
255       settings.almintegration.features
256     </h3>
257     <div
258       className="display-flex-wrap"
259     >
260       <AlmIntegrationFeatureBox
261         active={true}
262         description="Bar"
263         key="0"
264         name="Foo"
265       />
266       <AlmIntegrationFeatureBox
267         active={false}
268         description="Bim"
269         key="1"
270         name="Baz"
271       />
272     </div>
273   </div>
274 </div>
275 `;
276
277 exports[`should render correctly for single-ALM binding 1`] = `
278 <div
279   className="big-padded"
280 >
281   <AlmBindingDefinitionForm
282     bindingDefinition={
283       Object {
284         "appId": "123456",
285         "key": "key",
286         "privateKey": "asdf1234",
287         "url": "http://github.enterprise.com",
288       }
289     }
290     help={
291       <FormattedMessage
292         defaultMessage="settings.almintegration.github.info"
293         id="settings.almintegration.github.info"
294         values={
295           Object {
296             "link": <Link
297               onlyActiveOnIndex={false}
298               style={Object {}}
299               target="_blank"
300               to="/documentation/analysis/pr-decoration/"
301             >
302               learn_more
303             </Link>,
304           }
305         }
306       />
307     }
308     hideKeyField={true}
309     loading={true}
310     onCancel={[MockFunction]}
311     onDelete={[MockFunction]}
312     onEdit={[MockFunction]}
313     onSubmit={[MockFunction]}
314     readOnly={true}
315     success={false}
316   >
317     <Component />
318   </AlmBindingDefinitionForm>
319 </div>
320 `;
321
322 exports[`should render correctly for single-ALM binding 2`] = `
323 <div
324   className="big-padded"
325 >
326   <AlmBindingDefinitionForm
327     bindingDefinition={
328       Object {
329         "appId": "123456",
330         "key": "key",
331         "privateKey": "asdf1234",
332         "url": "http://github.enterprise.com",
333       }
334     }
335     help={
336       <FormattedMessage
337         defaultMessage="settings.almintegration.github.info"
338         id="settings.almintegration.github.info"
339         values={
340           Object {
341             "link": <Link
342               onlyActiveOnIndex={false}
343               style={Object {}}
344               target="_blank"
345               to="/documentation/analysis/pr-decoration/"
346             >
347               learn_more
348             </Link>,
349           }
350         }
351       />
352     }
353     hideKeyField={true}
354     loading={true}
355     onCancel={[MockFunction]}
356     onDelete={[MockFunction]}
357     onEdit={[MockFunction]}
358     onSubmit={[MockFunction]}
359     readOnly={true}
360     success={false}
361   >
362     <Component />
363   </AlmBindingDefinitionForm>
364 </div>
365 `;
366
367 exports[`should render correctly for single-ALM binding 3`] = `
368 <div
369   className="big-padded"
370 >
371   <AlmBindingDefinitionForm
372     bindingDefinition={
373       Object {
374         "appId": "123456",
375         "key": "key",
376         "privateKey": "asdf1234",
377         "url": "http://github.enterprise.com",
378       }
379     }
380     help={
381       <FormattedMessage
382         defaultMessage="settings.almintegration.github.info"
383         id="settings.almintegration.github.info"
384         values={
385           Object {
386             "link": <Link
387               onlyActiveOnIndex={false}
388               style={Object {}}
389               target="_blank"
390               to="/documentation/analysis/pr-decoration/"
391             >
392               learn_more
393             </Link>,
394           }
395         }
396       />
397     }
398     hideKeyField={true}
399     loading={true}
400     onCancel={[MockFunction]}
401     onDelete={[MockFunction]}
402     onEdit={[MockFunction]}
403     onSubmit={[MockFunction]}
404     readOnly={true}
405     success={false}
406   >
407     <Component />
408   </AlmBindingDefinitionForm>
409 </div>
410 `;