]> source.dussan.org Git - sonarqube.git/blob
b1e3b8e57c28bb053e33ddeb073a93d40445fb1c
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly for build tool gradle 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="gradle"
14         name="buildtool"
15         onCheck={[Function]}
16         optionLabelKey="onboarding.build"
17         options={
18           Array [
19             "maven",
20             "gradle",
21             "other",
22           ]
23         }
24       />
25     </li>
26     <li
27       className="abs-width-600"
28     >
29       <FormattedMessage
30         defaultMessage="onboarding.tutorial.with.gitlab_ci.project_key.gradle.step2"
31         id="onboarding.tutorial.with.gitlab_ci.project_key.gradle.step2"
32         values={
33           Object {
34             "file": <React.Fragment>
35               <code
36                 className="rule"
37               >
38                 build.gradle
39               </code>
40               <ClipboardIconButton
41                 className="little-spacer-left"
42                 copyValue="build.gradle"
43               />
44             </React.Fragment>,
45           }
46         }
47       />
48       <CodeSnippet
49         snippet="plugins {
50   id \\"org.sonarqube\\" version \\"3.0\\"
51 }
52
53 sonarqube {
54   properties {
55     property \\"sonar.projectKey\\", \\"my-project\\"
56     property \\"sonar.qualitygate.wait\\", true 
57   }
58 }"
59       />
60     </li>
61   </ol>
62   <Button
63     onClick={[MockFunction]}
64   >
65     continue
66   </Button>
67 </div>
68 `;
69
70 exports[`should render correctly for build tool maven 1`] = `
71 <div
72   className="boxed-group-inner"
73 >
74   <ol
75     className="list-styled"
76   >
77     <li>
78       onboarding.build
79       <RenderOptions
80         checked="maven"
81         name="buildtool"
82         onCheck={[Function]}
83         optionLabelKey="onboarding.build"
84         options={
85           Array [
86             "maven",
87             "gradle",
88             "other",
89           ]
90         }
91       />
92     </li>
93     <li
94       className="abs-width-600"
95     >
96       <FormattedMessage
97         defaultMessage="onboarding.tutorial.with.gitlab_ci.project_key.maven.step2"
98         id="onboarding.tutorial.with.gitlab_ci.project_key.maven.step2"
99         values={
100           Object {
101             "file": <React.Fragment>
102               <code
103                 className="rule"
104               >
105                 pom.xml
106               </code>
107               <ClipboardIconButton
108                 className="little-spacer-left"
109                 copyValue="pom.xml"
110               />
111             </React.Fragment>,
112           }
113         }
114       />
115       <CodeSnippet
116         snippet="<properties>
117   <sonar.projectKey>my-project</sonar.projectKey>
118   <sonar.qualitygate.wait>true</sonar.qualitygate.wait>
119 </properties>"
120       />
121     </li>
122   </ol>
123   <Button
124     onClick={[MockFunction]}
125   >
126     continue
127   </Button>
128 </div>
129 `;
130
131 exports[`should render correctly for build tool other 1`] = `
132 <div
133   className="boxed-group-inner"
134 >
135   <ol
136     className="list-styled"
137   >
138     <li>
139       onboarding.build
140       <RenderOptions
141         checked="other"
142         name="buildtool"
143         onCheck={[Function]}
144         optionLabelKey="onboarding.build"
145         options={
146           Array [
147             "maven",
148             "gradle",
149             "other",
150           ]
151         }
152       />
153     </li>
154     <li
155       className="abs-width-600"
156     >
157       <FormattedMessage
158         defaultMessage="onboarding.tutorial.with.gitlab_ci.project_key.other.step2"
159         id="onboarding.tutorial.with.gitlab_ci.project_key.other.step2"
160         values={
161           Object {
162             "file": <React.Fragment>
163               <code
164                 className="rule"
165               >
166                 sonar-project.properties
167               </code>
168               <ClipboardIconButton
169                 className="little-spacer-left"
170                 copyValue="sonar-project.properties"
171               />
172             </React.Fragment>,
173           }
174         }
175       />
176       <CodeSnippet
177         snippet="sonar.projectKey=my-project
178 sonar.qualitygate.wait=true
179 "
180       />
181     </li>
182   </ol>
183   <Button
184     onClick={[MockFunction]}
185   >
186     continue
187   </Button>
188 </div>
189 `;
190
191 exports[`should render correctly: Step wrapper 1`] = `
192 <Step
193   finished={false}
194   onOpen={[MockFunction]}
195   open={true}
196   renderForm={[Function]}
197   stepNumber={1}
198   stepTitle="onboarding.tutorial.with.gitlab_ci.project_key.title"
199 />
200 `;
201
202 exports[`should render correctly: initial content 1`] = `
203 <div
204   className="boxed-group-inner"
205 >
206   <ol
207     className="list-styled"
208   >
209     <li>
210       onboarding.build
211       <RenderOptions
212         name="buildtool"
213         onCheck={[Function]}
214         optionLabelKey="onboarding.build"
215         options={
216           Array [
217             "maven",
218             "gradle",
219             "other",
220           ]
221         }
222       />
223     </li>
224   </ol>
225 </div>
226 `;