]> source.dussan.org Git - sonarqube.git/blob
18a3bf5e37b59bc3a662ce8f703b05f72accd011
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: default 1`] = `
4 <div
5   className="display-flex-start"
6 >
7   <form
8     onSubmit={[Function]}
9   >
10     <h2
11       className="big"
12     >
13       onboarding.create_project.grant_access_to_bbs.title
14     </h2>
15     <p
16       className="big-spacer-top big-spacer-bottom"
17     >
18       onboarding.create_project.grant_access_to_bbs.help
19     </p>
20     <ValidationInput
21       id="personal_access_token"
22       isInvalid={false}
23       isValid={false}
24       label="onboarding.create_project.enter_pat"
25       required={true}
26     >
27       <input
28         autoFocus={true}
29         className="input-super-large"
30         id="personal_access_token"
31         minLength={1}
32         name="personal_access_token"
33         onChange={[Function]}
34         type="text"
35       />
36     </ValidationInput>
37     <SubmitButton
38       disabled={true}
39     >
40       save
41     </SubmitButton>
42     <DeferredSpinner
43       className="spacer-left"
44       loading={false}
45       timeout={100}
46     />
47   </form>
48   <Alert
49     className="big-spacer-left big-spacer-top"
50     display="block"
51     variant="info"
52   >
53     <h3>
54       onboarding.create_project.pat_help.title
55     </h3>
56     <p
57       className="big-spacer-top big-spacer-bottom"
58     >
59       onboarding.create_project.pat_help.bbs_help_1
60     </p>
61     <div
62       className="text-middle"
63     >
64       <img
65         alt=""
66         className="spacer-right"
67         height="16"
68         src="/images/alm/bitbucket.svg"
69       />
70       <a
71         href="http://www.example.com/plugins/servlet/access-tokens/add"
72         rel="noopener noreferrer"
73         target="_blank"
74       >
75         onboarding.create_project.pat_help.link
76       </a>
77     </div>
78     <p
79       className="big-spacer-top big-spacer-bottom"
80     >
81       onboarding.create_project.pat_help.bbs_help_2
82     </p>
83     <ul>
84       <li>
85         <FormattedMessage
86           defaultMessage="onboarding.create_project.pat_help.bbs_permission_projects"
87           id="onboarding.create_project.pat_help.bbs_permission_projects"
88           values={
89             Object {
90               "perm": <strong>
91                 onboarding.create_project.pat_help.read_permission
92               </strong>,
93             }
94           }
95         />
96       </li>
97       <li>
98         <FormattedMessage
99           defaultMessage="onboarding.create_project.pat_help.bbs_permission_repos"
100           id="onboarding.create_project.pat_help.bbs_permission_repos"
101           values={
102             Object {
103               "perm": <strong>
104                 onboarding.create_project.pat_help.read_permission
105               </strong>,
106             }
107           }
108         />
109       </li>
110     </ul>
111   </Alert>
112 </div>
113 `;
114
115 exports[`should render correctly: submitting 1`] = `
116 <div
117   className="display-flex-start"
118 >
119   <form
120     onSubmit={[Function]}
121   >
122     <h2
123       className="big"
124     >
125       onboarding.create_project.grant_access_to_bbs.title
126     </h2>
127     <p
128       className="big-spacer-top big-spacer-bottom"
129     >
130       onboarding.create_project.grant_access_to_bbs.help
131     </p>
132     <ValidationInput
133       id="personal_access_token"
134       isInvalid={false}
135       isValid={false}
136       label="onboarding.create_project.enter_pat"
137       required={true}
138     >
139       <input
140         autoFocus={true}
141         className="input-super-large"
142         id="personal_access_token"
143         minLength={1}
144         name="personal_access_token"
145         onChange={[Function]}
146         type="text"
147       />
148     </ValidationInput>
149     <SubmitButton
150       disabled={true}
151     >
152       save
153     </SubmitButton>
154     <DeferredSpinner
155       className="spacer-left"
156       loading={true}
157       timeout={100}
158     />
159   </form>
160   <Alert
161     className="big-spacer-left big-spacer-top"
162     display="block"
163     variant="info"
164   >
165     <h3>
166       onboarding.create_project.pat_help.title
167     </h3>
168     <p
169       className="big-spacer-top big-spacer-bottom"
170     >
171       onboarding.create_project.pat_help.bbs_help_1
172     </p>
173     <div
174       className="text-middle"
175     >
176       <img
177         alt=""
178         className="spacer-right"
179         height="16"
180         src="/images/alm/bitbucket.svg"
181       />
182       <a
183         href="http://www.example.com/plugins/servlet/access-tokens/add"
184         rel="noopener noreferrer"
185         target="_blank"
186       >
187         onboarding.create_project.pat_help.link
188       </a>
189     </div>
190     <p
191       className="big-spacer-top big-spacer-bottom"
192     >
193       onboarding.create_project.pat_help.bbs_help_2
194     </p>
195     <ul>
196       <li>
197         <FormattedMessage
198           defaultMessage="onboarding.create_project.pat_help.bbs_permission_projects"
199           id="onboarding.create_project.pat_help.bbs_permission_projects"
200           values={
201             Object {
202               "perm": <strong>
203                 onboarding.create_project.pat_help.read_permission
204               </strong>,
205             }
206           }
207         />
208       </li>
209       <li>
210         <FormattedMessage
211           defaultMessage="onboarding.create_project.pat_help.bbs_permission_repos"
212           id="onboarding.create_project.pat_help.bbs_permission_repos"
213           values={
214             Object {
215               "perm": <strong>
216                 onboarding.create_project.pat_help.read_permission
217               </strong>,
218             }
219           }
220         />
221       </li>
222     </ul>
223   </Alert>
224 </div>
225 `;
226
227 exports[`should render correctly: validation failed 1`] = `
228 <div
229   className="display-flex-start"
230 >
231   <form
232     onSubmit={[Function]}
233   >
234     <h2
235       className="big"
236     >
237       onboarding.create_project.grant_access_to_bbs.title
238     </h2>
239     <p
240       className="big-spacer-top big-spacer-bottom"
241     >
242       onboarding.create_project.grant_access_to_bbs.help
243     </p>
244     <ValidationInput
245       error="onboarding.create_project.pat_incorrect"
246       id="personal_access_token"
247       isInvalid={true}
248       isValid={false}
249       label="onboarding.create_project.enter_pat"
250       required={true}
251     >
252       <input
253         autoFocus={true}
254         className="input-super-large is-invalid"
255         id="personal_access_token"
256         minLength={1}
257         name="personal_access_token"
258         onChange={[Function]}
259         type="text"
260       />
261     </ValidationInput>
262     <SubmitButton
263       disabled={true}
264     >
265       save
266     </SubmitButton>
267     <DeferredSpinner
268       className="spacer-left"
269       loading={false}
270       timeout={100}
271     />
272   </form>
273   <Alert
274     className="big-spacer-left big-spacer-top"
275     display="block"
276     variant="info"
277   >
278     <h3>
279       onboarding.create_project.pat_help.title
280     </h3>
281     <p
282       className="big-spacer-top big-spacer-bottom"
283     >
284       onboarding.create_project.pat_help.bbs_help_1
285     </p>
286     <div
287       className="text-middle"
288     >
289       <img
290         alt=""
291         className="spacer-right"
292         height="16"
293         src="/images/alm/bitbucket.svg"
294       />
295       <a
296         href="http://www.example.com/plugins/servlet/access-tokens/add"
297         rel="noopener noreferrer"
298         target="_blank"
299       >
300         onboarding.create_project.pat_help.link
301       </a>
302     </div>
303     <p
304       className="big-spacer-top big-spacer-bottom"
305     >
306       onboarding.create_project.pat_help.bbs_help_2
307     </p>
308     <ul>
309       <li>
310         <FormattedMessage
311           defaultMessage="onboarding.create_project.pat_help.bbs_permission_projects"
312           id="onboarding.create_project.pat_help.bbs_permission_projects"
313           values={
314             Object {
315               "perm": <strong>
316                 onboarding.create_project.pat_help.read_permission
317               </strong>,
318             }
319           }
320         />
321       </li>
322       <li>
323         <FormattedMessage
324           defaultMessage="onboarding.create_project.pat_help.bbs_permission_repos"
325           id="onboarding.create_project.pat_help.bbs_permission_repos"
326           values={
327             Object {
328               "perm": <strong>
329                 onboarding.create_project.pat_help.read_permission
330               </strong>,
331             }
332           }
333         />
334       </li>
335     </ul>
336   </Alert>
337 </div>
338 `;