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.

ListFooter-test.tsx.snap 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`should render correctly: default 1`] = `
  3. <div
  4. className="list-footer spacer-top note text-center"
  5. tabIndex={-1}
  6. >
  7. <span
  8. aria-busy={false}
  9. aria-live="polite"
  10. >
  11. x_of_y_shown.3.5
  12. </span>
  13. <Button
  14. className="spacer-left"
  15. data-test="show-more"
  16. disabled={false}
  17. onClick={[Function]}
  18. >
  19. show_more
  20. </Button>
  21. <DeferredSpinner
  22. className="text-bottom spacer-left position-absolute"
  23. loading={false}
  24. />
  25. </div>
  26. `;
  27. exports[`should render correctly: empty if everything is loaded 1`] = `
  28. <div
  29. className="list-footer spacer-top note text-center"
  30. tabIndex={-1}
  31. >
  32. <span
  33. aria-busy={false}
  34. aria-live="polite"
  35. >
  36. x_of_y_shown.5.5
  37. </span>
  38. <DeferredSpinner
  39. className="text-bottom spacer-left position-absolute"
  40. loading={false}
  41. />
  42. </div>
  43. `;
  44. exports[`should render correctly: empty if no loadMore nor reload props 1`] = `
  45. <div
  46. className="list-footer spacer-top note text-center"
  47. tabIndex={-1}
  48. >
  49. <span
  50. aria-busy={false}
  51. aria-live="polite"
  52. >
  53. x_of_y_shown.3.5
  54. </span>
  55. <DeferredSpinner
  56. className="text-bottom spacer-left position-absolute"
  57. loading={false}
  58. />
  59. </div>
  60. `;
  61. exports[`should render correctly: force show load more button if count % pageSize is 0, and total is undefined 1`] = `
  62. <div
  63. className="list-footer spacer-top note text-center"
  64. tabIndex={-1}
  65. >
  66. <span
  67. aria-busy={false}
  68. aria-live="polite"
  69. >
  70. x_show.60
  71. </span>
  72. <Button
  73. className="spacer-left"
  74. data-test="show-more"
  75. disabled={false}
  76. onClick={[Function]}
  77. >
  78. show_more
  79. </Button>
  80. <DeferredSpinner
  81. className="text-bottom spacer-left position-absolute"
  82. loading={false}
  83. />
  84. </div>
  85. `;
  86. exports[`should render correctly: loading 1`] = `
  87. <div
  88. className="list-footer spacer-top note text-center"
  89. tabIndex={-1}
  90. >
  91. <span
  92. aria-busy={true}
  93. aria-live="polite"
  94. >
  95. x_of_y_shown.3.5
  96. </span>
  97. <Button
  98. className="spacer-left"
  99. data-test="show-more"
  100. disabled={true}
  101. onClick={[Function]}
  102. >
  103. show_more
  104. </Button>
  105. <DeferredSpinner
  106. className="text-bottom spacer-left position-absolute"
  107. loading={true}
  108. />
  109. </div>
  110. `;
  111. exports[`should render correctly: reload 1`] = `
  112. <div
  113. className="list-footer spacer-top note text-center"
  114. tabIndex={-1}
  115. >
  116. <span
  117. aria-busy={false}
  118. aria-live="polite"
  119. >
  120. x_of_y_shown.3.5
  121. </span>
  122. <Button
  123. className="spacer-left"
  124. data-test="reload"
  125. disabled={false}
  126. onClick={[MockFunction]}
  127. >
  128. reload
  129. </Button>
  130. <DeferredSpinner
  131. className="text-bottom spacer-left position-absolute"
  132. loading={false}
  133. />
  134. </div>
  135. `;
  136. exports[`should render correctly: reload, loading 1`] = `
  137. <div
  138. className="list-footer spacer-top note text-center"
  139. tabIndex={-1}
  140. >
  141. <span
  142. aria-busy={true}
  143. aria-live="polite"
  144. >
  145. x_of_y_shown.3.5
  146. </span>
  147. <Button
  148. className="spacer-left"
  149. data-test="reload"
  150. disabled={true}
  151. onClick={[MockFunction]}
  152. >
  153. reload
  154. </Button>
  155. <DeferredSpinner
  156. className="text-bottom spacer-left position-absolute"
  157. loading={true}
  158. />
  159. </div>
  160. `;
  161. exports[`should render correctly: total undefined 1`] = `
  162. <div
  163. className="list-footer spacer-top note text-center"
  164. tabIndex={-1}
  165. >
  166. <span
  167. aria-busy={false}
  168. aria-live="polite"
  169. >
  170. x_show.3
  171. </span>
  172. <DeferredSpinner
  173. className="text-bottom spacer-left position-absolute"
  174. loading={false}
  175. />
  176. </div>
  177. `;