]> source.dussan.org Git - sonarqube.git/blob
64f7ac5fa045e6721435ad094fd05332c3a0927c
[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       onCreate={[MockFunction]}
31       onDelete={[MockFunction]}
32       onEdit={[MockFunction]}
33     />
34     <AlmBindingDefinitionForm
35       bindingDefinition={
36         Object {
37           "appId": "123456",
38           "key": "key",
39           "privateKey": "asdf1234",
40           "url": "http://github.enterprise.com",
41         }
42       }
43       help={
44         <FormattedMessage
45           defaultMessage="settings.almintegration.github.info"
46           id="settings.almintegration.github.info"
47           values={
48             Object {
49               "link": <Link
50                 onlyActiveOnIndex={false}
51                 style={Object {}}
52                 target="_blank"
53                 to="/documentation/analysis/pr-decoration/"
54               >
55                 learn_more
56               </Link>,
57             }
58           }
59         />
60       }
61       onCancel={[MockFunction]}
62       onSubmit={[MockFunction]}
63       showInModal={true}
64     >
65       <Component />
66     </AlmBindingDefinitionForm>
67   </DeferredSpinner>
68 </div>
69 `;
70
71 exports[`should render correctly for multi-ALM binding: loaded 1`] = `
72 <div
73   className="big-padded"
74 >
75   <DeferredSpinner
76     loading={false}
77     timeout={100}
78   >
79     <AlmBindingDefinitionsTable
80       additionalColumnsHeaders={
81         Array [
82           "url",
83           "app_id",
84         ]
85       }
86       alm="github"
87       definitions={
88         Array [
89           Object {
90             "additionalColumns": Array [
91               "http://github.enterprise.com",
92               "123456",
93             ],
94             "key": "key",
95           },
96         ]
97       }
98       onCreate={[MockFunction]}
99       onDelete={[MockFunction]}
100       onEdit={[MockFunction]}
101     />
102   </DeferredSpinner>
103 </div>
104 `;
105
106 exports[`should render correctly for multi-ALM binding: loading 1`] = `
107 <div
108   className="big-padded"
109 >
110   <DeferredSpinner
111     loading={true}
112     timeout={100}
113   >
114     <AlmBindingDefinitionsTable
115       additionalColumnsHeaders={
116         Array [
117           "url",
118           "app_id",
119         ]
120       }
121       alm="github"
122       definitions={
123         Array [
124           Object {
125             "additionalColumns": Array [
126               "http://github.enterprise.com",
127               "123456",
128             ],
129             "key": "key",
130           },
131         ]
132       }
133       onCreate={[MockFunction]}
134       onDelete={[MockFunction]}
135       onEdit={[MockFunction]}
136     />
137   </DeferredSpinner>
138 </div>
139 `;
140
141 exports[`should render correctly for multi-ALM binding: with features 1`] = `
142 <div
143   className="big-padded"
144 >
145   <DeferredSpinner
146     loading={false}
147     timeout={100}
148   >
149     <AlmBindingDefinitionsTable
150       additionalColumnsHeaders={
151         Array [
152           "url",
153           "app_id",
154         ]
155       }
156       alm="github"
157       definitions={
158         Array [
159           Object {
160             "additionalColumns": Array [
161               "http://github.enterprise.com",
162               "123456",
163             ],
164             "key": "key",
165           },
166         ]
167       }
168       onCreate={[MockFunction]}
169       onDelete={[MockFunction]}
170       onEdit={[MockFunction]}
171     />
172   </DeferredSpinner>
173   <div
174     className="big-spacer-top big-padded-top bordered-top"
175   >
176     <h3
177       className="big-spacer-bottom"
178     >
179       settings.almintegration.features
180     </h3>
181     <div
182       className="display-flex-wrap"
183     >
184       <AlmIntegrationFeatureBox
185         active={true}
186         description="Bar"
187         key="0"
188         name="Foo"
189       />
190       <AlmIntegrationFeatureBox
191         active={false}
192         description="Bim"
193         key="1"
194         name="Baz"
195       />
196     </div>
197   </div>
198 </div>
199 `;
200
201 exports[`should render correctly for single-ALM binding 1`] = `
202 <div
203   className="big-padded"
204 >
205   <AlmBindingDefinitionForm
206     bindingDefinition={
207       Object {
208         "appId": "123456",
209         "key": "key",
210         "privateKey": "asdf1234",
211         "url": "http://github.enterprise.com",
212       }
213     }
214     help={
215       <FormattedMessage
216         defaultMessage="settings.almintegration.github.info"
217         id="settings.almintegration.github.info"
218         values={
219           Object {
220             "link": <Link
221               onlyActiveOnIndex={false}
222               style={Object {}}
223               target="_blank"
224               to="/documentation/analysis/pr-decoration/"
225             >
226               learn_more
227             </Link>,
228           }
229         }
230       />
231     }
232     hideKeyField={true}
233     loading={true}
234     onCancel={[MockFunction]}
235     onDelete={[MockFunction]}
236     onEdit={[MockFunction]}
237     onSubmit={[MockFunction]}
238     readOnly={true}
239     success={false}
240   >
241     <Component />
242   </AlmBindingDefinitionForm>
243 </div>
244 `;
245
246 exports[`should render correctly for single-ALM binding 2`] = `
247 <div
248   className="big-padded"
249 >
250   <AlmBindingDefinitionForm
251     bindingDefinition={
252       Object {
253         "appId": "123456",
254         "key": "key",
255         "privateKey": "asdf1234",
256         "url": "http://github.enterprise.com",
257       }
258     }
259     help={
260       <FormattedMessage
261         defaultMessage="settings.almintegration.github.info"
262         id="settings.almintegration.github.info"
263         values={
264           Object {
265             "link": <Link
266               onlyActiveOnIndex={false}
267               style={Object {}}
268               target="_blank"
269               to="/documentation/analysis/pr-decoration/"
270             >
271               learn_more
272             </Link>,
273           }
274         }
275       />
276     }
277     hideKeyField={true}
278     loading={false}
279     onCancel={[MockFunction]}
280     onDelete={[MockFunction]}
281     onEdit={[MockFunction]}
282     onSubmit={[MockFunction]}
283     readOnly={true}
284     success={false}
285   >
286     <Component />
287   </AlmBindingDefinitionForm>
288 </div>
289 `;
290
291 exports[`should render correctly for single-ALM binding 3`] = `
292 <div
293   className="big-padded"
294 >
295   <AlmBindingDefinitionForm
296     bindingDefinition={
297       Object {
298         "appId": "123456",
299         "key": "key",
300         "privateKey": "asdf1234",
301         "url": "http://github.enterprise.com",
302       }
303     }
304     help={
305       <FormattedMessage
306         defaultMessage="settings.almintegration.github.info"
307         id="settings.almintegration.github.info"
308         values={
309           Object {
310             "link": <Link
311               onlyActiveOnIndex={false}
312               style={Object {}}
313               target="_blank"
314               to="/documentation/analysis/pr-decoration/"
315             >
316               learn_more
317             </Link>,
318           }
319         }
320       />
321     }
322     hideKeyField={true}
323     loading={false}
324     onCancel={[MockFunction]}
325     onDelete={[MockFunction]}
326     onEdit={[MockFunction]}
327     onSubmit={[MockFunction]}
328     readOnly={true}
329     success={false}
330   >
331     <Component />
332   </AlmBindingDefinitionForm>
333 </div>
334 `;