]> source.dussan.org Git - sonarqube.git/blob
0b37d9683d22da3cb65ad9ed2ec8c21d025d58e1
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: default 1`] = `
4 <div
5   className="settings-definition"
6 >
7   <div
8     className="settings-definition-left"
9   >
10     <label
11       className="h3"
12       htmlFor="key"
13     >
14       settings.almintegration.form.key
15     </label>
16     <MandatoryFieldMarker />
17   </div>
18   <div
19     className="settings-definition-right big-padded-top display-flex-column"
20   >
21     <ValidationInput
22       errorPlacement={1}
23       isInvalid={false}
24       isValid={false}
25     >
26       <input
27         className="width-100"
28         id="key"
29         maxLength={40}
30         name="key"
31         onChange={[Function]}
32         size={50}
33         type="text"
34         value="key"
35       />
36     </ValidationInput>
37   </div>
38 </div>
39 `;
40
41 exports[`should render correctly: encryptable 1`] = `
42 <div
43   className="settings-definition"
44 >
45   <div
46     className="settings-definition-left"
47   >
48     <label
49       className="h3"
50       htmlFor="key"
51     >
52       settings.almintegration.form.key
53     </label>
54     <MandatoryFieldMarker />
55   </div>
56   <div
57     className="settings-definition-right big-padded-top display-flex-column"
58   >
59     <ValidationInput
60       errorPlacement={1}
61       isInvalid={false}
62       isValid={false}
63     >
64       <input
65         className="width-100"
66         id="key"
67         maxLength={40}
68         name="key"
69         onChange={[Function]}
70         size={50}
71         type="text"
72         value="key"
73       />
74     </ValidationInput>
75     <Alert
76       className="spacer-top"
77       variant="info"
78     >
79       <FormattedMessage
80         defaultMessage="settings.almintegration.form.secret.can_encrypt"
81         id="settings.almintegration.form.secret.can_encrypt"
82         values={
83           Object {
84             "learn_more": <Link
85               target="_blank"
86               to={
87                 Object {
88                   "pathname": "/documentation/instance-administration/security/#settings-encryption",
89                 }
90               }
91             >
92               learn_more
93             </Link>,
94           }
95         }
96       />
97     </Alert>
98   </div>
99 </div>
100 `;
101
102 exports[`should render correctly: invalid with error 1`] = `
103 <div
104   className="settings-definition"
105 >
106   <div
107     className="settings-definition-left"
108   >
109     <label
110       className="h3"
111       htmlFor="key"
112     >
113       settings.almintegration.form.key
114     </label>
115     <MandatoryFieldMarker />
116   </div>
117   <div
118     className="settings-definition-right big-padded-top display-flex-column"
119   >
120     <ValidationInput
121       error="some error message"
122       errorPlacement={1}
123       isInvalid={true}
124       isValid={false}
125     >
126       <input
127         className="width-100"
128         id="key"
129         maxLength={40}
130         name="key"
131         onChange={[Function]}
132         size={50}
133         type="text"
134         value="key"
135       />
136     </ValidationInput>
137   </div>
138 </div>
139 `;
140
141 exports[`should render correctly: optional 1`] = `
142 <div
143   className="settings-definition"
144 >
145   <div
146     className="settings-definition-left"
147   >
148     <label
149       className="h3"
150       htmlFor="key"
151     >
152       settings.almintegration.form.key
153     </label>
154   </div>
155   <div
156     className="settings-definition-right big-padded-top display-flex-column"
157   >
158     <ValidationInput
159       errorPlacement={1}
160       isInvalid={false}
161       isValid={false}
162     >
163       <input
164         className="width-100"
165         id="key"
166         maxLength={40}
167         name="key"
168         onChange={[Function]}
169         size={50}
170         type="text"
171         value="key"
172       />
173     </ValidationInput>
174   </div>
175 </div>
176 `;
177
178 exports[`should render correctly: secret 1`] = `
179 <div
180   className="settings-definition"
181 >
182   <div
183     className="settings-definition-left"
184   >
185     <label
186       className="h3"
187       htmlFor="key"
188     >
189       settings.almintegration.form.key
190     </label>
191     <MandatoryFieldMarker />
192   </div>
193   <div
194     className="settings-definition-right big-padded-top display-flex-column"
195   >
196     <div>
197       <p>
198         settings.almintegration.form.secret.field
199       </p>
200       <ButtonLink
201         onClick={[Function]}
202       >
203         settings.almintegration.form.secret.update_field
204       </ButtonLink>
205     </div>
206   </div>
207 </div>
208 `;
209
210 exports[`should render correctly: textarea 1`] = `
211 <div
212   className="settings-definition"
213 >
214   <div
215     className="settings-definition-left"
216   >
217     <label
218       className="h3"
219       htmlFor="key"
220     >
221       settings.almintegration.form.key
222     </label>
223     <MandatoryFieldMarker />
224   </div>
225   <div
226     className="settings-definition-right big-padded-top display-flex-column"
227   >
228     <textarea
229       className="width-100"
230       id="key"
231       maxLength={40}
232       onChange={[Function]}
233       required={true}
234       rows={5}
235       value="key"
236     />
237   </div>
238 </div>
239 `;
240
241 exports[`should render correctly: with help 1`] = `
242 <div
243   className="settings-definition"
244 >
245   <div
246     className="settings-definition-left"
247   >
248     <label
249       className="h3"
250       htmlFor="key"
251     >
252       settings.almintegration.form.key
253     </label>
254     <MandatoryFieldMarker />
255     <div
256       className="markdown small spacer-top"
257     >
258       help
259     </div>
260   </div>
261   <div
262     className="settings-definition-right big-padded-top display-flex-column"
263   >
264     <ValidationInput
265       errorPlacement={1}
266       isInvalid={false}
267       isValid={false}
268     >
269       <input
270         className="width-100"
271         id="key"
272         maxLength={40}
273         name="key"
274         onChange={[Function]}
275         size={50}
276         type="text"
277         value="key"
278       />
279     </ValidationInput>
280   </div>
281 </div>
282 `;