projectPluginsRow.spec.jsx.snap 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`ProjectPluginRow renders 1`] = `
  3. <ProjectPluginRow
  4. assets={Array []}
  5. author={
  6. Object {
  7. "name": "Sentry Team",
  8. "url": "https://github.com/getsentry/sentry",
  9. }
  10. }
  11. canDisable={true}
  12. enabled={false}
  13. hasConfiguration={true}
  14. id="amazon-sqs"
  15. isHidden={false}
  16. name="Amazon SQS"
  17. orgId="org-slug"
  18. projectId="project-slug"
  19. slug="amazon-sqs"
  20. version="8.23.0.dev0"
  21. >
  22. <withConfig(AccessContainer)
  23. access={
  24. Array [
  25. "project:write",
  26. ]
  27. }
  28. >
  29. <AccessContainer
  30. access={
  31. Array [
  32. "project:write",
  33. ]
  34. }
  35. config={
  36. Object {
  37. "features": Set {},
  38. "messages": Array [],
  39. "user": Object {
  40. "email": "foo@example.com",
  41. "flags": Object {
  42. "newsletter_consent_prompt": false,
  43. },
  44. "hasPasswordAuth": true,
  45. "id": "1",
  46. "isAuthenticated": true,
  47. "name": "Foo Bar",
  48. "options": Object {
  49. "timezone": "UTC",
  50. },
  51. "permissions": Set {},
  52. "username": "foo@example.com",
  53. },
  54. }
  55. }
  56. >
  57. <Access
  58. access={
  59. Array [
  60. "project:write",
  61. ]
  62. }
  63. config={
  64. Object {
  65. "features": Set {},
  66. "messages": Array [],
  67. "user": Object {
  68. "email": "foo@example.com",
  69. "flags": Object {
  70. "newsletter_consent_prompt": false,
  71. },
  72. "hasPasswordAuth": true,
  73. "id": "1",
  74. "isAuthenticated": true,
  75. "name": "Foo Bar",
  76. "options": Object {
  77. "timezone": "UTC",
  78. },
  79. "permissions": Set {},
  80. "username": "foo@example.com",
  81. },
  82. }
  83. }
  84. configUser={
  85. Object {
  86. "email": "foo@example.com",
  87. "flags": Object {
  88. "newsletter_consent_prompt": false,
  89. },
  90. "hasPasswordAuth": true,
  91. "id": "1",
  92. "isAuthenticated": true,
  93. "name": "Foo Bar",
  94. "options": Object {
  95. "timezone": "UTC",
  96. },
  97. "permissions": Set {},
  98. "username": "foo@example.com",
  99. }
  100. }
  101. organization={
  102. Object {
  103. "access": Array [
  104. "project:write",
  105. ],
  106. "features": Array [],
  107. "id": "3",
  108. "name": "Organization Name",
  109. "onboardingTasks": Array [],
  110. "projects": Array [],
  111. "scrapeJavaScript": true,
  112. "slug": "org-slug",
  113. "status": Object {
  114. "id": "active",
  115. "name": "active",
  116. },
  117. "teams": Array [],
  118. }
  119. }
  120. renderNoAccessMessage={false}
  121. requireAll={true}
  122. >
  123. <Flex
  124. align="center"
  125. className="amazon-sqs"
  126. flex="1"
  127. key="amazon-sqs"
  128. >
  129. <Base
  130. align="center"
  131. className="amazon-sqs css-1yrw3fm"
  132. flex="1"
  133. >
  134. <div
  135. className="amazon-sqs css-1yrw3fm"
  136. is={null}
  137. >
  138. <PluginInfo>
  139. <div
  140. className="css-sm2hu2-PluginInfo e1y7j6vq0"
  141. >
  142. <StyledPluginIcon
  143. pluginId="amazon-sqs"
  144. size={48}
  145. >
  146. <div
  147. className="css-188xbn-PluginIcon-StyledPluginIcon e1y7j6vq2"
  148. size={48}
  149. />
  150. </StyledPluginIcon>
  151. <Flex
  152. direction="column"
  153. justify="center"
  154. >
  155. <Base
  156. className="css-11zjqd3"
  157. direction="column"
  158. justify="center"
  159. >
  160. <div
  161. className="css-11zjqd3"
  162. is={null}
  163. >
  164. <PluginName>
  165. <div
  166. className="css-36lssg-PluginName e1y7j6vq1"
  167. >
  168. Amazon SQS
  169. <Version>
  170. <span
  171. className="css-1det7j8-Version e1y7j6vq3"
  172. >
  173. v8.23.0.dev0
  174. </span>
  175. </Version>
  176. </div>
  177. </PluginName>
  178. <div>
  179. <ForwardRef
  180. className="css-8vm1xp-grayText"
  181. href="https://github.com/getsentry/sentry"
  182. rel="noreferrer noopener"
  183. target="_blank"
  184. >
  185. <a
  186. className="css-8vm1xp-grayText"
  187. href="https://github.com/getsentry/sentry"
  188. rel="noreferrer noopener"
  189. target="_blank"
  190. >
  191. Sentry Team
  192. </a>
  193. </ForwardRef>
  194. <span>
  195. ·
  196. <Link
  197. className="css-8vm1xp-grayText"
  198. onlyActiveOnIndex={false}
  199. style={Object {}}
  200. to="amazon-sqs"
  201. >
  202. <a
  203. className="css-8vm1xp-grayText"
  204. onClick={[Function]}
  205. style={Object {}}
  206. >
  207. Configure plugin
  208. </a>
  209. </Link>
  210. </span>
  211. </div>
  212. </div>
  213. </Base>
  214. </Flex>
  215. </div>
  216. </PluginInfo>
  217. <Switch
  218. isActive={false}
  219. isDisabled={false}
  220. size="lg"
  221. toggle={[Function]}
  222. >
  223. <SwitchButton
  224. aria-checked={false}
  225. data-test-id="switch"
  226. isActive={false}
  227. isDisabled={false}
  228. onClick={[Function]}
  229. role="checkbox"
  230. size="lg"
  231. type="button"
  232. >
  233. <button
  234. aria-checked={false}
  235. className="css-1vudn4r-SwitchButton e1wgeblw0"
  236. data-test-id="switch"
  237. onClick={[Function]}
  238. role="checkbox"
  239. size="lg"
  240. type="button"
  241. >
  242. <Toggle
  243. isActive={false}
  244. isDisabled={false}
  245. size="lg"
  246. >
  247. <span
  248. className="css-1uoqc08-Toggle e1wgeblw1"
  249. size="lg"
  250. />
  251. </Toggle>
  252. </button>
  253. </SwitchButton>
  254. </Switch>
  255. </div>
  256. </Base>
  257. </Flex>
  258. </Access>
  259. </AccessContainer>
  260. </withConfig(AccessContainer)>
  261. </ProjectPluginRow>
  262. `;