You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UserListItem-test.tsx.snap 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`should render correctly 1`] = `
  3. <tr>
  4. <td
  5. className="thin nowrap text-middle"
  6. >
  7. <withAppStateContext(Avatar)
  8. name="One"
  9. size={36}
  10. />
  11. </td>
  12. <UserListItemIdentity
  13. user={
  14. Object {
  15. "active": true,
  16. "lastConnectionDate": "2019-01-18T15:06:33+0100",
  17. "local": false,
  18. "login": "obi",
  19. "name": "One",
  20. "scmAccounts": Array [],
  21. }
  22. }
  23. />
  24. <td
  25. className="thin nowrap text-middle"
  26. >
  27. <UserScmAccounts
  28. scmAccounts={Array []}
  29. />
  30. </td>
  31. <td
  32. className="thin nowrap text-middle"
  33. >
  34. <DateFromNow
  35. date="2019-01-18T15:06:33+0100"
  36. hourPrecision={true}
  37. />
  38. </td>
  39. <td
  40. className="thin nowrap text-middle"
  41. >
  42. <UserGroups
  43. groups={Array []}
  44. onUpdateUsers={[MockFunction]}
  45. user={
  46. Object {
  47. "active": true,
  48. "lastConnectionDate": "2019-01-18T15:06:33+0100",
  49. "local": false,
  50. "login": "obi",
  51. "name": "One",
  52. "scmAccounts": Array [],
  53. }
  54. }
  55. />
  56. </td>
  57. <td
  58. className="thin nowrap text-middle"
  59. >
  60. <ButtonIcon
  61. className="js-user-tokens spacer-left button-small"
  62. onClick={[Function]}
  63. tooltip="users.update_tokens"
  64. >
  65. <BulletListIcon />
  66. </ButtonIcon>
  67. </td>
  68. <td
  69. className="thin nowrap text-right text-middle"
  70. >
  71. <UserActions
  72. isCurrentUser={false}
  73. onUpdateUsers={[MockFunction]}
  74. user={
  75. Object {
  76. "active": true,
  77. "lastConnectionDate": "2019-01-18T15:06:33+0100",
  78. "local": false,
  79. "login": "obi",
  80. "name": "One",
  81. "scmAccounts": Array [],
  82. }
  83. }
  84. />
  85. </td>
  86. </tr>
  87. `;
  88. exports[`should render correctly without last connection date 1`] = `
  89. <tr>
  90. <td
  91. className="thin nowrap text-middle"
  92. >
  93. <withAppStateContext(Avatar)
  94. name="One"
  95. size={36}
  96. />
  97. </td>
  98. <UserListItemIdentity
  99. user={
  100. Object {
  101. "active": true,
  102. "lastConnectionDate": "2019-01-18T15:06:33+0100",
  103. "local": false,
  104. "login": "obi",
  105. "name": "One",
  106. "scmAccounts": Array [],
  107. }
  108. }
  109. />
  110. <td
  111. className="thin nowrap text-middle"
  112. >
  113. <UserScmAccounts
  114. scmAccounts={Array []}
  115. />
  116. </td>
  117. <td
  118. className="thin nowrap text-middle"
  119. >
  120. <DateFromNow
  121. date="2019-01-18T15:06:33+0100"
  122. hourPrecision={true}
  123. />
  124. </td>
  125. <td
  126. className="thin nowrap text-middle"
  127. >
  128. <UserGroups
  129. groups={Array []}
  130. onUpdateUsers={[MockFunction]}
  131. user={
  132. Object {
  133. "active": true,
  134. "lastConnectionDate": "2019-01-18T15:06:33+0100",
  135. "local": false,
  136. "login": "obi",
  137. "name": "One",
  138. "scmAccounts": Array [],
  139. }
  140. }
  141. />
  142. </td>
  143. <td
  144. className="thin nowrap text-middle"
  145. >
  146. <ButtonIcon
  147. className="js-user-tokens spacer-left button-small"
  148. onClick={[Function]}
  149. tooltip="users.update_tokens"
  150. >
  151. <BulletListIcon />
  152. </ButtonIcon>
  153. </td>
  154. <td
  155. className="thin nowrap text-right text-middle"
  156. >
  157. <UserActions
  158. isCurrentUser={false}
  159. onUpdateUsers={[MockFunction]}
  160. user={
  161. Object {
  162. "active": true,
  163. "lastConnectionDate": "2019-01-18T15:06:33+0100",
  164. "local": false,
  165. "login": "obi",
  166. "name": "One",
  167. "scmAccounts": Array [],
  168. }
  169. }
  170. />
  171. </td>
  172. </tr>
  173. `;