1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`should render correctly for multi-ALM binding: editing a definition 1`] = `
11 className="spacer-bottom text-right"
13 <Connect(withAppState(CreationTooltip))
15 preventCreation={false}
18 data-test="settings__alm-create"
20 onClick={[MockFunction]}
22 settings.almintegration.create
24 </Connect(withAppState(CreationTooltip))>
26 <AlmBindingDefinitionBox
28 branchesEnabled={true}
32 "personalAccessToken": "asdf1234",
36 multipleDefinitions={false}
37 onCheck={[MockFunction]}
38 onDelete={[MockFunction]}
39 onEdit={[MockFunction]}
41 <AlmBindingDefinitionForm
45 "personalAccessToken": "asdf1234",
49 isSecondInstance={true}
50 onCancel={[MockFunction]}
51 onSubmit={[MockFunction]}
54 </AlmBindingDefinitionForm>
59 exports[`should render correctly for multi-ALM binding: loaded 1`] = `
61 className="big-padded"
67 className="spacer-bottom text-right"
69 <Connect(withAppState(CreationTooltip))
71 preventCreation={false}
74 data-test="settings__alm-create"
76 onClick={[MockFunction]}
78 settings.almintegration.create
80 </Connect(withAppState(CreationTooltip))>
82 <AlmBindingDefinitionBox
84 branchesEnabled={true}
88 "personalAccessToken": "asdf1234",
92 multipleDefinitions={false}
93 onCheck={[MockFunction]}
94 onDelete={[MockFunction]}
95 onEdit={[MockFunction]}
101 exports[`should render correctly for multi-ALM binding: loading ALM definitions 1`] = `
103 className="big-padded"
109 className="spacer-bottom text-right"
111 <Connect(withAppState(CreationTooltip))
113 preventCreation={false}
116 data-test="settings__alm-create"
118 onClick={[MockFunction]}
120 settings.almintegration.create
122 </Connect(withAppState(CreationTooltip))>
124 <AlmBindingDefinitionBox
126 branchesEnabled={true}
130 "personalAccessToken": "asdf1234",
134 multipleDefinitions={false}
135 onCheck={[MockFunction]}
136 onDelete={[MockFunction]}
137 onEdit={[MockFunction]}
143 exports[`should render correctly for multi-ALM binding: loading project count 1`] = `
145 className="big-padded"
151 className="spacer-bottom text-right"
153 <Connect(withAppState(CreationTooltip))
155 preventCreation={true}
158 data-test="settings__alm-create"
160 onClick={[MockFunction]}
162 settings.almintegration.create
164 </Connect(withAppState(CreationTooltip))>
166 <AlmBindingDefinitionBox
168 branchesEnabled={true}
172 "personalAccessToken": "asdf1234",
176 multipleDefinitions={false}
177 onCheck={[MockFunction]}
178 onDelete={[MockFunction]}
179 onEdit={[MockFunction]}
185 exports[`should render correctly for multi-ALM binding: submitting 1`] = `
187 className="big-padded"
193 className="spacer-bottom text-right"
195 <Connect(withAppState(CreationTooltip))
197 preventCreation={false}
200 data-test="settings__alm-create"
202 onClick={[MockFunction]}
204 settings.almintegration.create
206 </Connect(withAppState(CreationTooltip))>
208 <AlmBindingDefinitionBox
210 branchesEnabled={true}
214 "personalAccessToken": "asdf1234",
218 multipleDefinitions={false}
219 onCheck={[MockFunction]}
220 onDelete={[MockFunction]}
221 onEdit={[MockFunction]}
227 exports[`should render correctly for single-ALM binding 1`] = `
229 className="big-padded"
235 className="spacer-bottom text-right"
237 <Connect(withAppState(CreationTooltip))
239 preventCreation={true}
242 data-test="settings__alm-create"
244 onClick={[MockFunction]}
246 settings.almintegration.create
248 </Connect(withAppState(CreationTooltip))>
250 <AlmBindingDefinitionBox
252 branchesEnabled={true}
256 "personalAccessToken": "asdf1234",
260 multipleDefinitions={false}
261 onCheck={[MockFunction]}
262 onDelete={[MockFunction]}
263 onEdit={[MockFunction]}
269 exports[`should render correctly for single-ALM binding 2`] = `
271 className="big-padded"
277 className="spacer-bottom text-right"
279 <Connect(withAppState(CreationTooltip))
281 preventCreation={true}
284 data-test="settings__alm-create"
286 onClick={[MockFunction]}
288 settings.almintegration.create
290 </Connect(withAppState(CreationTooltip))>
292 <AlmBindingDefinitionBox
294 branchesEnabled={true}
298 "personalAccessToken": "asdf1234",
302 multipleDefinitions={false}
303 onCheck={[MockFunction]}
304 onDelete={[MockFunction]}
305 onEdit={[MockFunction]}
311 exports[`should render correctly for single-ALM binding 3`] = `
313 className="big-padded"
319 className="spacer-bottom text-right"
321 <Connect(withAppState(CreationTooltip))
323 preventCreation={true}
326 data-test="settings__alm-create"
328 onClick={[MockFunction]}
330 settings.almintegration.create
332 </Connect(withAppState(CreationTooltip))>
334 <AlmBindingDefinitionBox
336 branchesEnabled={true}
340 "personalAccessToken": "asdf1234",
344 multipleDefinitions={false}
345 onCheck={[MockFunction]}
346 onDelete={[MockFunction]}
347 onEdit={[MockFunction]}
353 exports[`should render correctly with validation 1`] = `
355 className="big-padded"
361 className="spacer-bottom text-right"
363 <Connect(withAppState(CreationTooltip))
365 preventCreation={false}
368 data-test="settings__alm-create"
370 onClick={[MockFunction]}
372 settings.almintegration.create
374 </Connect(withAppState(CreationTooltip))>
376 <AlmBindingDefinitionBox
378 branchesEnabled={true}
382 "clientId": "client1",
383 "clientSecret": "**clientsecret**",
385 "privateKey": "asdf1234",
386 "url": "http://github.enterprise.com",
390 multipleDefinitions={false}
391 onCheck={[MockFunction]}
392 onDelete={[MockFunction]}
393 onEdit={[MockFunction]}
399 exports[`should render correctly with validation: create a first 1`] = `
401 className="big-padded"
407 className="spacer-top"
409 settings.almintegration.empty.github
412 className="big-spacer-top"
414 <Connect(withAppState(CreationTooltip))
416 preventCreation={false}
419 data-test="settings__alm-create"
421 onClick={[MockFunction]}
423 settings.almintegration.create
425 </Connect(withAppState(CreationTooltip))>
427 <AlmBindingDefinitionForm
431 "clientId": "client1",
432 "clientSecret": "**clientsecret**",
434 "privateKey": "asdf1234",
435 "url": "http://github.enterprise.com",
439 isSecondInstance={false}
440 onCancel={[MockFunction]}
441 onSubmit={[MockFunction]}
444 </AlmBindingDefinitionForm>
449 exports[`should render correctly with validation: create a second 1`] = `
451 className="big-padded"
457 className="spacer-bottom text-right"
459 <Connect(withAppState(CreationTooltip))
461 preventCreation={false}
464 data-test="settings__alm-create"
466 onClick={[MockFunction]}
468 settings.almintegration.create
470 </Connect(withAppState(CreationTooltip))>
472 <AlmBindingDefinitionBox
474 branchesEnabled={true}
478 "clientId": "client1",
479 "clientSecret": "**clientsecret**",
481 "privateKey": "asdf1234",
482 "url": "http://github.enterprise.com",
486 multipleDefinitions={false}
487 onCheck={[MockFunction]}
488 onDelete={[MockFunction]}
489 onEdit={[MockFunction]}
491 <AlmBindingDefinitionForm
495 "clientId": "client1",
496 "clientSecret": "**clientsecret**",
498 "privateKey": "asdf1234",
499 "url": "http://github.enterprise.com",
503 isSecondInstance={true}
504 onCancel={[MockFunction]}
505 onSubmit={[MockFunction]}
508 </AlmBindingDefinitionForm>
513 exports[`should render correctly with validation: empty 1`] = `
515 className="big-padded"
521 className="spacer-top"
523 settings.almintegration.empty.github
526 className="big-spacer-top"
528 <Connect(withAppState(CreationTooltip))
530 preventCreation={false}
533 data-test="settings__alm-create"
535 onClick={[MockFunction]}
537 settings.almintegration.create
539 </Connect(withAppState(CreationTooltip))>