Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

UserHolder-test.tsx.snap 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`should render correctly: creator 1`] = `
  3. <tr>
  4. <td
  5. className="nowrap text-middle"
  6. >
  7. <div>
  8. <strong>
  9. johndoe
  10. </strong>
  11. </div>
  12. <div
  13. className="little-spacer-top"
  14. style={
  15. Object {
  16. "whiteSpace": "normal",
  17. }
  18. }
  19. >
  20. permission_templates.project_creators.explanation
  21. </div>
  22. </td>
  23. <PermissionCell
  24. key="admin"
  25. loading={Array []}
  26. onCheck={[Function]}
  27. permission={
  28. Object {
  29. "category": "admin",
  30. "permissions": Array [
  31. Object {
  32. "description": "",
  33. "key": "foo",
  34. "name": "Foo",
  35. },
  36. Object {
  37. "description": "",
  38. "key": "bar",
  39. "name": "Bar",
  40. },
  41. ],
  42. }
  43. }
  44. permissionItem={
  45. Object {
  46. "active": true,
  47. "local": true,
  48. "login": "<creator>",
  49. "name": "johndoe",
  50. "permissions": Array [
  51. "provisioning",
  52. ],
  53. }
  54. }
  55. selectedPermission="bar"
  56. />
  57. <PermissionCell
  58. key="baz"
  59. loading={Array []}
  60. onCheck={[Function]}
  61. permission={
  62. Object {
  63. "description": "",
  64. "key": "baz",
  65. "name": "Baz",
  66. }
  67. }
  68. permissionItem={
  69. Object {
  70. "active": true,
  71. "local": true,
  72. "login": "<creator>",
  73. "name": "johndoe",
  74. "permissions": Array [
  75. "provisioning",
  76. ],
  77. }
  78. }
  79. selectedPermission="bar"
  80. />
  81. </tr>
  82. `;
  83. exports[`should render correctly: default 1`] = `
  84. <tr>
  85. <td
  86. className="nowrap text-middle"
  87. >
  88. <div
  89. className="display-flex-center"
  90. >
  91. <withAppStateContext(Avatar)
  92. className="text-middle big-spacer-right flex-0"
  93. name="John Doe"
  94. size={36}
  95. />
  96. <div
  97. className="max-width-100"
  98. >
  99. <div
  100. className="max-width-100 text-ellipsis"
  101. >
  102. <strong>
  103. John Doe
  104. </strong>
  105. <span
  106. className="note spacer-left"
  107. >
  108. john.doe
  109. </span>
  110. </div>
  111. <div
  112. className="little-spacer-top max-width-100 text-ellipsis"
  113. >
  114. john.doe@sonarsource.com
  115. </div>
  116. </div>
  117. </div>
  118. </td>
  119. <PermissionCell
  120. key="admin"
  121. loading={Array []}
  122. onCheck={[Function]}
  123. permission={
  124. Object {
  125. "category": "admin",
  126. "permissions": Array [
  127. Object {
  128. "description": "",
  129. "key": "foo",
  130. "name": "Foo",
  131. },
  132. Object {
  133. "description": "",
  134. "key": "bar",
  135. "name": "Bar",
  136. },
  137. ],
  138. }
  139. }
  140. permissionItem={
  141. Object {
  142. "active": true,
  143. "email": "john.doe@sonarsource.com",
  144. "local": true,
  145. "login": "john.doe",
  146. "name": "John Doe",
  147. "permissions": Array [
  148. "provisioning",
  149. ],
  150. }
  151. }
  152. selectedPermission="bar"
  153. />
  154. <PermissionCell
  155. key="baz"
  156. loading={Array []}
  157. onCheck={[Function]}
  158. permission={
  159. Object {
  160. "description": "",
  161. "key": "baz",
  162. "name": "Baz",
  163. }
  164. }
  165. permissionItem={
  166. Object {
  167. "active": true,
  168. "email": "john.doe@sonarsource.com",
  169. "local": true,
  170. "login": "john.doe",
  171. "name": "John Doe",
  172. "permissions": Array [
  173. "provisioning",
  174. ],
  175. }
  176. }
  177. selectedPermission="bar"
  178. />
  179. </tr>
  180. `;