]> source.dussan.org Git - sonarqube.git/blob
63e43b920ea280cfc3875e5dc884a3969d19bb5b
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: default 1`] = `
4 <div
5   className="boxed-group-inner"
6 >
7   <p
8     className="big-spacer-bottom"
9   >
10     <FormattedMessage
11       defaultMessage="onboarding.tutorial.with.github_action.secret.intro"
12       id="onboarding.tutorial.with.github_action.secret.intro"
13       values={
14         Object {
15           "settings_secret": <strong>
16             onboarding.tutorial.with.github_action.secret.intro.link
17           </strong>,
18         }
19       }
20     />
21   </p>
22   <ol
23     className="list-styled"
24   >
25     <li>
26       <SentenceWithHighlights
27         highlightKeys={
28           Array [
29             "new_secret",
30           ]
31         }
32         translationKey="onboarding.tutorial.with.github_action.secret.new"
33       />
34     </li>
35     <li>
36       <SentenceWithHighlights
37         highlightKeys={
38           Array [
39             "name",
40           ]
41         }
42         translationKey="onboarding.tutorial.with.github_action.secret.name"
43       />
44       <code
45         className="rule little-spacer-left"
46       >
47         SONAR_TOKEN
48       </code>
49       <ClipboardIconButton
50         copyValue="SONAR_TOKEN"
51       />
52     </li>
53     <TokenStepGenerator
54       component={
55         Object {
56           "breadcrumbs": Array [],
57           "key": "my-project",
58           "name": "MyProject",
59           "qualifier": "TRK",
60           "qualityGate": Object {
61             "isDefault": true,
62             "key": "30",
63             "name": "Sonar way",
64           },
65           "qualityProfiles": Array [
66             Object {
67               "deleted": false,
68               "key": "my-qp",
69               "language": "ts",
70               "name": "Sonar way",
71             },
72           ],
73           "tags": Array [],
74         }
75       }
76       currentUser={
77         Object {
78           "groups": Array [],
79           "isLoggedIn": true,
80           "login": "luke",
81           "name": "Skywalker",
82           "scmAccounts": Array [],
83         }
84       }
85     />
86     <li>
87       <SentenceWithHighlights
88         highlightKeys={
89           Array [
90             "add_secret",
91           ]
92         }
93         translationKey="onboarding.tutorial.with.github_action.secret.add"
94       />
95     </li>
96   </ol>
97   <hr
98     className="no-horizontal-margins"
99   />
100   <ol
101     className="list-styled big-spacer-top big-spacer-bottom"
102   >
103     <li>
104       <SentenceWithHighlights
105         highlightKeys={
106           Array [
107             "new_secret",
108           ]
109         }
110         translationKey="onboarding.tutorial.with.github_action.secret.new"
111       />
112     </li>
113     <li>
114       <SentenceWithHighlights
115         highlightKeys={
116           Array [
117             "name",
118           ]
119         }
120         translationKey="onboarding.tutorial.with.github_action.secret.name"
121       />
122       <code
123         className="rule little-spacer-left"
124       >
125         SONAR_HOST_URL
126       </code>
127       <ClipboardIconButton
128         copyValue="SONAR_HOST_URL"
129       />
130     </li>
131     <li
132       className="big-spacer-bottom"
133     >
134       <FormattedMessage
135         defaultMessage="onboarding.tutorial.env_variables"
136         id="onboarding.tutorial.env_variables"
137         values={
138           Object {
139             "extra": <ClipboardIconButton
140               copyValue="test"
141             />,
142             "field": <strong>
143               onboarding.tutorial.env_variables.field
144             </strong>,
145             "value": <code
146               className="rule"
147             >
148               test
149             </code>,
150           }
151         }
152       />
153     </li>
154     <li>
155       <SentenceWithHighlights
156         highlightKeys={
157           Array [
158             "add_secret",
159           ]
160         }
161         translationKey="onboarding.tutorial.with.github_action.secret.add"
162       />
163     </li>
164   </ol>
165   <Button
166     onClick={[MockFunction]}
167   >
168     continue
169   </Button>
170 </div>
171 `;
172
173 exports[`should render correctly: with binding information 1`] = `
174 <div
175   className="boxed-group-inner"
176 >
177   <p
178     className="big-spacer-bottom"
179   >
180     <FormattedMessage
181       defaultMessage="onboarding.tutorial.with.github_action.secret.intro"
182       id="onboarding.tutorial.with.github_action.secret.intro"
183       values={
184         Object {
185           "settings_secret": <a
186             href="http://github.enterprise.com/PROJECT_KEY/settings/secrets"
187             rel="noopener noreferrer"
188             target="_blank"
189           >
190             onboarding.tutorial.with.github_action.secret.intro.link
191           </a>,
192         }
193       }
194     />
195   </p>
196   <ol
197     className="list-styled"
198   >
199     <li>
200       <SentenceWithHighlights
201         highlightKeys={
202           Array [
203             "new_secret",
204           ]
205         }
206         translationKey="onboarding.tutorial.with.github_action.secret.new"
207       />
208     </li>
209     <li>
210       <SentenceWithHighlights
211         highlightKeys={
212           Array [
213             "name",
214           ]
215         }
216         translationKey="onboarding.tutorial.with.github_action.secret.name"
217       />
218       <code
219         className="rule little-spacer-left"
220       >
221         SONAR_TOKEN
222       </code>
223       <ClipboardIconButton
224         copyValue="SONAR_TOKEN"
225       />
226     </li>
227     <TokenStepGenerator
228       component={
229         Object {
230           "breadcrumbs": Array [],
231           "key": "my-project",
232           "name": "MyProject",
233           "qualifier": "TRK",
234           "qualityGate": Object {
235             "isDefault": true,
236             "key": "30",
237             "name": "Sonar way",
238           },
239           "qualityProfiles": Array [
240             Object {
241               "deleted": false,
242               "key": "my-qp",
243               "language": "ts",
244               "name": "Sonar way",
245             },
246           ],
247           "tags": Array [],
248         }
249       }
250       currentUser={
251         Object {
252           "groups": Array [],
253           "isLoggedIn": true,
254           "login": "luke",
255           "name": "Skywalker",
256           "scmAccounts": Array [],
257         }
258       }
259     />
260     <li>
261       <SentenceWithHighlights
262         highlightKeys={
263           Array [
264             "add_secret",
265           ]
266         }
267         translationKey="onboarding.tutorial.with.github_action.secret.add"
268       />
269     </li>
270   </ol>
271   <hr
272     className="no-horizontal-margins"
273   />
274   <ol
275     className="list-styled big-spacer-top big-spacer-bottom"
276   >
277     <li>
278       <SentenceWithHighlights
279         highlightKeys={
280           Array [
281             "new_secret",
282           ]
283         }
284         translationKey="onboarding.tutorial.with.github_action.secret.new"
285       />
286     </li>
287     <li>
288       <SentenceWithHighlights
289         highlightKeys={
290           Array [
291             "name",
292           ]
293         }
294         translationKey="onboarding.tutorial.with.github_action.secret.name"
295       />
296       <code
297         className="rule little-spacer-left"
298       >
299         SONAR_HOST_URL
300       </code>
301       <ClipboardIconButton
302         copyValue="SONAR_HOST_URL"
303       />
304     </li>
305     <li
306       className="big-spacer-bottom"
307     >
308       <FormattedMessage
309         defaultMessage="onboarding.tutorial.env_variables"
310         id="onboarding.tutorial.env_variables"
311         values={
312           Object {
313             "extra": <ClipboardIconButton
314               copyValue="test"
315             />,
316             "field": <strong>
317               onboarding.tutorial.env_variables.field
318             </strong>,
319             "value": <code
320               className="rule"
321             >
322               test
323             </code>,
324           }
325         }
326       />
327     </li>
328     <li>
329       <SentenceWithHighlights
330         highlightKeys={
331           Array [
332             "add_secret",
333           ]
334         }
335         translationKey="onboarding.tutorial.with.github_action.secret.add"
336       />
337     </li>
338   </ol>
339   <Button
340     onClick={[MockFunction]}
341   >
342     continue
343   </Button>
344 </div>
345 `;