You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ProjectKeyStep-test.tsx.snap 7.2KB

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