confirm.spec.jsx.snap 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`Confirm renders 1`] = `
  3. <Fragment>
  4. <button
  5. onClick={[Function]}
  6. >
  7. Confirm?
  8. </button>
  9. <Modal
  10. animation={false}
  11. autoFocus={true}
  12. backdrop={true}
  13. bsClass="modal"
  14. dialogComponentClass={[Function]}
  15. enforceFocus={true}
  16. keyboard={true}
  17. manager={
  18. ModalManager {
  19. "add": [Function],
  20. "containers": Array [],
  21. "data": Array [],
  22. "handleContainerOverflow": true,
  23. "hideSiblingNodes": true,
  24. "isTopModal": [Function],
  25. "modals": Array [],
  26. "remove": [Function],
  27. }
  28. }
  29. onHide={[Function]}
  30. renderBackdrop={[Function]}
  31. restoreFocus={true}
  32. show={false}
  33. >
  34. <div
  35. className="modal-body"
  36. >
  37. <p>
  38. <strong>
  39. Are you sure?
  40. </strong>
  41. </p>
  42. </div>
  43. <div
  44. className="modal-footer"
  45. >
  46. <Button
  47. disabled={false}
  48. onClick={[Function]}
  49. style={
  50. Object {
  51. "marginRight": 10,
  52. }
  53. }
  54. >
  55. Cancel
  56. </Button>
  57. <Button
  58. autoFocus={true}
  59. data-test-id="confirm-modal"
  60. disabled={false}
  61. onClick={[Function]}
  62. priority="primary"
  63. >
  64. Confirm
  65. </Button>
  66. </div>
  67. </Modal>
  68. </Fragment>
  69. `;