]> source.dussan.org Git - sonarqube.git/blob
86a76be9310a9ffa944b9c9b3352a605323ec12f
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render with auto personal organization bind page 1`] = `
4 <AlmApplicationInstalling
5   almKey="github"
6 />
7 `;
8
9 exports[`should render with auto personal organization bind page 2`] = `
10 <Fragment>
11   <HelmetWrapper
12     defer={true}
13     encodeSpecialCharacters={true}
14     title="onboarding.import_organization.personal.page.header"
15     titleTemplate="%s"
16   />
17   <div
18     className="sonarcloud page page-limited"
19   >
20     <header
21       className="page-header"
22     >
23       <h1
24         className="page-title big-spacer-bottom"
25       >
26         onboarding.import_organization.personal.page.header
27       </h1>
28     </header>
29     <AutoPersonalOrganizationBind
30       almApplication={
31         Object {
32           "backgroundColor": "blue",
33           "iconPath": "icon/path",
34           "installationUrl": "https://alm.installation.url",
35           "key": "github",
36           "name": "GitHub",
37         }
38       }
39       almInstallId="foo"
40       almOrganization={
41         Object {
42           "avatar": "my-avatar",
43           "key": "foo",
44           "name": "Foo",
45           "personal": true,
46         }
47       }
48       importPersonalOrg={
49         Object {
50           "actions": Object {
51             "admin": true,
52           },
53           "key": "foo",
54           "name": "Foo",
55         }
56       }
57       onOrgCreated={[Function]}
58       updateOrganization={[MockFunction]}
59       updateUrlQuery={[Function]}
60     />
61   </div>
62 </Fragment>
63 `;
64
65 exports[`should render with auto tab displayed 1`] = `
66 <Fragment>
67   <HelmetWrapper
68     defer={true}
69     encodeSpecialCharacters={true}
70     title="onboarding.create_organization.page.header"
71     titleTemplate="%s"
72   />
73   <div
74     className="sonarcloud page page-limited"
75   >
76     <header
77       className="page-header"
78     >
79       <h1
80         className="page-title big-spacer-bottom"
81       >
82         onboarding.create_organization.page.header
83       </h1>
84       <p
85         className="page-description"
86       >
87         <FormattedMessage
88           defaultMessage="onboarding.create_organization.page.description"
89           id="onboarding.create_organization.page.description"
90           values={
91             Object {
92               "break": <br />,
93               "more": <Link
94                 onlyActiveOnIndex={false}
95                 style={Object {}}
96                 target="_blank"
97                 to="/documentation/sonarcloud-pricing/"
98               >
99                 learn_more
100               </Link>,
101               "price": "billing.price_format.10",
102             }
103           }
104         />
105       </p>
106     </header>
107     <Tabs
108       onChange={[Function]}
109       selected="auto"
110       tabs={
111         Array [
112           Object {
113             "key": "auto",
114             "node": "onboarding.import_organization.github",
115           },
116           Object {
117             "key": "manual",
118             "node": "onboarding.create_organization.create_manually",
119           },
120         ]
121       }
122     />
123     <ManualOrganizationCreate
124       className="hidden"
125       createOrganization={[MockFunction]}
126       deleteOrganization={[MockFunction]}
127       onOrgCreated={[Function]}
128       subscriptionPlans={
129         Array [
130           Object {
131             "maxNcloc": 100000,
132             "price": 10,
133           },
134           Object {
135             "maxNcloc": 250000,
136             "price": 75,
137           },
138         ]
139       }
140     />
141     <AutoOrganizationCreate
142       almApplication={
143         Object {
144           "backgroundColor": "blue",
145           "iconPath": "icon/path",
146           "installationUrl": "https://alm.installation.url",
147           "key": "github",
148           "name": "GitHub",
149         }
150       }
151       almUnboundApplications={Array []}
152       className=""
153       createOrganization={[MockFunction]}
154       onOrgCreated={[Function]}
155       unboundOrganizations={
156         Array [
157           Object {
158             "actions": Object {
159               "admin": true,
160             },
161             "key": "foo",
162             "name": "Foo",
163           },
164         ]
165       }
166       updateUrlQuery={[Function]}
167     />
168   </div>
169 </Fragment>
170 `;
171
172 exports[`should render with auto tab selected and manual disabled 1`] = `
173 <AlmApplicationInstalling
174   almKey="github"
175 />
176 `;
177
178 exports[`should render with auto tab selected and manual disabled 2`] = `
179 <Fragment>
180   <HelmetWrapper
181     defer={true}
182     encodeSpecialCharacters={true}
183     title="onboarding.create_organization.page.header"
184     titleTemplate="%s"
185   />
186   <div
187     className="sonarcloud page page-limited"
188   >
189     <header
190       className="page-header"
191     >
192       <h1
193         className="page-title big-spacer-bottom"
194       >
195         onboarding.create_organization.page.header
196       </h1>
197       <p
198         className="page-description"
199       >
200         <FormattedMessage
201           defaultMessage="onboarding.create_organization.page.description"
202           id="onboarding.create_organization.page.description"
203           values={
204             Object {
205               "break": <br />,
206               "more": <Link
207                 onlyActiveOnIndex={false}
208                 style={Object {}}
209                 target="_blank"
210                 to="/documentation/sonarcloud-pricing/"
211               >
212                 learn_more
213               </Link>,
214               "price": "billing.price_format.10",
215             }
216           }
217         />
218       </p>
219     </header>
220     <Tabs
221       onChange={[Function]}
222       selected="auto"
223       tabs={
224         Array [
225           Object {
226             "key": "auto",
227             "node": "onboarding.import_organization.github",
228           },
229           Object {
230             "key": "manual",
231             "node": "onboarding.create_organization.create_manually",
232           },
233         ]
234       }
235     />
236     <ManualOrganizationCreate
237       className="hidden"
238       createOrganization={[MockFunction]}
239       deleteOrganization={[MockFunction]}
240       onOrgCreated={[Function]}
241       subscriptionPlans={
242         Array [
243           Object {
244             "maxNcloc": 100000,
245             "price": 10,
246           },
247           Object {
248             "maxNcloc": 250000,
249             "price": 75,
250           },
251         ]
252       }
253     />
254     <AutoOrganizationCreate
255       almApplication={
256         Object {
257           "backgroundColor": "blue",
258           "iconPath": "icon/path",
259           "installationUrl": "https://alm.installation.url",
260           "key": "github",
261           "name": "GitHub",
262         }
263       }
264       almInstallId="foo"
265       almOrganization={
266         Object {
267           "avatar": "my-avatar",
268           "description": "Continuous Code Quality",
269           "key": "sonarsource",
270           "name": "SonarSource",
271           "personal": false,
272           "url": "https://www.sonarsource.com",
273         }
274       }
275       almUnboundApplications={Array []}
276       className=""
277       createOrganization={[MockFunction]}
278       onOrgCreated={[Function]}
279       unboundOrganizations={
280         Array [
281           Object {
282             "actions": Object {
283               "admin": true,
284             },
285             "key": "foo",
286             "name": "Foo",
287           },
288         ]
289       }
290       updateUrlQuery={[Function]}
291     />
292   </div>
293 </Fragment>
294 `;
295
296 exports[`should render with manual tab displayed 1`] = `
297 <Fragment>
298   <HelmetWrapper
299     defer={true}
300     encodeSpecialCharacters={true}
301     title="onboarding.create_organization.page.header"
302     titleTemplate="%s"
303   />
304   <div
305     className="sonarcloud page page-limited"
306   >
307     <header
308       className="page-header"
309     >
310       <h1
311         className="page-title big-spacer-bottom"
312       >
313         onboarding.create_organization.page.header
314       </h1>
315       <p
316         className="page-description"
317       >
318         <FormattedMessage
319           defaultMessage="onboarding.create_organization.page.description"
320           id="onboarding.create_organization.page.description"
321           values={
322             Object {
323               "break": <br />,
324               "more": <Link
325                 onlyActiveOnIndex={false}
326                 style={Object {}}
327                 target="_blank"
328                 to="/documentation/sonarcloud-pricing/"
329               >
330                 learn_more
331               </Link>,
332               "price": "billing.price_format.10",
333             }
334           }
335         />
336       </p>
337     </header>
338     <ManualOrganizationCreate
339       className=""
340       createOrganization={[MockFunction]}
341       deleteOrganization={[MockFunction]}
342       onOrgCreated={[Function]}
343       subscriptionPlans={
344         Array [
345           Object {
346             "maxNcloc": 100000,
347             "price": 10,
348           },
349           Object {
350             "maxNcloc": 250000,
351             "price": 75,
352           },
353         ]
354       }
355     />
356   </div>
357 </Fragment>
358 `;
359
360 exports[`should switch tabs 1`] = `
361 <Fragment>
362   <HelmetWrapper
363     defer={true}
364     encodeSpecialCharacters={true}
365     title="onboarding.create_organization.page.header"
366     titleTemplate="%s"
367   />
368   <div
369     className="sonarcloud page page-limited"
370   >
371     <header
372       className="page-header"
373     >
374       <h1
375         className="page-title big-spacer-bottom"
376       >
377         onboarding.create_organization.page.header
378       </h1>
379       <p
380         className="page-description"
381       >
382         <FormattedMessage
383           defaultMessage="onboarding.create_organization.page.description"
384           id="onboarding.create_organization.page.description"
385           values={
386             Object {
387               "break": <br />,
388               "more": <Link
389                 onlyActiveOnIndex={false}
390                 style={Object {}}
391                 target="_blank"
392                 to="/documentation/sonarcloud-pricing/"
393               >
394                 learn_more
395               </Link>,
396               "price": "billing.price_format.10",
397             }
398           }
399         />
400       </p>
401     </header>
402     <Tabs
403       onChange={[Function]}
404       selected="auto"
405       tabs={
406         Array [
407           Object {
408             "key": "auto",
409             "node": "onboarding.import_organization.github",
410           },
411           Object {
412             "key": "manual",
413             "node": "onboarding.create_organization.create_manually",
414           },
415         ]
416       }
417     />
418     <ManualOrganizationCreate
419       className="hidden"
420       createOrganization={[MockFunction]}
421       deleteOrganization={[MockFunction]}
422       onOrgCreated={[Function]}
423       subscriptionPlans={
424         Array [
425           Object {
426             "maxNcloc": 100000,
427             "price": 10,
428           },
429           Object {
430             "maxNcloc": 250000,
431             "price": 75,
432           },
433         ]
434       }
435     />
436     <AutoOrganizationCreate
437       almApplication={
438         Object {
439           "backgroundColor": "blue",
440           "iconPath": "icon/path",
441           "installationUrl": "https://alm.installation.url",
442           "key": "github",
443           "name": "GitHub",
444         }
445       }
446       almUnboundApplications={Array []}
447       className=""
448       createOrganization={[MockFunction]}
449       onOrgCreated={[Function]}
450       unboundOrganizations={
451         Array [
452           Object {
453             "actions": Object {
454               "admin": true,
455             },
456             "key": "foo",
457             "name": "Foo",
458           },
459         ]
460       }
461       updateUrlQuery={[Function]}
462     />
463   </div>
464 </Fragment>
465 `;