]> source.dussan.org Git - sonarqube.git/blob
c8399e96c85146b42a881962679fbb845b89a214
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: default 1`] = `
4 <div
5   className="boxed-group abs-width-600"
6 >
7   <div
8     className="boxed-group-inner"
9   >
10     <h2>
11       onboarding.create_project.pat_form.title.azure
12     </h2>
13     <div
14       className="big-spacer-top big-spacer-bottom"
15     >
16       <FormattedMessage
17         defaultMessage="onboarding.create_project.pat_help.instructions.azure"
18         id="onboarding.create_project.pat_help.instructions"
19         values={
20           Object {
21             "link": <a
22               className="link-with-icon"
23               href="http://www.example.com/_usersSettings/tokens"
24               rel="noopener noreferrer"
25               target="_blank"
26             >
27               <DetachIcon
28                 className="little-spacer-right"
29               />
30               <span>
31                 onboarding.create_project.pat_help.instructions.link.azure
32               </span>
33             </a>,
34             "scope": <strong>
35               <em>
36                 Code (Read & Write)
37               </em>
38             </strong>,
39           }
40         }
41       />
42     </div>
43     <form
44       onSubmit={[Function]}
45     >
46       <ValidationInput
47         error="onboarding.create_project.pat_form.pat_required"
48         id="personal_access_token"
49         isInvalid={false}
50         isValid={false}
51         label="onboarding.create_project.enter_pat"
52         required={true}
53       >
54         <input
55           autoFocus={true}
56           className="width-100 little-spacer-bottom"
57           id="personal_access_token"
58           minLength={1}
59           name="personal_access_token"
60           onChange={[Function]}
61           type="text"
62           value=""
63         />
64       </ValidationInput>
65       <SubmitButton
66         disabled={true}
67       >
68         onboarding.create_project.pat_form.list_repositories
69       </SubmitButton>
70       <DeferredSpinner
71         className="spacer-left"
72         loading={false}
73       />
74     </form>
75   </div>
76 </div>
77 `;
78
79 exports[`should render correctly: submitting 1`] = `
80 <div
81   className="boxed-group abs-width-600"
82 >
83   <div
84     className="boxed-group-inner"
85   >
86     <h2>
87       onboarding.create_project.pat_form.title.azure
88     </h2>
89     <div
90       className="big-spacer-top big-spacer-bottom"
91     >
92       <FormattedMessage
93         defaultMessage="onboarding.create_project.pat_help.instructions.azure"
94         id="onboarding.create_project.pat_help.instructions"
95         values={
96           Object {
97             "link": <a
98               className="link-with-icon"
99               href="http://www.example.com/_usersSettings/tokens"
100               rel="noopener noreferrer"
101               target="_blank"
102             >
103               <DetachIcon
104                 className="little-spacer-right"
105               />
106               <span>
107                 onboarding.create_project.pat_help.instructions.link.azure
108               </span>
109             </a>,
110             "scope": <strong>
111               <em>
112                 Code (Read & Write)
113               </em>
114             </strong>,
115           }
116         }
117       />
118     </div>
119     <form
120       onSubmit={[Function]}
121     >
122       <ValidationInput
123         error="onboarding.create_project.pat_form.pat_required"
124         id="personal_access_token"
125         isInvalid={false}
126         isValid={false}
127         label="onboarding.create_project.enter_pat"
128         required={true}
129       >
130         <input
131           autoFocus={true}
132           className="width-100 little-spacer-bottom"
133           id="personal_access_token"
134           minLength={1}
135           name="personal_access_token"
136           onChange={[Function]}
137           type="text"
138           value=""
139         />
140       </ValidationInput>
141       <SubmitButton
142         disabled={true}
143       >
144         onboarding.create_project.pat_form.list_repositories
145       </SubmitButton>
146       <DeferredSpinner
147         className="spacer-left"
148         loading={true}
149       />
150     </form>
151   </div>
152 </div>
153 `;
154
155 exports[`should render correctly: validation failed 1`] = `
156 <div
157   className="boxed-group abs-width-600"
158 >
159   <div
160     className="boxed-group-inner"
161   >
162     <h2>
163       onboarding.create_project.pat_form.title.azure
164     </h2>
165     <div
166       className="big-spacer-top big-spacer-bottom"
167     >
168       <FormattedMessage
169         defaultMessage="onboarding.create_project.pat_help.instructions.azure"
170         id="onboarding.create_project.pat_help.instructions"
171         values={
172           Object {
173             "link": <a
174               className="link-with-icon"
175               href="http://www.example.com/_usersSettings/tokens"
176               rel="noopener noreferrer"
177               target="_blank"
178             >
179               <DetachIcon
180                 className="little-spacer-right"
181               />
182               <span>
183                 onboarding.create_project.pat_help.instructions.link.azure
184               </span>
185             </a>,
186             "scope": <strong>
187               <em>
188                 Code (Read & Write)
189               </em>
190             </strong>,
191           }
192         }
193       />
194     </div>
195     <form
196       onSubmit={[Function]}
197     >
198       <ValidationInput
199         error="onboarding.create_project.pat_form.pat_required"
200         id="personal_access_token"
201         isInvalid={true}
202         isValid={false}
203         label="onboarding.create_project.enter_pat"
204         required={true}
205       >
206         <input
207           autoFocus={true}
208           className="width-100 little-spacer-bottom is-invalid"
209           id="personal_access_token"
210           minLength={1}
211           name="personal_access_token"
212           onChange={[Function]}
213           type="text"
214           value=""
215         />
216       </ValidationInput>
217       <SubmitButton
218         disabled={true}
219       >
220         onboarding.create_project.pat_form.list_repositories
221       </SubmitButton>
222       <DeferredSpinner
223         className="spacer-left"
224         loading={false}
225       />
226     </form>
227   </div>
228 </div>
229 `;