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