ExplorerItem.test.js.snap 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`ExplorerItem children 1`] = `
  3. <div
  4. className="c-explorer__item"
  5. >
  6. <Button
  7. accessibleLabel={null}
  8. className="c-explorer__item__link"
  9. href="/admin/pages/5/"
  10. icon=""
  11. isLoading={false}
  12. onClick={null}
  13. preventDefault={true}
  14. target={null}
  15. >
  16. <Icon
  17. className="c-explorer__children"
  18. name="folder-inverse"
  19. title={null}
  20. />
  21. <h3
  22. className="c-explorer__item__title"
  23. >
  24. test
  25. </h3>
  26. </Button>
  27. <Button
  28. accessibleLabel={null}
  29. className="c-explorer__item__action c-explorer__item__action--small"
  30. href="/admin/pages/5/edit/"
  31. icon=""
  32. isLoading={false}
  33. onClick={null}
  34. preventDefault={true}
  35. target={null}
  36. >
  37. <Icon
  38. className=""
  39. name="edit"
  40. title="Edit 'test'"
  41. />
  42. </Button>
  43. <Button
  44. accessibleLabel={null}
  45. className="c-explorer__item__action"
  46. href="#"
  47. icon=""
  48. isLoading={false}
  49. onClick={[Function]}
  50. preventDefault={true}
  51. target={null}
  52. >
  53. <Icon
  54. className=""
  55. name="arrow-right"
  56. title="See children"
  57. />
  58. </Button>
  59. </div>
  60. `;
  61. exports[`ExplorerItem renders 1`] = `
  62. <div
  63. className="c-explorer__item"
  64. >
  65. <Button
  66. accessibleLabel={null}
  67. className="c-explorer__item__link"
  68. href="/admin/pages/5/"
  69. icon=""
  70. isLoading={false}
  71. onClick={null}
  72. preventDefault={true}
  73. target={null}
  74. >
  75. <h3
  76. className="c-explorer__item__title"
  77. >
  78. test
  79. </h3>
  80. </Button>
  81. <Button
  82. accessibleLabel={null}
  83. className="c-explorer__item__action c-explorer__item__action--small"
  84. href="/admin/pages/5/edit/"
  85. icon=""
  86. isLoading={false}
  87. onClick={null}
  88. preventDefault={true}
  89. target={null}
  90. >
  91. <Icon
  92. className=""
  93. name="edit"
  94. title="Edit 'test'"
  95. />
  96. </Button>
  97. </div>
  98. `;
  99. exports[`ExplorerItem should show a publication status if not live 1`] = `
  100. <div
  101. className="c-explorer__item"
  102. >
  103. <Button
  104. accessibleLabel={null}
  105. className="c-explorer__item__link"
  106. href="/admin/pages/5/"
  107. icon=""
  108. isLoading={false}
  109. onClick={null}
  110. preventDefault={true}
  111. target={null}
  112. >
  113. <Icon
  114. className="c-explorer__children"
  115. name="folder-inverse"
  116. title={null}
  117. />
  118. <h3
  119. className="c-explorer__item__title"
  120. >
  121. test
  122. </h3>
  123. <span
  124. className="c-explorer__meta"
  125. >
  126. <PublicationStatus
  127. status={
  128. Object {
  129. "has_unpublished_changes": true,
  130. "live": false,
  131. "status": "test",
  132. }
  133. }
  134. />
  135. </span>
  136. </Button>
  137. <Button
  138. accessibleLabel={null}
  139. className="c-explorer__item__action c-explorer__item__action--small"
  140. href="/admin/pages/5/edit/"
  141. icon=""
  142. isLoading={false}
  143. onClick={null}
  144. preventDefault={true}
  145. target={null}
  146. >
  147. <Icon
  148. className=""
  149. name="edit"
  150. title="Edit 'test'"
  151. />
  152. </Button>
  153. <Button
  154. accessibleLabel={null}
  155. className="c-explorer__item__action"
  156. href="#"
  157. icon=""
  158. isLoading={false}
  159. onClick={[Function]}
  160. preventDefault={true}
  161. target={null}
  162. >
  163. <Icon
  164. className=""
  165. name="arrow-right"
  166. title="See children"
  167. />
  168. </Button>
  169. </div>
  170. `;
  171. exports[`ExplorerItem should show a publication status with unpublished changes 1`] = `
  172. <div
  173. className="c-explorer__item"
  174. >
  175. <Button
  176. accessibleLabel={null}
  177. className="c-explorer__item__link"
  178. href="/admin/pages/5/"
  179. icon=""
  180. isLoading={false}
  181. onClick={null}
  182. preventDefault={true}
  183. target={null}
  184. >
  185. <Icon
  186. className="c-explorer__children"
  187. name="folder-inverse"
  188. title={null}
  189. />
  190. <h3
  191. className="c-explorer__item__title"
  192. >
  193. test
  194. </h3>
  195. <span
  196. className="c-explorer__meta"
  197. >
  198. <PublicationStatus
  199. status={
  200. Object {
  201. "has_unpublished_changes": true,
  202. "live": true,
  203. "status": "test",
  204. }
  205. }
  206. />
  207. </span>
  208. </Button>
  209. <Button
  210. accessibleLabel={null}
  211. className="c-explorer__item__action c-explorer__item__action--small"
  212. href="/admin/pages/5/edit/"
  213. icon=""
  214. isLoading={false}
  215. onClick={null}
  216. preventDefault={true}
  217. target={null}
  218. >
  219. <Icon
  220. className=""
  221. name="edit"
  222. title="Edit 'test'"
  223. />
  224. </Button>
  225. <Button
  226. accessibleLabel={null}
  227. className="c-explorer__item__action"
  228. href="#"
  229. icon=""
  230. isLoading={false}
  231. onClick={[Function]}
  232. preventDefault={true}
  233. target={null}
  234. >
  235. <Icon
  236. className=""
  237. name="arrow-right"
  238. title="See children"
  239. />
  240. </Button>
  241. </div>
  242. `;