TeamGroupSync.test.tsx.snap 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`Render should render component 1`] = `
  3. <div>
  4. <div
  5. className="page-action-bar"
  6. >
  7. <h3
  8. className="page-sub-heading"
  9. >
  10. External group sync
  11. </h3>
  12. <Component
  13. content="Sync LDAP or OAuth groups with your Grafana teams."
  14. placement="auto"
  15. >
  16. <div
  17. className="page-sub-heading-icon"
  18. >
  19. <i
  20. className="gicon gicon-question gicon--has-hover"
  21. />
  22. </div>
  23. </Component>
  24. <div
  25. className="page-action-bar__spacer"
  26. />
  27. </div>
  28. <Component
  29. in={false}
  30. >
  31. <div
  32. className="cta-form"
  33. >
  34. <button
  35. className="cta-form__close btn btn-transparent"
  36. onClick={[Function]}
  37. >
  38. <i
  39. className="fa fa-close"
  40. />
  41. </button>
  42. <h5>
  43. Add External Group
  44. </h5>
  45. <form
  46. className="gf-form-inline"
  47. onSubmit={[Function]}
  48. >
  49. <div
  50. className="gf-form"
  51. >
  52. <Input
  53. className="gf-form-input width-30"
  54. onChange={[Function]}
  55. placeholder="cn=ops,ou=groups,dc=grafana,dc=org"
  56. type="text"
  57. value=""
  58. />
  59. </div>
  60. <div
  61. className="gf-form"
  62. >
  63. <button
  64. className="btn btn-primary gf-form-btn"
  65. disabled={true}
  66. type="submit"
  67. >
  68. Add group
  69. </button>
  70. </div>
  71. </form>
  72. </div>
  73. </Component>
  74. <EmptyListCTA
  75. buttonIcon="gicon gicon-team"
  76. buttonTitle="Add Group"
  77. onClick={[Function]}
  78. proTip="Sync LDAP or OAuth groups with your Grafana teams."
  79. proTipLink="http://docs.grafana.org/auth/enhanced_ldap/"
  80. proTipLinkTitle="Learn more"
  81. proTipTarget="_blank"
  82. title="There are no external groups to sync with"
  83. />
  84. </div>
  85. `;
  86. exports[`Render should render groups table 1`] = `
  87. <div>
  88. <div
  89. className="page-action-bar"
  90. >
  91. <h3
  92. className="page-sub-heading"
  93. >
  94. External group sync
  95. </h3>
  96. <Component
  97. content="Sync LDAP or OAuth groups with your Grafana teams."
  98. placement="auto"
  99. >
  100. <div
  101. className="page-sub-heading-icon"
  102. >
  103. <i
  104. className="gicon gicon-question gicon--has-hover"
  105. />
  106. </div>
  107. </Component>
  108. <div
  109. className="page-action-bar__spacer"
  110. />
  111. <button
  112. className="btn btn-primary pull-right"
  113. onClick={[Function]}
  114. >
  115. <i
  116. className="fa fa-plus"
  117. />
  118. Add group
  119. </button>
  120. </div>
  121. <Component
  122. in={false}
  123. >
  124. <div
  125. className="cta-form"
  126. >
  127. <button
  128. className="cta-form__close btn btn-transparent"
  129. onClick={[Function]}
  130. >
  131. <i
  132. className="fa fa-close"
  133. />
  134. </button>
  135. <h5>
  136. Add External Group
  137. </h5>
  138. <form
  139. className="gf-form-inline"
  140. onSubmit={[Function]}
  141. >
  142. <div
  143. className="gf-form"
  144. >
  145. <Input
  146. className="gf-form-input width-30"
  147. onChange={[Function]}
  148. placeholder="cn=ops,ou=groups,dc=grafana,dc=org"
  149. type="text"
  150. value=""
  151. />
  152. </div>
  153. <div
  154. className="gf-form"
  155. >
  156. <button
  157. className="btn btn-primary gf-form-btn"
  158. disabled={true}
  159. type="submit"
  160. >
  161. Add group
  162. </button>
  163. </div>
  164. </form>
  165. </div>
  166. </Component>
  167. <div
  168. className="admin-list-table"
  169. >
  170. <table
  171. className="filter-table filter-table--hover form-inline"
  172. >
  173. <thead>
  174. <tr>
  175. <th>
  176. External Group ID
  177. </th>
  178. <th
  179. style={
  180. Object {
  181. "width": "1%",
  182. }
  183. }
  184. />
  185. </tr>
  186. </thead>
  187. <tbody>
  188. <tr
  189. key="group-1"
  190. >
  191. <td>
  192. group-1
  193. </td>
  194. <td
  195. style={
  196. Object {
  197. "width": "1%",
  198. }
  199. }
  200. >
  201. <a
  202. className="btn btn-danger btn-small"
  203. onClick={[Function]}
  204. >
  205. <i
  206. className="fa fa-remove"
  207. />
  208. </a>
  209. </td>
  210. </tr>
  211. <tr
  212. key="group-2"
  213. >
  214. <td>
  215. group-2
  216. </td>
  217. <td
  218. style={
  219. Object {
  220. "width": "1%",
  221. }
  222. }
  223. >
  224. <a
  225. className="btn btn-danger btn-small"
  226. onClick={[Function]}
  227. >
  228. <i
  229. className="fa fa-remove"
  230. />
  231. </a>
  232. </td>
  233. </tr>
  234. <tr
  235. key="group-3"
  236. >
  237. <td>
  238. group-3
  239. </td>
  240. <td
  241. style={
  242. Object {
  243. "width": "1%",
  244. }
  245. }
  246. >
  247. <a
  248. className="btn btn-danger btn-small"
  249. onClick={[Function]}
  250. >
  251. <i
  252. className="fa fa-remove"
  253. />
  254. </a>
  255. </td>
  256. </tr>
  257. </tbody>
  258. </table>
  259. </div>
  260. </div>
  261. `;