shareIssue.spec.jsx.snap 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`ShareIssue renders when busy 1`] = `
  3. <DropdownLink
  4. alwaysRenderMenu={true}
  5. anchorRight={false}
  6. caret={true}
  7. className="share-issue btn-sm btn btn-default"
  8. disabled={false}
  9. keepMenuOpen={true}
  10. onOpen={[Function]}
  11. shouldIgnoreClickOutside={[Function]}
  12. title={
  13. <div
  14. style={
  15. Object {
  16. "marginRight": 4,
  17. }
  18. }
  19. >
  20. <FlowLayout
  21. center={true}
  22. truncate={true}
  23. >
  24. <IndicatorDot />
  25. Share
  26. </FlowLayout>
  27. </div>
  28. }
  29. >
  30. <li
  31. style={
  32. Object {
  33. "padding": "12px 18px",
  34. }
  35. }
  36. >
  37. <SpreadLayout
  38. center={true}
  39. responsive={false}
  40. style={
  41. Object {
  42. "marginBottom": undefined,
  43. }
  44. }
  45. >
  46. <SmallHeading>
  47. Enable public share link
  48. </SmallHeading>
  49. <Switch
  50. size="sm"
  51. toggle={[Function]}
  52. />
  53. </SpreadLayout>
  54. </li>
  55. </DropdownLink>
  56. `;
  57. exports[`ShareIssue renders when not shared 1`] = `
  58. <DropdownLink
  59. alwaysRenderMenu={true}
  60. anchorRight={false}
  61. caret={true}
  62. className="share-issue btn-sm btn btn-default"
  63. disabled={false}
  64. keepMenuOpen={true}
  65. onOpen={[Function]}
  66. shouldIgnoreClickOutside={[Function]}
  67. title={
  68. <div
  69. style={
  70. Object {
  71. "marginRight": 4,
  72. }
  73. }
  74. >
  75. <FlowLayout
  76. center={true}
  77. truncate={true}
  78. >
  79. <IndicatorDot
  80. active={false}
  81. />
  82. Share
  83. </FlowLayout>
  84. </div>
  85. }
  86. >
  87. <li
  88. style={
  89. Object {
  90. "padding": "12px 18px",
  91. }
  92. }
  93. >
  94. <SpreadLayout
  95. center={true}
  96. responsive={false}
  97. style={
  98. Object {
  99. "marginBottom": undefined,
  100. }
  101. }
  102. >
  103. <SmallHeading>
  104. Enable public share link
  105. </SmallHeading>
  106. <Switch
  107. isActive={false}
  108. size="sm"
  109. toggle={[Function]}
  110. />
  111. </SpreadLayout>
  112. </li>
  113. </DropdownLink>
  114. `;
  115. exports[`ShareIssue renders when shared 1`] = `
  116. <DropdownLink
  117. alwaysRenderMenu={true}
  118. anchorRight={false}
  119. caret={true}
  120. className="share-issue btn-sm btn btn-default"
  121. disabled={false}
  122. keepMenuOpen={true}
  123. onOpen={[Function]}
  124. shouldIgnoreClickOutside={[Function]}
  125. title={
  126. <div
  127. style={
  128. Object {
  129. "marginRight": 4,
  130. }
  131. }
  132. >
  133. <FlowLayout
  134. center={true}
  135. truncate={true}
  136. >
  137. <IndicatorDot
  138. active={true}
  139. />
  140. Share
  141. </FlowLayout>
  142. </div>
  143. }
  144. >
  145. <li
  146. style={
  147. Object {
  148. "padding": "12px 18px",
  149. }
  150. }
  151. >
  152. <SpreadLayout
  153. center={true}
  154. responsive={false}
  155. style={
  156. Object {
  157. "marginBottom": 12,
  158. }
  159. }
  160. >
  161. <SmallHeading>
  162. Enable public share link
  163. </SmallHeading>
  164. <Switch
  165. isActive={true}
  166. size="sm"
  167. toggle={[Function]}
  168. />
  169. </SpreadLayout>
  170. <ShareUrlContainer
  171. isSharing={true}
  172. onCancel={[Function]}
  173. onConfirming={[Function]}
  174. onShare={[Function]}
  175. onToggle={[Function]}
  176. shareUrl="http://sentry.io/share/test/"
  177. />
  178. </li>
  179. </DropdownLink>
  180. `;