]> source.dussan.org Git - sonarqube.git/blob
d8914665ebc61580ea5862650424a85c5d6dc4ab
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: bbc 1`] = `
4 <Fragment>
5   <div
6     className="display-flex-column"
7   >
8     <strong>
9       settings.almintegration.form.choose_bitbucket_variant
10     </strong>
11     <RadioToggle
12       className="little-spacer-top big-spacer-bottom"
13       disabled={false}
14       name="variant"
15       onCheck={[MockFunction]}
16       options={
17         Array [
18           Object {
19             "label": "Bitbucket Server",
20             "value": "bitbucket",
21           },
22           Object {
23             "label": "Bitbucket Cloud",
24             "value": "bitbucketcloud",
25           },
26         ]
27       }
28       value="bitbucketcloud"
29     />
30   </div>
31   <div
32     className="display-flex-start"
33   >
34     <div
35       className="flex-1"
36     >
37       <BitbucketCloudForm
38         formData={
39           Object {
40             "clientId": "client1",
41             "clientSecret": "**clientsecret**",
42             "key": "key",
43             "workspace": "workspace",
44           }
45         }
46         onFieldChange={[MockFunction]}
47       />
48     </div>
49     <Alert
50       className="huge-spacer-left flex-1"
51       variant="info"
52     >
53       <FormattedMessage
54         defaultMessage="settings.almintegration.bitbucketcloud.info"
55         id="settings.almintegration.bitbucketcloud.info"
56         values={
57           Object {
58             "link": <Link
59               onlyActiveOnIndex={false}
60               style={Object {}}
61               target="_blank"
62               to="/documentation/analysis/bitbucket-cloud-integration/"
63             >
64               learn_more
65             </Link>,
66           }
67         }
68       />
69     </Alert>
70   </div>
71 </Fragment>
72 `;
73
74 exports[`should render correctly: bbs 1`] = `
75 <Fragment>
76   <div
77     className="display-flex-column"
78   >
79     <strong>
80       settings.almintegration.form.choose_bitbucket_variant
81     </strong>
82     <RadioToggle
83       className="little-spacer-top big-spacer-bottom"
84       disabled={false}
85       name="variant"
86       onCheck={[MockFunction]}
87       options={
88         Array [
89           Object {
90             "label": "Bitbucket Server",
91             "value": "bitbucket",
92           },
93           Object {
94             "label": "Bitbucket Cloud",
95             "value": "bitbucketcloud",
96           },
97         ]
98       }
99       value="bitbucket"
100     />
101   </div>
102   <div
103     className="display-flex-start"
104   >
105     <div
106       className="flex-1"
107     >
108       <BitbucketServerForm
109         formData={
110           Object {
111             "key": "key",
112             "personalAccessToken": "asdf1234",
113             "url": "http://bbs.enterprise.com",
114           }
115         }
116         onFieldChange={[MockFunction]}
117       />
118     </div>
119     <Alert
120       className="huge-spacer-left flex-1"
121       variant="info"
122     >
123       <h3>
124         onboarding.create_project.pat_help.title
125       </h3>
126       <p
127         className="big-spacer-top"
128       >
129         settings.almintegration.bitbucket.help_1
130       </p>
131       <ul
132         className="big-spacer-top list-styled"
133       >
134         <li>
135           settings.almintegration.bitbucket.help_2
136         </li>
137         <li>
138           settings.almintegration.bitbucket.help_3
139         </li>
140       </ul>
141       <p
142         className="big-spacer-top big-spacer-bottom"
143       >
144         <Link
145           onlyActiveOnIndex={false}
146           style={Object {}}
147           target="_blank"
148           to="/documentation/analysis/bitbucket-integration/"
149         >
150           learn_more
151         </Link>
152       </p>
153     </Alert>
154   </div>
155 </Fragment>
156 `;
157
158 exports[`should render correctly: update bbc 1`] = `
159 <Fragment>
160   <div
161     className="display-flex-start"
162   >
163     <div
164       className="flex-1"
165     >
166       <BitbucketCloudForm
167         formData={
168           Object {
169             "clientId": "client1",
170             "clientSecret": "**clientsecret**",
171             "key": "key",
172             "workspace": "workspace",
173           }
174         }
175         onFieldChange={[MockFunction]}
176       />
177     </div>
178     <Alert
179       className="huge-spacer-left flex-1"
180       variant="info"
181     >
182       <FormattedMessage
183         defaultMessage="settings.almintegration.bitbucketcloud.info"
184         id="settings.almintegration.bitbucketcloud.info"
185         values={
186           Object {
187             "link": <Link
188               onlyActiveOnIndex={false}
189               style={Object {}}
190               target="_blank"
191               to="/documentation/analysis/bitbucket-cloud-integration/"
192             >
193               learn_more
194             </Link>,
195           }
196         }
197       />
198     </Alert>
199   </div>
200 </Fragment>
201 `;
202
203 exports[`should render correctly: update bbs 1`] = `
204 <Fragment>
205   <div
206     className="display-flex-start"
207   >
208     <div
209       className="flex-1"
210     >
211       <BitbucketServerForm
212         formData={
213           Object {
214             "key": "key",
215             "personalAccessToken": "asdf1234",
216             "url": "http://bbs.enterprise.com",
217           }
218         }
219         onFieldChange={[MockFunction]}
220       />
221     </div>
222     <Alert
223       className="huge-spacer-left flex-1"
224       variant="info"
225     >
226       <h3>
227         onboarding.create_project.pat_help.title
228       </h3>
229       <p
230         className="big-spacer-top"
231       >
232         settings.almintegration.bitbucket.help_1
233       </p>
234       <ul
235         className="big-spacer-top list-styled"
236       >
237         <li>
238           settings.almintegration.bitbucket.help_2
239         </li>
240         <li>
241           settings.almintegration.bitbucket.help_3
242         </li>
243       </ul>
244       <p
245         className="big-spacer-top big-spacer-bottom"
246       >
247         <Link
248           onlyActiveOnIndex={false}
249           style={Object {}}
250           target="_blank"
251           to="/documentation/analysis/bitbucket-integration/"
252         >
253           learn_more
254         </Link>
255       </p>
256     </Alert>
257   </div>
258 </Fragment>
259 `;