confirmDelete.spec.jsx.snap 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`ConfirmDelete renders 1`] = `
  3. <ModalDialog
  4. bsClass="modal"
  5. className="in"
  6. onClick={[Function]}
  7. role="document"
  8. style={Object {}}
  9. tabIndex="-1"
  10. >
  11. <div
  12. className="in modal"
  13. onClick={[Function]}
  14. role="dialog"
  15. style={
  16. Object {
  17. "display": "block",
  18. }
  19. }
  20. tabIndex="-1"
  21. >
  22. <div
  23. className="modal-dialog"
  24. >
  25. <div
  26. className="modal-content"
  27. role="document"
  28. >
  29. <div
  30. className="modal-body"
  31. >
  32. <Alert
  33. iconSize="24px"
  34. type="error"
  35. >
  36. <AlertWrapper
  37. className="ref-error"
  38. type="error"
  39. >
  40. <Base
  41. className="ref-error css-ozkcmb-AlertWrapper e1xb5l7j1"
  42. type="error"
  43. >
  44. <div
  45. className="ref-error css-ozkcmb-AlertWrapper e1xb5l7j1"
  46. is={null}
  47. type="error"
  48. >
  49. <StyledTextBlock>
  50. <Component
  51. className="css-1h3n7tg-TextBlock-StyledTextBlock e1xb5l7j2"
  52. >
  53. <div
  54. className="css-1h3n7tg-TextBlock-StyledTextBlock e1xb5l7j2"
  55. >
  56. Are you sure?
  57. </div>
  58. </Component>
  59. </StyledTextBlock>
  60. </div>
  61. </Base>
  62. </AlertWrapper>
  63. </Alert>
  64. <Field
  65. alignRight={false}
  66. disabled={false}
  67. flexibleControlStateSize={true}
  68. inline={false}
  69. label={
  70. <div>
  71. Please enter
  72. <code>
  73. CoolOrg
  74. </code>
  75. to confirm the deletion
  76. </div>
  77. }
  78. p={0}
  79. required={false}
  80. visible={true}
  81. >
  82. <FieldWrapper
  83. hasControlState={false}
  84. inline={false}
  85. >
  86. <Component
  87. className="css-11ihpht-FieldWrapper-getPadding-borderStyle-inlineStyle etqqcs20"
  88. >
  89. <Flex
  90. className="css-11ihpht-FieldWrapper-getPadding-borderStyle-inlineStyle etqqcs20"
  91. >
  92. <Base
  93. className="etqqcs20 css-1uohzo7-FieldWrapper-getPadding-borderStyle-inlineStyle"
  94. >
  95. <div
  96. className="etqqcs20 css-1uohzo7-FieldWrapper-getPadding-borderStyle-inlineStyle"
  97. is={null}
  98. >
  99. <FieldDescription
  100. inline={false}
  101. >
  102. <Component
  103. className="css-jq43rd-FieldDescription-inlineStyle e12jefmo0"
  104. inline={false}
  105. >
  106. <label
  107. className="css-jq43rd-FieldDescription-inlineStyle e12jefmo0"
  108. >
  109. <FieldLabel
  110. disabled={false}
  111. >
  112. <div
  113. className="css-qzvhly-FieldLabel ejkuyjq0"
  114. >
  115. <div>
  116. Please enter
  117. <code>
  118. CoolOrg
  119. </code>
  120. to confirm the deletion
  121. </div>
  122. </div>
  123. </FieldLabel>
  124. </label>
  125. </Component>
  126. </FieldDescription>
  127. <FieldControl
  128. alignRight={false}
  129. disabled={false}
  130. flexibleControlStateSize={true}
  131. inline={false}
  132. >
  133. <FieldControlErrorWrapper
  134. inline={false}
  135. >
  136. <Component
  137. className="css-1ge7tqf-FieldControlErrorWrapper e78b1iv0"
  138. inline={false}
  139. >
  140. <Box
  141. className="css-1ge7tqf-FieldControlErrorWrapper e78b1iv0"
  142. >
  143. <Base
  144. className="e78b1iv0 css-nnn2ut-FieldControlErrorWrapper"
  145. >
  146. <div
  147. className="e78b1iv0 css-nnn2ut-FieldControlErrorWrapper"
  148. is={null}
  149. >
  150. <FieldControlWrapper>
  151. <Component
  152. className="css-1ke1xob-FieldControlWrapper e78b1iv2"
  153. >
  154. <Flex
  155. className="css-1ke1xob-FieldControlWrapper e78b1iv2"
  156. >
  157. <Base
  158. className="e78b1iv2 css-w4o1g8-FieldControlWrapper"
  159. >
  160. <div
  161. className="e78b1iv2 css-w4o1g8-FieldControlWrapper"
  162. is={null}
  163. >
  164. <FieldControlStyled
  165. alignRight={false}
  166. >
  167. <Component
  168. alignRight={false}
  169. className="css-1pkvhmy-FieldControlStyled e78b1iv1"
  170. >
  171. <Box
  172. className="css-1pkvhmy-FieldControlStyled e78b1iv1"
  173. >
  174. <Base
  175. className="e78b1iv1 css-wkkbba-FieldControlStyled"
  176. >
  177. <div
  178. className="e78b1iv1 css-wkkbba-FieldControlStyled"
  179. is={null}
  180. >
  181. <Input
  182. onChange={[Function]}
  183. placeholder="CoolOrg"
  184. type="text"
  185. value=""
  186. >
  187. <input
  188. className="css-pzg7em-Input-inputStyles e1xej46s0"
  189. onChange={[Function]}
  190. placeholder="CoolOrg"
  191. type="text"
  192. value=""
  193. />
  194. </Input>
  195. </div>
  196. </Base>
  197. </Box>
  198. </Component>
  199. </FieldControlStyled>
  200. <FieldControlState
  201. flexibleControlStateSize={true}
  202. >
  203. <Component
  204. className="css-1x60lk6-FieldControlState e1rziqw00"
  205. flexibleControlStateSize={true}
  206. >
  207. <Flex
  208. className="css-1x60lk6-FieldControlState e1rziqw00"
  209. >
  210. <Base
  211. className="e1rziqw00 css-dgyrfj-FieldControlState"
  212. >
  213. <div
  214. className="e1rziqw00 css-dgyrfj-FieldControlState"
  215. is={null}
  216. />
  217. </Base>
  218. </Flex>
  219. </Component>
  220. </FieldControlState>
  221. </div>
  222. </Base>
  223. </Flex>
  224. </Component>
  225. </FieldControlWrapper>
  226. </div>
  227. </Base>
  228. </Box>
  229. </Component>
  230. </FieldControlErrorWrapper>
  231. </FieldControl>
  232. </div>
  233. </Base>
  234. </Flex>
  235. </Component>
  236. </FieldWrapper>
  237. </Field>
  238. </div>
  239. <div
  240. className="modal-footer"
  241. >
  242. <Button
  243. disabled={false}
  244. onClick={[Function]}
  245. style={
  246. Object {
  247. "marginRight": 10,
  248. }
  249. }
  250. >
  251. <StyledButton
  252. aria-label="Cancel"
  253. disabled={false}
  254. onClick={[Function]}
  255. role="button"
  256. style={
  257. Object {
  258. "marginRight": 10,
  259. }
  260. }
  261. >
  262. <Component
  263. aria-label="Cancel"
  264. className="css-cmo08-StyledButton-getColors eqrebog0"
  265. disabled={false}
  266. onClick={[Function]}
  267. role="button"
  268. style={
  269. Object {
  270. "marginRight": 10,
  271. }
  272. }
  273. >
  274. <button
  275. aria-label="Cancel"
  276. className="css-cmo08-StyledButton-getColors eqrebog0"
  277. disabled={false}
  278. onClick={[Function]}
  279. role="button"
  280. style={
  281. Object {
  282. "marginRight": 10,
  283. }
  284. }
  285. >
  286. <ButtonLabel>
  287. <Component
  288. className="css-ga4b18-ButtonLabel eqrebog1"
  289. >
  290. <span
  291. className="css-ga4b18-ButtonLabel eqrebog1"
  292. >
  293. Cancel
  294. </span>
  295. </Component>
  296. </ButtonLabel>
  297. </button>
  298. </Component>
  299. </StyledButton>
  300. </Button>
  301. <Button
  302. autoFocus={true}
  303. data-test-id="confirm-modal"
  304. disabled={true}
  305. onClick={[Function]}
  306. priority="primary"
  307. >
  308. <StyledButton
  309. aria-label="Confirm"
  310. autoFocus={true}
  311. data-test-id="confirm-modal"
  312. disabled={true}
  313. href={null}
  314. onClick={[Function]}
  315. priority="primary"
  316. role="button"
  317. to={null}
  318. >
  319. <Component
  320. aria-label="Confirm"
  321. autoFocus={true}
  322. className="css-bo8dlg-StyledButton-getColors eqrebog0"
  323. data-test-id="confirm-modal"
  324. disabled={true}
  325. href={null}
  326. onClick={[Function]}
  327. priority="primary"
  328. role="button"
  329. to={null}
  330. >
  331. <button
  332. aria-label="Confirm"
  333. autoFocus={true}
  334. className="css-bo8dlg-StyledButton-getColors eqrebog0"
  335. data-test-id="confirm-modal"
  336. disabled={true}
  337. href={null}
  338. onClick={[Function]}
  339. priority="primary"
  340. role="button"
  341. to={null}
  342. >
  343. <ButtonLabel
  344. priority="primary"
  345. >
  346. <Component
  347. className="css-ga4b18-ButtonLabel eqrebog1"
  348. priority="primary"
  349. >
  350. <span
  351. className="css-ga4b18-ButtonLabel eqrebog1"
  352. >
  353. Confirm
  354. </span>
  355. </Component>
  356. </ButtonLabel>
  357. </button>
  358. </Component>
  359. </StyledButton>
  360. </Button>
  361. </div>
  362. </div>
  363. </div>
  364. </div>
  365. </ModalDialog>
  366. `;