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.

PageHeader-test.tsx.snap 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`should render correctly 1`] = `
  3. <div
  4. className="page-header"
  5. >
  6. <div
  7. className="display-flex-space-between spacer-top"
  8. >
  9. <SearchFilterContainer
  10. onQueryChange={[MockFunction]}
  11. query={
  12. Object {
  13. "search": "test",
  14. }
  15. }
  16. />
  17. <div
  18. className="display-flex-center"
  19. >
  20. <withCurrentUserContext(ProjectCreationMenu)
  21. className="little-spacer-right"
  22. />
  23. <withCurrentUserContext(withRouter(withAppStateContext(ApplicationCreation)))
  24. className="little-spacer-right"
  25. />
  26. <withCurrentUserContext(HomePageSelect)
  27. className="spacer-left little-spacer-right"
  28. currentPage={
  29. Object {
  30. "type": "PROJECTS",
  31. }
  32. }
  33. />
  34. </div>
  35. </div>
  36. <div
  37. className="big-spacer-top display-flex-space-between"
  38. >
  39. <div
  40. className="display-flex-center"
  41. >
  42. <span
  43. className="projects-total-label"
  44. >
  45. <strong
  46. id="projects-total"
  47. >
  48. 12
  49. </strong>
  50. projects_
  51. </span>
  52. </div>
  53. <div
  54. className="display-flex-center"
  55. >
  56. <PerspectiveSelect
  57. className="projects-topbar-item"
  58. onChange={[MockFunction]}
  59. view="overall"
  60. />
  61. <div
  62. className="projects-topbar-item"
  63. >
  64. <ProjectsSortingSelect
  65. defaultOption="analysis_date"
  66. onChange={[MockFunction]}
  67. selectedSort="size"
  68. view="overall"
  69. />
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. `;
  75. exports[`should render correctly while loading 1`] = `
  76. <div
  77. className="page-header"
  78. >
  79. <div
  80. className="display-flex-space-between spacer-top"
  81. >
  82. <SearchFilterContainer
  83. onQueryChange={[MockFunction]}
  84. query={
  85. Object {
  86. "search": "test",
  87. }
  88. }
  89. />
  90. <div
  91. className="display-flex-center"
  92. >
  93. <withCurrentUserContext(ProjectCreationMenu)
  94. className="little-spacer-right"
  95. />
  96. <withCurrentUserContext(withRouter(withAppStateContext(ApplicationCreation)))
  97. className="little-spacer-right"
  98. />
  99. <withCurrentUserContext(HomePageSelect)
  100. className="spacer-left little-spacer-right"
  101. currentPage={
  102. Object {
  103. "type": "PROJECTS",
  104. }
  105. }
  106. />
  107. </div>
  108. </div>
  109. <div
  110. className="big-spacer-top display-flex-space-between"
  111. >
  112. <div
  113. className="display-flex-center is-loading"
  114. >
  115. <span
  116. className="projects-total-label"
  117. >
  118. <strong
  119. id="projects-total"
  120. >
  121. 2
  122. </strong>
  123. projects_
  124. </span>
  125. </div>
  126. <div
  127. className="display-flex-center"
  128. >
  129. <PerspectiveSelect
  130. className="projects-topbar-item"
  131. onChange={[MockFunction]}
  132. view="overall"
  133. />
  134. <div
  135. className="projects-topbar-item"
  136. >
  137. <ProjectsSortingSelect
  138. defaultOption="analysis_date"
  139. onChange={[MockFunction]}
  140. selectedSort="size"
  141. view="overall"
  142. />
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. `;
  148. exports[`should render switch the default sorting option for anonymous users 1`] = `
  149. <ProjectsSortingSelect
  150. defaultOption="name"
  151. onChange={[MockFunction]}
  152. selectedSort="size"
  153. view="overall"
  154. />
  155. `;
  156. exports[`should render switch the default sorting option for anonymous users 2`] = `
  157. <ProjectsSortingSelect
  158. defaultOption="analysis_date"
  159. onChange={[MockFunction]}
  160. selectedSort="size"
  161. view="leak"
  162. />
  163. `;