]> source.dussan.org Git - sonarqube.git/blob
12ac883046302bd875fae9d2cb532b72dfee52ab
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly for build tool cfamily 1`] = `
4 <div
5   className="boxed-group-inner"
6 >
7   <ol
8     className="list-styled"
9   >
10     <li>
11       onboarding.build
12       <RenderOptions
13         checked="cfamily"
14         name="buildtool"
15         onCheck={[Function]}
16         optionLabelKey="onboarding.build"
17         options={
18           Array [
19             "maven",
20             "gradle",
21             "dotnet",
22             "cfamily",
23             "other",
24           ]
25         }
26       />
27     </li>
28     <li
29       className="abs-width-600"
30     >
31       <FormattedMessage
32         defaultMessage="onboarding.tutorial.with.gitlab_ci.project_key.cfamily.step2"
33         id="onboarding.tutorial.with.gitlab_ci.project_key.cfamily.step2"
34         values={
35           Object {
36             "file": <React.Fragment>
37               <code
38                 className="rule"
39               >
40                 sonar-project.properties
41               </code>
42               <ClipboardIconButton
43                 className="little-spacer-left"
44                 copyValue="sonar-project.properties"
45               />
46             </React.Fragment>,
47           }
48         }
49       />
50       <CodeSnippet
51         snippet="sonar.projectKey=my-project
52 sonar.qualitygate.wait=true
53 "
54       />
55     </li>
56   </ol>
57   <Button
58     onClick={[MockFunction]}
59   >
60     continue
61   </Button>
62 </div>
63 `;
64
65 exports[`should render correctly for build tool dotnet 1`] = `
66 <div
67   className="boxed-group-inner"
68 >
69   <ol
70     className="list-styled"
71   >
72     <li>
73       onboarding.build
74       <RenderOptions
75         checked="dotnet"
76         name="buildtool"
77         onCheck={[Function]}
78         optionLabelKey="onboarding.build"
79         options={
80           Array [
81             "maven",
82             "gradle",
83             "dotnet",
84             "cfamily",
85             "other",
86           ]
87         }
88       />
89     </li>
90   </ol>
91   <Button
92     onClick={[MockFunction]}
93   >
94     continue
95   </Button>
96 </div>
97 `;
98
99 exports[`should render correctly for build tool gradle 1`] = `
100 <div
101   className="boxed-group-inner"
102 >
103   <ol
104     className="list-styled"
105   >
106     <li>
107       onboarding.build
108       <RenderOptions
109         checked="gradle"
110         name="buildtool"
111         onCheck={[Function]}
112         optionLabelKey="onboarding.build"
113         options={
114           Array [
115             "maven",
116             "gradle",
117             "dotnet",
118             "cfamily",
119             "other",
120           ]
121         }
122       />
123     </li>
124     <li
125       className="abs-width-600"
126     >
127       <FormattedMessage
128         defaultMessage="onboarding.tutorial.with.gitlab_ci.project_key.gradle.step2"
129         id="onboarding.tutorial.with.gitlab_ci.project_key.gradle.step2"
130         values={
131           Object {
132             "file": <React.Fragment>
133               <code
134                 className="rule"
135               >
136                 build.gradle
137               </code>
138               <ClipboardIconButton
139                 className="little-spacer-left"
140                 copyValue="build.gradle"
141               />
142             </React.Fragment>,
143           }
144         }
145       />
146       <CodeSnippet
147         snippet="plugins {
148   id \\"org.sonarqube\\" version \\"3.3\\"
149 }
150
151 sonarqube {
152   properties {
153     property \\"sonar.projectKey\\", \\"my-project\\"
154     property \\"sonar.qualitygate.wait\\", true 
155   }
156 }"
157       />
158     </li>
159   </ol>
160   <Button
161     onClick={[MockFunction]}
162   >
163     continue
164   </Button>
165 </div>
166 `;
167
168 exports[`should render correctly for build tool maven 1`] = `
169 <div
170   className="boxed-group-inner"
171 >
172   <ol
173     className="list-styled"
174   >
175     <li>
176       onboarding.build
177       <RenderOptions
178         checked="maven"
179         name="buildtool"
180         onCheck={[Function]}
181         optionLabelKey="onboarding.build"
182         options={
183           Array [
184             "maven",
185             "gradle",
186             "dotnet",
187             "cfamily",
188             "other",
189           ]
190         }
191       />
192     </li>
193     <li
194       className="abs-width-600"
195     >
196       <FormattedMessage
197         defaultMessage="onboarding.tutorial.with.gitlab_ci.project_key.maven.step2"
198         id="onboarding.tutorial.with.gitlab_ci.project_key.maven.step2"
199         values={
200           Object {
201             "file": <React.Fragment>
202               <code
203                 className="rule"
204               >
205                 pom.xml
206               </code>
207               <ClipboardIconButton
208                 className="little-spacer-left"
209                 copyValue="pom.xml"
210               />
211             </React.Fragment>,
212           }
213         }
214       />
215       <CodeSnippet
216         snippet="<properties>
217   <sonar.qualitygate.wait>true</sonar.qualitygate.wait>
218 </properties>"
219       />
220     </li>
221   </ol>
222   <Button
223     onClick={[MockFunction]}
224   >
225     continue
226   </Button>
227 </div>
228 `;
229
230 exports[`should render correctly for build tool other 1`] = `
231 <div
232   className="boxed-group-inner"
233 >
234   <ol
235     className="list-styled"
236   >
237     <li>
238       onboarding.build
239       <RenderOptions
240         checked="other"
241         name="buildtool"
242         onCheck={[Function]}
243         optionLabelKey="onboarding.build"
244         options={
245           Array [
246             "maven",
247             "gradle",
248             "dotnet",
249             "cfamily",
250             "other",
251           ]
252         }
253       />
254     </li>
255     <li
256       className="abs-width-600"
257     >
258       <FormattedMessage
259         defaultMessage="onboarding.tutorial.with.gitlab_ci.project_key.other.step2"
260         id="onboarding.tutorial.with.gitlab_ci.project_key.other.step2"
261         values={
262           Object {
263             "file": <React.Fragment>
264               <code
265                 className="rule"
266               >
267                 sonar-project.properties
268               </code>
269               <ClipboardIconButton
270                 className="little-spacer-left"
271                 copyValue="sonar-project.properties"
272               />
273             </React.Fragment>,
274           }
275         }
276       />
277       <CodeSnippet
278         snippet="sonar.projectKey=my-project
279 sonar.qualitygate.wait=true
280 "
281       />
282     </li>
283   </ol>
284   <Button
285     onClick={[MockFunction]}
286   >
287     continue
288   </Button>
289 </div>
290 `;
291
292 exports[`should render correctly if C is not available 1`] = `
293 <div
294   className="boxed-group-inner"
295 >
296   <ol
297     className="list-styled"
298   >
299     <li>
300       onboarding.build
301       <RenderOptions
302         name="buildtool"
303         onCheck={[Function]}
304         optionLabelKey="onboarding.build"
305         options={
306           Array [
307             "maven",
308             "gradle",
309             "dotnet",
310             "other",
311           ]
312         }
313       />
314     </li>
315   </ol>
316 </div>
317 `;
318
319 exports[`should render correctly: Step wrapper 1`] = `
320 <Step
321   finished={false}
322   onOpen={[MockFunction]}
323   open={true}
324   renderForm={[Function]}
325   stepNumber={1}
326   stepTitle="onboarding.tutorial.with.gitlab_ci.project_key.title"
327 />
328 `;
329
330 exports[`should render correctly: initial content 1`] = `
331 <div
332   className="boxed-group-inner"
333 >
334   <ol
335     className="list-styled"
336   >
337     <li>
338       onboarding.build
339       <RenderOptions
340         name="buildtool"
341         onCheck={[Function]}
342         optionLabelKey="onboarding.build"
343         options={
344           Array [
345             "maven",
346             "gradle",
347             "dotnet",
348             "cfamily",
349             "other",
350           ]
351         }
352       />
353     </li>
354   </ol>
355 </div>
356 `;