apiTokens.spec.jsx.snap 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`ApiTokens renders empty result 1`] = `
  3. <SideEffect(DocumentTitle)
  4. title="API Tokens - Sentry"
  5. >
  6. <div>
  7. <StyledSettingsPageHeading
  8. action={
  9. <Button
  10. align="center"
  11. className="ref-create-token"
  12. disabled={false}
  13. priority="primary"
  14. size="small"
  15. to="/settings/account/api/auth-tokens/new-token/"
  16. >
  17. Create New Token
  18. </Button>
  19. }
  20. noTitleStyles={false}
  21. title="Auth Tokens"
  22. />
  23. <TextBlock>
  24. Authentication tokens allow you to perform actions against the Sentry API on behalf of your account. They're the easiest way to get started using the API.
  25. </TextBlock>
  26. <TextBlock>
  27. <span
  28. key="5"
  29. >
  30. <span
  31. key="0"
  32. >
  33. For more information on how to use the web API, see our
  34. </span>
  35. <a
  36. href="https://docs.sentry.io/hosted/api/"
  37. key="2"
  38. >
  39. <span
  40. key="1"
  41. >
  42. documentation
  43. </span>
  44. </a>
  45. <span
  46. key="3"
  47. >
  48. .
  49. </span>
  50. </span>
  51. </TextBlock>
  52. <TextBlock>
  53. <small>
  54. psst. Looking for the
  55. <strong>
  56. DSN
  57. </strong>
  58. for an SDK? You'll find that under
  59. <strong>
  60. [Project] » Settings » Client Keys
  61. </strong>
  62. .
  63. </small>
  64. </TextBlock>
  65. <Panel>
  66. <PanelHeader
  67. disablePadding={true}
  68. >
  69. <Flex
  70. align="center"
  71. >
  72. <Box
  73. flex="1"
  74. px={2}
  75. >
  76. Auth Token
  77. </Box>
  78. </Flex>
  79. </PanelHeader>
  80. <PanelBody
  81. direction="column"
  82. disablePadding={true}
  83. flex={false}
  84. >
  85. <EmptyMessage>
  86. You haven't created any authentication tokens yet.
  87. </EmptyMessage>
  88. </PanelBody>
  89. </Panel>
  90. </div>
  91. </SideEffect(DocumentTitle)>
  92. `;
  93. exports[`ApiTokens renders with result 1`] = `
  94. <SideEffect(DocumentTitle)
  95. title="API Tokens - Sentry"
  96. >
  97. <div>
  98. <StyledSettingsPageHeading
  99. action={
  100. <Button
  101. align="center"
  102. className="ref-create-token"
  103. disabled={false}
  104. priority="primary"
  105. size="small"
  106. to="/settings/account/api/auth-tokens/new-token/"
  107. >
  108. Create New Token
  109. </Button>
  110. }
  111. noTitleStyles={false}
  112. title="Auth Tokens"
  113. />
  114. <TextBlock>
  115. Authentication tokens allow you to perform actions against the Sentry API on behalf of your account. They're the easiest way to get started using the API.
  116. </TextBlock>
  117. <TextBlock>
  118. <span
  119. key="5"
  120. >
  121. <span
  122. key="0"
  123. >
  124. For more information on how to use the web API, see our
  125. </span>
  126. <a
  127. href="https://docs.sentry.io/hosted/api/"
  128. key="2"
  129. >
  130. <span
  131. key="1"
  132. >
  133. documentation
  134. </span>
  135. </a>
  136. <span
  137. key="3"
  138. >
  139. .
  140. </span>
  141. </span>
  142. </TextBlock>
  143. <TextBlock>
  144. <small>
  145. psst. Looking for the
  146. <strong>
  147. DSN
  148. </strong>
  149. for an SDK? You'll find that under
  150. <strong>
  151. [Project] » Settings » Client Keys
  152. </strong>
  153. .
  154. </small>
  155. </TextBlock>
  156. <Panel>
  157. <PanelHeader
  158. disablePadding={true}
  159. >
  160. <Flex
  161. align="center"
  162. >
  163. <Box
  164. flex="1"
  165. px={2}
  166. >
  167. Auth Token
  168. </Box>
  169. </Flex>
  170. </PanelHeader>
  171. <PanelBody
  172. direction="column"
  173. disablePadding={true}
  174. flex={false}
  175. >
  176. <ApiTokenRow
  177. key="apitoken123"
  178. onRemove={[Function]}
  179. token={
  180. Object {
  181. "dateCreated": 2018-01-12T02:01:41.000Z,
  182. "scopes": Array [
  183. "scope1",
  184. "scope2",
  185. ],
  186. "token": "apitoken123",
  187. }
  188. }
  189. />
  190. </PanelBody>
  191. </Panel>
  192. </div>
  193. </SideEffect(DocumentTitle)>
  194. `;