InviteesTable.test.tsx.snap 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`Render should render component 1`] = `
  3. <table
  4. className="filter-table form-inline"
  5. >
  6. <thead>
  7. <tr>
  8. <th>
  9. Email
  10. </th>
  11. <th>
  12. Name
  13. </th>
  14. <th />
  15. <th
  16. style={
  17. Object {
  18. "width": "34px",
  19. }
  20. }
  21. />
  22. </tr>
  23. </thead>
  24. <tbody />
  25. </table>
  26. `;
  27. exports[`Render should render invitees 1`] = `
  28. <table
  29. className="filter-table form-inline"
  30. >
  31. <thead>
  32. <tr>
  33. <th>
  34. Email
  35. </th>
  36. <th>
  37. Name
  38. </th>
  39. <th />
  40. <th
  41. style={
  42. Object {
  43. "width": "34px",
  44. }
  45. }
  46. />
  47. </tr>
  48. </thead>
  49. <tbody>
  50. <Connect(InviteeRow)
  51. invitee={
  52. Object {
  53. "code": "asdfasdfsadf-0",
  54. "createdOn": "2018-10-02",
  55. "email": "invitee-0@test.com",
  56. "emailSent": true,
  57. "emailSentOn": "2018-10-02",
  58. "id": 0,
  59. "invitedByEmail": "admin@grafana.com",
  60. "invitedByLogin": "admin",
  61. "invitedByName": "admin",
  62. "name": "invitee-0",
  63. "orgId": 1,
  64. "role": "viewer",
  65. "status": "not accepted",
  66. "url": "localhost/invite/0",
  67. }
  68. }
  69. key="0-0"
  70. />
  71. <Connect(InviteeRow)
  72. invitee={
  73. Object {
  74. "code": "asdfasdfsadf-1",
  75. "createdOn": "2018-10-02",
  76. "email": "invitee-1@test.com",
  77. "emailSent": true,
  78. "emailSentOn": "2018-10-02",
  79. "id": 1,
  80. "invitedByEmail": "admin@grafana.com",
  81. "invitedByLogin": "admin",
  82. "invitedByName": "admin",
  83. "name": "invitee-1",
  84. "orgId": 1,
  85. "role": "viewer",
  86. "status": "not accepted",
  87. "url": "localhost/invite/1",
  88. }
  89. }
  90. key="1-1"
  91. />
  92. <Connect(InviteeRow)
  93. invitee={
  94. Object {
  95. "code": "asdfasdfsadf-2",
  96. "createdOn": "2018-10-02",
  97. "email": "invitee-2@test.com",
  98. "emailSent": true,
  99. "emailSentOn": "2018-10-02",
  100. "id": 2,
  101. "invitedByEmail": "admin@grafana.com",
  102. "invitedByLogin": "admin",
  103. "invitedByName": "admin",
  104. "name": "invitee-2",
  105. "orgId": 1,
  106. "role": "viewer",
  107. "status": "not accepted",
  108. "url": "localhost/invite/2",
  109. }
  110. }
  111. key="2-2"
  112. />
  113. <Connect(InviteeRow)
  114. invitee={
  115. Object {
  116. "code": "asdfasdfsadf-3",
  117. "createdOn": "2018-10-02",
  118. "email": "invitee-3@test.com",
  119. "emailSent": true,
  120. "emailSentOn": "2018-10-02",
  121. "id": 3,
  122. "invitedByEmail": "admin@grafana.com",
  123. "invitedByLogin": "admin",
  124. "invitedByName": "admin",
  125. "name": "invitee-3",
  126. "orgId": 1,
  127. "role": "viewer",
  128. "status": "not accepted",
  129. "url": "localhost/invite/3",
  130. }
  131. }
  132. key="3-3"
  133. />
  134. <Connect(InviteeRow)
  135. invitee={
  136. Object {
  137. "code": "asdfasdfsadf-4",
  138. "createdOn": "2018-10-02",
  139. "email": "invitee-4@test.com",
  140. "emailSent": true,
  141. "emailSentOn": "2018-10-02",
  142. "id": 4,
  143. "invitedByEmail": "admin@grafana.com",
  144. "invitedByLogin": "admin",
  145. "invitedByName": "admin",
  146. "name": "invitee-4",
  147. "orgId": 1,
  148. "role": "viewer",
  149. "status": "not accepted",
  150. "url": "localhost/invite/4",
  151. }
  152. }
  153. key="4-4"
  154. />
  155. <Connect(InviteeRow)
  156. invitee={
  157. Object {
  158. "code": "asdfasdfsadf-5",
  159. "createdOn": "2018-10-02",
  160. "email": "invitee-5@test.com",
  161. "emailSent": true,
  162. "emailSentOn": "2018-10-02",
  163. "id": 5,
  164. "invitedByEmail": "admin@grafana.com",
  165. "invitedByLogin": "admin",
  166. "invitedByName": "admin",
  167. "name": "invitee-5",
  168. "orgId": 1,
  169. "role": "viewer",
  170. "status": "not accepted",
  171. "url": "localhost/invite/5",
  172. }
  173. }
  174. key="5-5"
  175. />
  176. </tbody>
  177. </table>
  178. `;