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.

BulkChangeModal-test.tsx.snap 6.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`should render correctly: deactivate action 1`] = `
  3. <Modal
  4. contentLabel="coding_rules.deactivate_in_quality_profile (42 coding_rules._rules)"
  5. onRequestClose={[MockFunction]}
  6. size="small"
  7. >
  8. <form
  9. onSubmit={[Function]}
  10. >
  11. <header
  12. className="modal-head"
  13. >
  14. <h2>
  15. coding_rules.deactivate_in_quality_profile (42 coding_rules._rules)
  16. </h2>
  17. </header>
  18. <div
  19. className="modal-body"
  20. >
  21. <div
  22. className="modal-field"
  23. >
  24. <h3>
  25. <label
  26. htmlFor="coding-rules-bulk-change-profile"
  27. >
  28. coding_rules.deactivate_in
  29. </label>
  30. </h3>
  31. <span>
  32. name
  33. are_you_sure
  34. </span>
  35. </div>
  36. </div>
  37. <footer
  38. className="modal-foot"
  39. >
  40. <SubmitButton
  41. disabled={false}
  42. id="coding-rules-submit-bulk-change"
  43. >
  44. apply
  45. </SubmitButton>
  46. <ResetButtonLink
  47. onClick={[MockFunction]}
  48. >
  49. cancel
  50. </ResetButtonLink>
  51. </footer>
  52. </form>
  53. </Modal>
  54. `;
  55. exports[`should render correctly: default 1`] = `
  56. <Modal
  57. contentLabel="coding_rules.activate_in_quality_profile (42 coding_rules._rules)"
  58. onRequestClose={[MockFunction]}
  59. size="small"
  60. >
  61. <form
  62. onSubmit={[Function]}
  63. >
  64. <header
  65. className="modal-head"
  66. >
  67. <h2>
  68. coding_rules.activate_in_quality_profile (42 coding_rules._rules)
  69. </h2>
  70. </header>
  71. <div
  72. className="modal-body"
  73. >
  74. <div
  75. className="modal-field"
  76. >
  77. <h3>
  78. <label
  79. htmlFor="coding-rules-bulk-change-profile"
  80. >
  81. coding_rules.activate_in
  82. </label>
  83. </h3>
  84. <span>
  85. name
  86. are_you_sure
  87. </span>
  88. </div>
  89. </div>
  90. <footer
  91. className="modal-foot"
  92. >
  93. <SubmitButton
  94. disabled={false}
  95. id="coding-rules-submit-bulk-change"
  96. >
  97. apply
  98. </SubmitButton>
  99. <ResetButtonLink
  100. onClick={[MockFunction]}
  101. >
  102. cancel
  103. </ResetButtonLink>
  104. </footer>
  105. </form>
  106. </Modal>
  107. `;
  108. exports[`should render correctly: finished 1`] = `
  109. <Modal
  110. contentLabel="coding_rules.activate_in_quality_profile (42 coding_rules._rules)"
  111. onRequestClose={[MockFunction]}
  112. size="small"
  113. >
  114. <form
  115. onSubmit={[Function]}
  116. >
  117. <header
  118. className="modal-head"
  119. >
  120. <h2>
  121. coding_rules.activate_in_quality_profile (42 coding_rules._rules)
  122. </h2>
  123. </header>
  124. <div
  125. className="modal-body"
  126. />
  127. <footer
  128. className="modal-foot"
  129. >
  130. <ResetButtonLink
  131. onClick={[MockFunction]}
  132. >
  133. close
  134. </ResetButtonLink>
  135. </footer>
  136. </form>
  137. </Modal>
  138. `;
  139. exports[`should render correctly: no profile pre-selected 1`] = `
  140. <Modal
  141. contentLabel="coding_rules.activate_in_quality_profile (42 coding_rules._rules)"
  142. onRequestClose={[MockFunction]}
  143. size="small"
  144. >
  145. <form
  146. onSubmit={[Function]}
  147. >
  148. <header
  149. className="modal-head"
  150. >
  151. <h2>
  152. coding_rules.activate_in_quality_profile (42 coding_rules._rules)
  153. </h2>
  154. </header>
  155. <div
  156. className="modal-body"
  157. >
  158. <div
  159. className="modal-field"
  160. >
  161. <h3>
  162. <label
  163. htmlFor="coding-rules-bulk-change-profile"
  164. >
  165. coding_rules.activate_in
  166. </label>
  167. </h3>
  168. <Select
  169. multi={true}
  170. onChange={[Function]}
  171. options={Array []}
  172. value={Array []}
  173. />
  174. </div>
  175. </div>
  176. <footer
  177. className="modal-foot"
  178. >
  179. <SubmitButton
  180. disabled={false}
  181. id="coding-rules-submit-bulk-change"
  182. >
  183. apply
  184. </SubmitButton>
  185. <ResetButtonLink
  186. onClick={[MockFunction]}
  187. >
  188. cancel
  189. </ResetButtonLink>
  190. </footer>
  191. </form>
  192. </Modal>
  193. `;
  194. exports[`should render correctly: results 1`] = `
  195. <Modal
  196. contentLabel="coding_rules.activate_in_quality_profile (42 coding_rules._rules)"
  197. onRequestClose={[MockFunction]}
  198. size="small"
  199. >
  200. <form
  201. onSubmit={[Function]}
  202. >
  203. <header
  204. className="modal-head"
  205. >
  206. <h2>
  207. coding_rules.activate_in_quality_profile (42 coding_rules._rules)
  208. </h2>
  209. </header>
  210. <div
  211. className="modal-body"
  212. >
  213. <Alert
  214. key="foo"
  215. variant="warning"
  216. >
  217. coding_rules.bulk_change.warning.name.CSS.0.2
  218. </Alert>
  219. <Alert
  220. key="bar"
  221. variant="success"
  222. >
  223. coding_rules.bulk_change.success.name.CSS.2
  224. </Alert>
  225. <div
  226. className="modal-field"
  227. >
  228. <h3>
  229. <label
  230. htmlFor="coding-rules-bulk-change-profile"
  231. >
  232. coding_rules.activate_in
  233. </label>
  234. </h3>
  235. <span>
  236. name
  237. are_you_sure
  238. </span>
  239. </div>
  240. </div>
  241. <footer
  242. className="modal-foot"
  243. >
  244. <SubmitButton
  245. disabled={false}
  246. id="coding-rules-submit-bulk-change"
  247. >
  248. apply
  249. </SubmitButton>
  250. <ResetButtonLink
  251. onClick={[MockFunction]}
  252. >
  253. cancel
  254. </ResetButtonLink>
  255. </footer>
  256. </form>
  257. </Modal>
  258. `;
  259. exports[`should render correctly: submitting 1`] = `
  260. <Modal
  261. contentLabel="coding_rules.activate_in_quality_profile (42 coding_rules._rules)"
  262. onRequestClose={[MockFunction]}
  263. size="small"
  264. >
  265. <form
  266. onSubmit={[Function]}
  267. >
  268. <header
  269. className="modal-head"
  270. >
  271. <h2>
  272. coding_rules.activate_in_quality_profile (42 coding_rules._rules)
  273. </h2>
  274. </header>
  275. <div
  276. className="modal-body"
  277. />
  278. <footer
  279. className="modal-foot"
  280. >
  281. <i
  282. className="spinner spacer-right"
  283. />
  284. <SubmitButton
  285. disabled={true}
  286. id="coding-rules-submit-bulk-change"
  287. >
  288. apply
  289. </SubmitButton>
  290. <ResetButtonLink
  291. onClick={[MockFunction]}
  292. >
  293. cancel
  294. </ResetButtonLink>
  295. </footer>
  296. </form>
  297. </Modal>
  298. `;