@ministryofjustice/hmpps-digital-prison-reporting-frontend 4.27.0 → 4.28.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (581) hide show
  1. package/dpr/DprClientClass.js +43 -0
  2. package/dpr/DprClientClass.js.map +7 -0
  3. package/dpr/{DprClientClass.mjs → DprClientClass.ts} +1 -0
  4. package/dpr/DprFormValidationClass.js +157 -0
  5. package/dpr/DprFormValidationClass.js.map +7 -0
  6. package/dpr/{DprFormValidationClass.mjs → DprFormValidationClass.ts} +2 -1
  7. package/dpr/DprGenericFormClass.js +66 -0
  8. package/dpr/DprGenericFormClass.js.map +7 -0
  9. package/dpr/{DprGenericFormClass.mjs → DprGenericFormClass.ts} +2 -1
  10. package/dpr/DprLoadingHelper.js +51 -0
  11. package/dpr/DprLoadingHelper.js.map +7 -0
  12. package/dpr/{DprLoadingHelper.mjs → DprLoadingHelper.ts} +1 -0
  13. package/dpr/DprPollingStatusClass.js +79 -0
  14. package/dpr/DprPollingStatusClass.js.map +7 -0
  15. package/dpr/{DprPollingStatusClass.mjs → DprPollingStatusClass.ts} +2 -1
  16. package/dpr/DprQueryParamClass.js +231 -0
  17. package/dpr/DprQueryParamClass.js.map +7 -0
  18. package/dpr/{DprQueryParamClass.mjs → DprQueryParamClass.ts} +2 -1
  19. package/dpr/DprSyncLoading.js +44 -0
  20. package/dpr/DprSyncLoading.js.map +7 -0
  21. package/dpr/{DprSyncLoading.mjs → DprSyncLoading.ts} +2 -1
  22. package/dpr/all.js +111 -0
  23. package/dpr/all.js.map +7 -0
  24. package/dpr/{all.mjs → all.ts} +29 -28
  25. package/dpr/assets/app.js +1 -1
  26. package/dpr/assets/app.js.map +4 -4
  27. package/dpr/components/_async/async-filters-form/clientClass.js +76 -0
  28. package/dpr/components/_async/async-filters-form/clientClass.js.map +7 -0
  29. package/dpr/components/_async/async-filters-form/{clientClass.mjs → clientClass.ts} +3 -2
  30. package/dpr/components/_async/async-filters-form/sortByTemplate.js +60 -1
  31. package/dpr/components/_async/async-filters-form/sortByTemplate.js.map +3 -3
  32. package/dpr/components/_async/async-filters-form/types.d.js +16 -1
  33. package/dpr/components/_async/async-filters-form/types.d.js.map +3 -3
  34. package/dpr/components/_async/async-filters-form/utils.js +180 -1
  35. package/dpr/components/_async/async-filters-form/utils.js.map +3 -3
  36. package/dpr/components/_async/async-polling/clientClass.js +78 -0
  37. package/dpr/components/_async/async-polling/clientClass.js.map +7 -0
  38. package/dpr/components/_async/async-polling/{clientClass.mjs → clientClass.ts} +2 -1
  39. package/dpr/components/_catalogue/catalogue/types.js +16 -1
  40. package/dpr/components/_catalogue/catalogue/types.js.map +3 -3
  41. package/dpr/components/_catalogue/catalogue/utils.js +83 -1
  42. package/dpr/components/_catalogue/catalogue/utils.js.map +3 -3
  43. package/dpr/components/_catalogue/catalogue-filter-by-type/clientClass.js +94 -0
  44. package/dpr/components/_catalogue/catalogue-filter-by-type/clientClass.js.map +7 -0
  45. package/dpr/components/_catalogue/catalogue-filter-by-type/{clientClass.mjs → clientClass.ts} +2 -1
  46. package/dpr/components/_catalogue/catalogue-filters/clientClass.js +70 -0
  47. package/dpr/components/_catalogue/catalogue-filters/clientClass.js.map +7 -0
  48. package/dpr/components/_catalogue/catalogue-filters/{clientClass.mjs → clientClass.ts} +2 -1
  49. package/dpr/components/_catalogue/catalogue-list/utils.js +140 -1
  50. package/dpr/components/_catalogue/catalogue-list/utils.js.map +3 -3
  51. package/dpr/components/_catalogue/catalogue-search/clientClass.js +106 -0
  52. package/dpr/components/_catalogue/catalogue-search/clientClass.js.map +7 -0
  53. package/dpr/components/_catalogue/catalogue-search/{clientClass.mjs → clientClass.ts} +3 -2
  54. package/dpr/components/_catalogue/catalogue-unauthorised-toggle/clientClass.js +135 -0
  55. package/dpr/components/_catalogue/catalogue-unauthorised-toggle/clientClass.js.map +7 -0
  56. package/dpr/components/_catalogue/catalogue-unauthorised-toggle/{clientClass.mjs → clientClass.ts} +2 -1
  57. package/dpr/components/_charts/chart/Chart.js +99 -1
  58. package/dpr/components/_charts/chart/Chart.js.map +3 -3
  59. package/dpr/components/_charts/chart/ChartColours.js +61 -1
  60. package/dpr/components/_charts/chart/ChartColours.js.map +3 -3
  61. package/dpr/components/_charts/chart/ChartTimeseries.js +101 -1
  62. package/dpr/components/_charts/chart/ChartTimeseries.js.map +3 -3
  63. package/dpr/components/_charts/chart/bar/BarChart.js +193 -1
  64. package/dpr/components/_charts/chart/bar/BarChart.js.map +3 -3
  65. package/dpr/components/_charts/chart/bar/clientClass.js +98 -0
  66. package/dpr/components/_charts/chart/bar/clientClass.js.map +7 -0
  67. package/dpr/components/_charts/chart/bar/{clientClass.mjs → clientClass.ts} +2 -1
  68. package/dpr/components/_charts/chart/bar/types.js +16 -1
  69. package/dpr/components/_charts/chart/bar/types.js.map +3 -3
  70. package/dpr/components/_charts/chart/bar/validate.js +73 -1
  71. package/dpr/components/_charts/chart/bar/validate.js.map +3 -3
  72. package/dpr/components/_charts/chart/bar-timeseries/BarTimeseriesChart.js +80 -1
  73. package/dpr/components/_charts/chart/bar-timeseries/BarTimeseriesChart.js.map +3 -3
  74. package/dpr/components/_charts/chart/bar-timeseries/types.js +16 -1
  75. package/dpr/components/_charts/chart/bar-timeseries/types.js.map +3 -3
  76. package/dpr/components/_charts/chart/bar-timeseries/validate.js +48 -1
  77. package/dpr/components/_charts/chart/bar-timeseries/validate.js.map +3 -3
  78. package/dpr/components/_charts/chart/buckets/Buckets.js +194 -1
  79. package/dpr/components/_charts/chart/buckets/Buckets.js.map +3 -3
  80. package/dpr/components/_charts/chart/buckets/types.js +16 -1
  81. package/dpr/components/_charts/chart/buckets/types.js.map +3 -3
  82. package/dpr/components/_charts/chart/buckets/validate.js +40 -1
  83. package/dpr/components/_charts/chart/buckets/validate.js.map +3 -3
  84. package/dpr/components/_charts/chart/chart-config.js +62 -1
  85. package/dpr/components/_charts/chart/chart-config.js.map +3 -3
  86. package/dpr/components/_charts/chart/clientClass.js +136 -0
  87. package/dpr/components/_charts/chart/clientClass.js.map +7 -0
  88. package/dpr/components/_charts/chart/{clientClass.mjs → clientClass.ts} +2 -1
  89. package/dpr/components/_charts/chart/doughnut/DoughnutChart.js +96 -1
  90. package/dpr/components/_charts/chart/doughnut/DoughnutChart.js.map +3 -3
  91. package/dpr/components/_charts/chart/doughnut/clientClass.js +170 -0
  92. package/dpr/components/_charts/chart/doughnut/clientClass.js.map +7 -0
  93. package/dpr/components/_charts/chart/doughnut/{clientClass.mjs → clientClass.ts} +2 -1
  94. package/dpr/components/_charts/chart/doughnut/types.js +16 -1
  95. package/dpr/components/_charts/chart/doughnut/types.js.map +3 -3
  96. package/dpr/components/_charts/chart/doughnut/validate.js +48 -1
  97. package/dpr/components/_charts/chart/doughnut/validate.js.map +3 -3
  98. package/dpr/components/_charts/chart/heatmap/HeatmapChart.js +213 -1
  99. package/dpr/components/_charts/chart/heatmap/HeatmapChart.js.map +3 -3
  100. package/dpr/components/_charts/chart/heatmap/clientClass.js +118 -0
  101. package/dpr/components/_charts/chart/heatmap/clientClass.js.map +7 -0
  102. package/dpr/components/_charts/chart/heatmap/{clientClass.mjs → clientClass.ts} +2 -1
  103. package/dpr/components/_charts/chart/heatmap/types.js +16 -1
  104. package/dpr/components/_charts/chart/heatmap/types.js.map +3 -3
  105. package/dpr/components/_charts/chart/heatmap/validate.js +40 -1
  106. package/dpr/components/_charts/chart/heatmap/validate.js.map +3 -3
  107. package/dpr/components/_charts/chart/line/LineChart.js +107 -1
  108. package/dpr/components/_charts/chart/line/LineChart.js.map +3 -3
  109. package/dpr/components/_charts/chart/line/clientClass.js +93 -0
  110. package/dpr/components/_charts/chart/line/clientClass.js.map +7 -0
  111. package/dpr/components/_charts/chart/line/{clientClass.mjs → clientClass.ts} +2 -1
  112. package/dpr/components/_charts/chart/line/types.js +16 -1
  113. package/dpr/components/_charts/chart/line/types.js.map +3 -3
  114. package/dpr/components/_charts/chart/line/validate.js +48 -1
  115. package/dpr/components/_charts/chart/line/validate.js.map +3 -3
  116. package/dpr/components/_charts/chart/line-timeseries/LineTimeseriesChart.js +81 -1
  117. package/dpr/components/_charts/chart/line-timeseries/LineTimeseriesChart.js.map +3 -3
  118. package/dpr/components/_charts/chart/line-timeseries/types.js +16 -1
  119. package/dpr/components/_charts/chart/line-timeseries/types.js.map +3 -3
  120. package/dpr/components/_charts/chart/line-timeseries/validate.js +48 -1
  121. package/dpr/components/_charts/chart/line-timeseries/validate.js.map +3 -3
  122. package/dpr/components/_charts/utils.js +240 -1
  123. package/dpr/components/_charts/utils.js.map +3 -3
  124. package/dpr/components/_dashboards/dashboard-list/types.js +16 -1
  125. package/dpr/components/_dashboards/dashboard-list/types.js.map +3 -3
  126. package/dpr/components/_dashboards/dashboard-list/utils.js +170 -1
  127. package/dpr/components/_dashboards/dashboard-list/utils.js.map +3 -3
  128. package/dpr/components/_dashboards/dashboard-list/validate.js +43 -1
  129. package/dpr/components/_dashboards/dashboard-list/validate.js.map +3 -3
  130. package/dpr/components/_dashboards/dashboard-visualisation/Validate.js +95 -1
  131. package/dpr/components/_dashboards/dashboard-visualisation/Validate.js.map +3 -3
  132. package/dpr/components/_dashboards/dashboard-visualisation/types.js +40 -1
  133. package/dpr/components/_dashboards/dashboard-visualisation/types.js.map +3 -3
  134. package/dpr/components/_dashboards/scorecard/Scorecard.js +176 -1
  135. package/dpr/components/_dashboards/scorecard/Scorecard.js.map +3 -3
  136. package/dpr/components/_dashboards/scorecard/clientClass.js +50 -0
  137. package/dpr/components/_dashboards/scorecard/clientClass.js.map +7 -0
  138. package/dpr/components/_dashboards/scorecard/{clientClass.mjs → clientClass.ts} +2 -1
  139. package/dpr/components/_dashboards/scorecard/types.js +16 -1
  140. package/dpr/components/_dashboards/scorecard/types.js.map +3 -3
  141. package/dpr/components/_dashboards/scorecard/utils.js +61 -1
  142. package/dpr/components/_dashboards/scorecard/utils.js.map +3 -3
  143. package/dpr/components/_dashboards/scorecard/validate.js +50 -1
  144. package/dpr/components/_dashboards/scorecard/validate.js.map +3 -3
  145. package/dpr/components/_dashboards/scorecard-group/ScorecardGroup.js +212 -1
  146. package/dpr/components/_dashboards/scorecard-group/ScorecardGroup.js.map +3 -3
  147. package/dpr/components/_dashboards/scorecard-group/types.js +16 -1
  148. package/dpr/components/_dashboards/scorecard-group/types.js.map +3 -3
  149. package/dpr/components/_dashboards/scorecard-group/validate.js +50 -1
  150. package/dpr/components/_dashboards/scorecard-group/validate.js.map +3 -3
  151. package/dpr/components/_filters/filter-input/enum.js +38 -1
  152. package/dpr/components/_filters/filter-input/enum.js.map +3 -3
  153. package/dpr/components/_filters/filter-input/filters.js +37 -1
  154. package/dpr/components/_filters/filter-input/filters.js.map +3 -3
  155. package/dpr/components/_filters/filter-input/types.d.js +16 -1
  156. package/dpr/components/_filters/filter-input/types.d.js.map +3 -3
  157. package/dpr/components/_filters/filters-form/clientClass.js +104 -0
  158. package/dpr/components/_filters/filters-form/clientClass.js.map +7 -0
  159. package/dpr/components/_filters/filters-form/{clientClass.mjs → clientClass.ts} +2 -1
  160. package/dpr/components/_filters/filters-interactive/clientClass.js +55 -0
  161. package/dpr/components/_filters/filters-interactive/clientClass.js.map +7 -0
  162. package/dpr/components/_filters/filters-interactive/{clientClass.mjs → clientClass.ts} +2 -1
  163. package/dpr/components/_filters/filters-selected/clientClass.js +396 -0
  164. package/dpr/components/_filters/filters-selected/clientClass.js.map +7 -0
  165. package/dpr/components/_filters/filters-selected/{clientClass.mjs → clientClass.ts} +7 -7
  166. package/dpr/components/_filters/filters-selected/utils.js +314 -1
  167. package/dpr/components/_filters/filters-selected/utils.js.map +3 -3
  168. package/dpr/components/_filters/filtersTypeEnum.js +32 -1
  169. package/dpr/components/_filters/filtersTypeEnum.js.map +3 -3
  170. package/dpr/components/_filters/types.d.js +16 -1
  171. package/dpr/components/_filters/types.d.js.map +3 -3
  172. package/dpr/components/_filters/utils.js +385 -1
  173. package/dpr/components/_filters/utils.js.map +3 -3
  174. package/dpr/components/_inputs/autocomplete-text-input/clientClass.js +153 -0
  175. package/dpr/components/_inputs/autocomplete-text-input/clientClass.js.map +7 -0
  176. package/dpr/components/_inputs/autocomplete-text-input/{clientClass.mjs → clientClass.ts} +2 -1
  177. package/dpr/components/_inputs/autocomplete-text-input/utils.js +45 -1
  178. package/dpr/components/_inputs/autocomplete-text-input/utils.js.map +3 -3
  179. package/dpr/components/_inputs/date-input/clientClass.js +109 -0
  180. package/dpr/components/_inputs/date-input/clientClass.js.map +7 -0
  181. package/dpr/components/_inputs/date-input/{clientClass.mjs → clientClass.ts} +2 -1
  182. package/dpr/components/_inputs/date-input/utils.js +88 -1
  183. package/dpr/components/_inputs/date-input/utils.js.map +3 -3
  184. package/dpr/components/_inputs/date-range/clientClass.js +206 -0
  185. package/dpr/components/_inputs/date-range/clientClass.js.map +7 -0
  186. package/dpr/components/_inputs/date-range/{clientClass.mjs → clientClass.ts} +2 -1
  187. package/dpr/components/_inputs/date-range/types.js +38 -1
  188. package/dpr/components/_inputs/date-range/types.js.map +3 -3
  189. package/dpr/components/_inputs/date-range/utils.js +229 -1
  190. package/dpr/components/_inputs/date-range/utils.js.map +3 -3
  191. package/dpr/components/_inputs/granular-date-range/clientClass.js +245 -0
  192. package/dpr/components/_inputs/granular-date-range/clientClass.js.map +7 -0
  193. package/dpr/components/_inputs/granular-date-range/{clientClass.mjs → clientClass.ts} +2 -1
  194. package/dpr/components/_inputs/granular-date-range/types.js +70 -1
  195. package/dpr/components/_inputs/granular-date-range/types.js.map +3 -3
  196. package/dpr/components/_inputs/granular-date-range/utils.js +445 -1
  197. package/dpr/components/_inputs/granular-date-range/utils.js.map +3 -3
  198. package/dpr/components/_inputs/multi-select/utils.js +88 -1
  199. package/dpr/components/_inputs/multi-select/utils.js.map +3 -3
  200. package/dpr/components/_inputs/start-end-date/utils.js +84 -1
  201. package/dpr/components/_inputs/start-end-date/utils.js.map +3 -3
  202. package/dpr/components/_reports/report-actions/actionsTemplate.js +59 -1
  203. package/dpr/components/_reports/report-actions/actionsTemplate.js.map +3 -3
  204. package/dpr/components/_reports/report-actions/clientClass.js +103 -0
  205. package/dpr/components/_reports/report-actions/clientClass.js.map +7 -0
  206. package/dpr/components/_reports/report-actions/{clientClass.mjs → clientClass.ts} +2 -1
  207. package/dpr/components/_reports/report-actions/types.d.js +16 -1
  208. package/dpr/components/_reports/report-actions/types.d.js.map +3 -3
  209. package/dpr/components/_reports/report-actions/utils.js +97 -1
  210. package/dpr/components/_reports/report-actions/utils.js.map +3 -3
  211. package/dpr/components/_reports/report-columns-form/clientClass.js +76 -0
  212. package/dpr/components/_reports/report-columns-form/clientClass.js.map +7 -0
  213. package/dpr/components/_reports/report-columns-form/{clientClass.mjs → clientClass.ts} +2 -1
  214. package/dpr/components/_reports/report-columns-form/types.d.js +16 -1
  215. package/dpr/components/_reports/report-columns-form/types.d.js.map +3 -3
  216. package/dpr/components/_reports/report-columns-form/utils.js +65 -1
  217. package/dpr/components/_reports/report-columns-form/utils.js.map +3 -3
  218. package/dpr/components/_reports/report-data-table/clientClass.js +80 -0
  219. package/dpr/components/_reports/report-data-table/clientClass.js.map +7 -0
  220. package/dpr/components/_reports/report-data-table/{clientClass.mjs → clientClass.ts} +2 -1
  221. package/dpr/components/_reports/report-data-table/types.d.js +16 -1
  222. package/dpr/components/_reports/report-data-table/types.d.js.map +3 -3
  223. package/dpr/components/_reports/report-data-table/utils.js +122 -1
  224. package/dpr/components/_reports/report-data-table/utils.js.map +3 -3
  225. package/dpr/components/_reports/report-download-message/clientClass.js +42 -0
  226. package/dpr/components/_reports/report-download-message/clientClass.js.map +7 -0
  227. package/dpr/components/_reports/report-download-message/{clientClass.mjs → clientClass.ts} +2 -1
  228. package/dpr/components/_reports/report-pagination/clientClass.js +61 -0
  229. package/dpr/components/_reports/report-pagination/clientClass.js.map +7 -0
  230. package/dpr/components/_reports/report-pagination/{clientClass.mjs → clientClass.ts} +2 -1
  231. package/dpr/components/_reports/report-pagination/types.d.js +16 -1
  232. package/dpr/components/_reports/report-pagination/types.d.js.map +3 -3
  233. package/dpr/components/_reports/report-pagination/utils.js +105 -1
  234. package/dpr/components/_reports/report-pagination/utils.js.map +3 -3
  235. package/dpr/components/_reports/report-totals/utils.js +42 -1
  236. package/dpr/components/_reports/report-totals/utils.js.map +3 -3
  237. package/dpr/components/bookmark-toggle/clientClass.js +111 -0
  238. package/dpr/components/bookmark-toggle/clientClass.js.map +7 -0
  239. package/dpr/components/bookmark-toggle/{clientClass.mjs → clientClass.ts} +2 -1
  240. package/dpr/components/card-group/clientClass.js +53 -0
  241. package/dpr/components/card-group/clientClass.js.map +7 -0
  242. package/dpr/components/card-group/{clientClass.mjs → clientClass.ts} +2 -1
  243. package/dpr/components/card-group/utils.js +57 -1
  244. package/dpr/components/card-group/utils.js.map +3 -3
  245. package/dpr/components/report-list/defaultTokenProvider.js +36 -1
  246. package/dpr/components/report-list/defaultTokenProvider.js.map +3 -3
  247. package/dpr/components/report-list/types.d.js +16 -1
  248. package/dpr/components/report-list/types.d.js.map +3 -3
  249. package/dpr/components/report-list/utils.js +238 -1
  250. package/dpr/components/report-list/utils.js.map +3 -3
  251. package/dpr/components/show-more/clientClass.js +63 -0
  252. package/dpr/components/show-more/clientClass.js.map +7 -0
  253. package/dpr/components/show-more/{clientClass.mjs → clientClass.ts} +2 -1
  254. package/dpr/components/show-more/utils.js +38 -3
  255. package/dpr/components/show-more/utils.js.map +3 -3
  256. package/dpr/components/user-reports/bookmarks/utils.js +198 -1
  257. package/dpr/components/user-reports/bookmarks/utils.js.map +3 -3
  258. package/dpr/components/user-reports/requested/clientClass.js +132 -0
  259. package/dpr/components/user-reports/requested/clientClass.js.map +7 -0
  260. package/dpr/components/user-reports/requested/{clientClass.mjs → clientClass.ts} +2 -1
  261. package/dpr/components/user-reports/requested/utils.js +65 -1
  262. package/dpr/components/user-reports/requested/utils.js.map +3 -3
  263. package/dpr/components/user-reports/types.d.js +16 -1
  264. package/dpr/components/user-reports/types.d.js.map +3 -3
  265. package/dpr/components/user-reports/utils.js +365 -1
  266. package/dpr/components/user-reports/utils.js.map +3 -3
  267. package/dpr/components/user-reports/viewed/clientClass.js +102 -0
  268. package/dpr/components/user-reports/viewed/clientClass.js.map +7 -0
  269. package/dpr/components/user-reports/viewed/{clientClass.mjs → clientClass.ts} +2 -1
  270. package/dpr/components/user-reports/viewed/utils.js +37 -1
  271. package/dpr/components/user-reports/viewed/utils.js.map +3 -3
  272. package/dpr/data/agentConfig.js +35 -1
  273. package/dpr/data/agentConfig.js.map +3 -3
  274. package/dpr/data/dashboardClient.js +108 -1
  275. package/dpr/data/dashboardClient.js.map +3 -3
  276. package/dpr/data/dprReportingClient.js +55 -1
  277. package/dpr/data/dprReportingClient.js.map +3 -3
  278. package/dpr/data/missingReportClient.js +55 -1
  279. package/dpr/data/missingReportClient.js.map +3 -3
  280. package/dpr/data/productCollectionClient.js +58 -1
  281. package/dpr/data/productCollectionClient.js.map +3 -3
  282. package/dpr/data/reportDataStore.js +77 -1
  283. package/dpr/data/reportDataStore.js.map +3 -3
  284. package/dpr/data/reportingClient.js +173 -1
  285. package/dpr/data/reportingClient.js.map +3 -3
  286. package/dpr/data/restClient.js +143 -1
  287. package/dpr/data/restClient.js.map +3 -3
  288. package/dpr/data/types.d.js +16 -1
  289. package/dpr/data/types.d.js.map +3 -3
  290. package/dpr/middleware/reportAuthoriser.js +63 -1
  291. package/dpr/middleware/reportAuthoriser.js.map +3 -3
  292. package/dpr/middleware/setUpDprResources.js +173 -1
  293. package/dpr/middleware/setUpDprResources.js.map +3 -3
  294. package/dpr/middleware/setUpNestedRoute.js +35 -1
  295. package/dpr/middleware/setUpNestedRoute.js.map +3 -3
  296. package/dpr/routes/index.js +50 -1
  297. package/dpr/routes/index.js.map +3 -3
  298. package/dpr/routes/journeys/api-failures.cy.js +295 -1
  299. package/dpr/routes/journeys/api-failures.cy.js.map +3 -3
  300. package/dpr/routes/journeys/download-report/controller.js +65 -1
  301. package/dpr/routes/journeys/download-report/controller.js.map +3 -3
  302. package/dpr/routes/journeys/download-report/request-download/form/controller.js +98 -1
  303. package/dpr/routes/journeys/download-report/request-download/form/controller.js.map +3 -3
  304. package/dpr/routes/journeys/download-report/request-download/form/routes.js +50 -1
  305. package/dpr/routes/journeys/download-report/request-download/form/routes.js.map +3 -3
  306. package/dpr/routes/journeys/download-report/request-download/form/submitted/controller.js +68 -1
  307. package/dpr/routes/journeys/download-report/request-download/form/submitted/controller.js.map +3 -3
  308. package/dpr/routes/journeys/download-report/request-download/form/submitted/routes.js +47 -1
  309. package/dpr/routes/journeys/download-report/request-download/form/submitted/routes.js.map +3 -3
  310. package/dpr/routes/journeys/download-report/request-download/form/submitted/tests.cy.js +17 -1
  311. package/dpr/routes/journeys/download-report/request-download/form/submitted/tests.cy.js.map +2 -2
  312. package/dpr/routes/journeys/download-report/request-download/form/tests.cy.js +24 -1
  313. package/dpr/routes/journeys/download-report/request-download/form/tests.cy.js.map +3 -3
  314. package/dpr/routes/journeys/download-report/request-download/routes.js +46 -1
  315. package/dpr/routes/journeys/download-report/request-download/routes.js.map +3 -3
  316. package/dpr/routes/journeys/download-report/request-download/service.js +90 -1
  317. package/dpr/routes/journeys/download-report/request-download/service.js.map +3 -3
  318. package/dpr/routes/journeys/download-report/routes.js +63 -1
  319. package/dpr/routes/journeys/download-report/routes.js.map +3 -3
  320. package/dpr/routes/journeys/download-report/tests.cy.js +104 -1
  321. package/dpr/routes/journeys/download-report/tests.cy.js.map +3 -3
  322. package/dpr/routes/journeys/download-report/utils.js +196 -1
  323. package/dpr/routes/journeys/download-report/utils.js.map +3 -3
  324. package/dpr/routes/journeys/my-reports/bookmarks/controller.js +58 -1
  325. package/dpr/routes/journeys/my-reports/bookmarks/controller.js.map +3 -3
  326. package/dpr/routes/journeys/my-reports/bookmarks/list/controller.js +56 -1
  327. package/dpr/routes/journeys/my-reports/bookmarks/list/controller.js.map +3 -3
  328. package/dpr/routes/journeys/my-reports/bookmarks/list/routes.js +47 -1
  329. package/dpr/routes/journeys/my-reports/bookmarks/list/routes.js.map +3 -3
  330. package/dpr/routes/journeys/my-reports/bookmarks/list/tests.cy.js +32 -1
  331. package/dpr/routes/journeys/my-reports/bookmarks/list/tests.cy.js.map +3 -3
  332. package/dpr/routes/journeys/my-reports/bookmarks/routes.js +49 -1
  333. package/dpr/routes/journeys/my-reports/bookmarks/routes.js.map +3 -3
  334. package/dpr/routes/journeys/my-reports/bookmarks/service.js +123 -4
  335. package/dpr/routes/journeys/my-reports/bookmarks/service.js.map +3 -3
  336. package/dpr/routes/journeys/my-reports/bookmarks/tests.cy.js +448 -1
  337. package/dpr/routes/journeys/my-reports/bookmarks/tests.cy.js.map +3 -3
  338. package/dpr/routes/journeys/my-reports/bookmarks/utils.js +44 -1
  339. package/dpr/routes/journeys/my-reports/bookmarks/utils.js.map +3 -3
  340. package/dpr/routes/journeys/my-reports/recently-viewed/controller.js +53 -1
  341. package/dpr/routes/journeys/my-reports/recently-viewed/controller.js.map +3 -3
  342. package/dpr/routes/journeys/my-reports/recently-viewed/list/controller.js +65 -1
  343. package/dpr/routes/journeys/my-reports/recently-viewed/list/controller.js.map +3 -3
  344. package/dpr/routes/journeys/my-reports/recently-viewed/list/routes.js +47 -1
  345. package/dpr/routes/journeys/my-reports/recently-viewed/list/routes.js.map +3 -3
  346. package/dpr/routes/journeys/my-reports/recently-viewed/list/tests.cy.js +83 -1
  347. package/dpr/routes/journeys/my-reports/recently-viewed/list/tests.cy.js.map +3 -3
  348. package/dpr/routes/journeys/my-reports/recently-viewed/routes.js +49 -1
  349. package/dpr/routes/journeys/my-reports/recently-viewed/routes.js.map +3 -3
  350. package/dpr/routes/journeys/my-reports/recently-viewed/service.js +118 -1
  351. package/dpr/routes/journeys/my-reports/recently-viewed/service.js.map +3 -3
  352. package/dpr/routes/journeys/my-reports/requested-reports/controller.js +52 -1
  353. package/dpr/routes/journeys/my-reports/requested-reports/controller.js.map +3 -3
  354. package/dpr/routes/journeys/my-reports/requested-reports/list/controller.js +65 -1
  355. package/dpr/routes/journeys/my-reports/requested-reports/list/controller.js.map +3 -3
  356. package/dpr/routes/journeys/my-reports/requested-reports/list/routes.js +47 -1
  357. package/dpr/routes/journeys/my-reports/requested-reports/list/routes.js.map +3 -3
  358. package/dpr/routes/journeys/my-reports/requested-reports/list/tests.cy.js +15 -1
  359. package/dpr/routes/journeys/my-reports/requested-reports/list/tests.cy.js.map +3 -3
  360. package/dpr/routes/journeys/my-reports/requested-reports/routes.js +49 -1
  361. package/dpr/routes/journeys/my-reports/requested-reports/routes.js.map +3 -3
  362. package/dpr/routes/journeys/my-reports/requested-reports/service.js +200 -1
  363. package/dpr/routes/journeys/my-reports/requested-reports/service.js.map +3 -3
  364. package/dpr/routes/journeys/my-reports/routes.js +59 -1
  365. package/dpr/routes/journeys/my-reports/routes.js.map +3 -3
  366. package/dpr/routes/journeys/product-collection/routes.js +45 -1
  367. package/dpr/routes/journeys/product-collection/routes.js.map +3 -3
  368. package/dpr/routes/journeys/product-collection/selected/controller.js +55 -1
  369. package/dpr/routes/journeys/product-collection/selected/controller.js.map +3 -3
  370. package/dpr/routes/journeys/product-collection/selected/routes.js +37 -1
  371. package/dpr/routes/journeys/product-collection/selected/routes.js.map +3 -3
  372. package/dpr/routes/journeys/product-collection/selected/tests.cy.js +47 -1
  373. package/dpr/routes/journeys/product-collection/selected/tests.cy.js.map +3 -3
  374. package/dpr/routes/journeys/product-collection/selected/validation.js +41 -1
  375. package/dpr/routes/journeys/product-collection/selected/validation.js.map +3 -3
  376. package/dpr/routes/journeys/request-missing-report/form/controller.js +104 -1
  377. package/dpr/routes/journeys/request-missing-report/form/controller.js.map +3 -3
  378. package/dpr/routes/journeys/request-missing-report/form/routes.js +50 -1
  379. package/dpr/routes/journeys/request-missing-report/form/routes.js.map +3 -3
  380. package/dpr/routes/journeys/request-missing-report/form/tests.cy.js +22 -1
  381. package/dpr/routes/journeys/request-missing-report/form/tests.cy.js.map +3 -3
  382. package/dpr/routes/journeys/request-missing-report/form/validation.js +43 -1
  383. package/dpr/routes/journeys/request-missing-report/form/validation.js.map +3 -3
  384. package/dpr/routes/journeys/request-missing-report/routes.js +57 -1
  385. package/dpr/routes/journeys/request-missing-report/routes.js.map +3 -3
  386. package/dpr/routes/journeys/request-missing-report/submitted/controller.js +65 -1
  387. package/dpr/routes/journeys/request-missing-report/submitted/controller.js.map +3 -3
  388. package/dpr/routes/journeys/request-missing-report/submitted/routes.js +47 -1
  389. package/dpr/routes/journeys/request-missing-report/submitted/routes.js.map +3 -3
  390. package/dpr/routes/journeys/request-missing-report/submitted/tests.cy.js +14 -1
  391. package/dpr/routes/journeys/request-missing-report/submitted/tests.cy.js.map +3 -3
  392. package/dpr/routes/journeys/request-missing-report/tests.cy.js +37 -1
  393. package/dpr/routes/journeys/request-missing-report/tests.cy.js.map +3 -3
  394. package/dpr/routes/journeys/request-report/controller.js +79 -1
  395. package/dpr/routes/journeys/request-report/controller.js.map +3 -3
  396. package/dpr/routes/journeys/request-report/filters/controller.js +127 -1
  397. package/dpr/routes/journeys/request-report/filters/controller.js.map +3 -3
  398. package/dpr/routes/journeys/request-report/filters/routes.js +50 -1
  399. package/dpr/routes/journeys/request-report/filters/routes.js.map +3 -3
  400. package/dpr/routes/journeys/request-report/filters/tests.cy.js +451 -1
  401. package/dpr/routes/journeys/request-report/filters/tests.cy.js.map +3 -3
  402. package/dpr/routes/journeys/request-report/filters/utils.js +331 -1
  403. package/dpr/routes/journeys/request-report/filters/utils.js.map +3 -3
  404. package/dpr/routes/journeys/request-report/routes.js +100 -1
  405. package/dpr/routes/journeys/request-report/routes.js.map +3 -3
  406. package/dpr/routes/journeys/request-report/status/controller.js +80 -1
  407. package/dpr/routes/journeys/request-report/status/controller.js.map +3 -3
  408. package/dpr/routes/journeys/request-report/status/routes.js +48 -1
  409. package/dpr/routes/journeys/request-report/status/routes.js.map +3 -3
  410. package/dpr/routes/journeys/request-report/status/tests.cy.js +127 -1
  411. package/dpr/routes/journeys/request-report/status/tests.cy.js.map +3 -3
  412. package/dpr/routes/journeys/request-report/status/utils.js +72 -1
  413. package/dpr/routes/journeys/request-report/status/utils.js.map +3 -3
  414. package/dpr/routes/journeys/request-report/tests.cy.js +307 -1
  415. package/dpr/routes/journeys/request-report/tests.cy.js.map +3 -3
  416. package/dpr/routes/journeys/routes.js +46 -1
  417. package/dpr/routes/journeys/routes.js.map +3 -3
  418. package/dpr/routes/journeys/view-report/async/controller.js +89 -1
  419. package/dpr/routes/journeys/view-report/async/controller.js.map +3 -3
  420. package/dpr/routes/journeys/view-report/async/dashboard/controller.js +82 -1
  421. package/dpr/routes/journeys/view-report/async/dashboard/controller.js.map +3 -3
  422. package/dpr/routes/journeys/view-report/async/dashboard/routes.js +48 -1
  423. package/dpr/routes/journeys/view-report/async/dashboard/routes.js.map +3 -3
  424. package/dpr/routes/journeys/view-report/async/dashboard/tests.cy.js +33 -1
  425. package/dpr/routes/journeys/view-report/async/dashboard/tests.cy.js.map +3 -3
  426. package/dpr/routes/journeys/view-report/async/dashboard/utils.js +242 -1
  427. package/dpr/routes/journeys/view-report/async/dashboard/utils.js.map +3 -3
  428. package/dpr/routes/journeys/view-report/async/report/controller.js +83 -1
  429. package/dpr/routes/journeys/view-report/async/report/controller.js.map +3 -3
  430. package/dpr/routes/journeys/view-report/async/report/report-variants.cy.js +76 -1
  431. package/dpr/routes/journeys/view-report/async/report/report-variants.cy.js.map +3 -3
  432. package/dpr/routes/journeys/view-report/async/report/routes.js +53 -1
  433. package/dpr/routes/journeys/view-report/async/report/routes.js.map +3 -3
  434. package/dpr/routes/journeys/view-report/async/report/tests.cy.js +895 -1
  435. package/dpr/routes/journeys/view-report/async/report/tests.cy.js.map +3 -3
  436. package/dpr/routes/journeys/view-report/async/report/types.js +16 -1
  437. package/dpr/routes/journeys/view-report/async/report/types.js.map +3 -3
  438. package/dpr/routes/journeys/view-report/async/report/utils.js +427 -1
  439. package/dpr/routes/journeys/view-report/async/report/utils.js.map +3 -3
  440. package/dpr/routes/journeys/view-report/async/routes.js +52 -1
  441. package/dpr/routes/journeys/view-report/async/routes.js.map +3 -3
  442. package/dpr/routes/journeys/view-report/controller.js +62 -1
  443. package/dpr/routes/journeys/view-report/controller.js.map +4 -4
  444. package/dpr/routes/journeys/view-report/controller.ts +1 -1
  445. package/dpr/routes/journeys/view-report/routes.js +87 -1
  446. package/dpr/routes/journeys/view-report/routes.js.map +3 -3
  447. package/dpr/routes/journeys/view-report/sync/dashboard/controller.js +68 -1
  448. package/dpr/routes/journeys/view-report/sync/dashboard/controller.js.map +3 -3
  449. package/dpr/routes/journeys/view-report/sync/dashboard/routes.js +48 -1
  450. package/dpr/routes/journeys/view-report/sync/dashboard/routes.js.map +3 -3
  451. package/dpr/routes/journeys/view-report/sync/dashboard/utils.js +144 -1
  452. package/dpr/routes/journeys/view-report/sync/dashboard/utils.js.map +3 -3
  453. package/dpr/routes/journeys/view-report/sync/load-report/controller.js +102 -1
  454. package/dpr/routes/journeys/view-report/sync/load-report/controller.js.map +3 -3
  455. package/dpr/routes/journeys/view-report/sync/load-report/routes.js +47 -1
  456. package/dpr/routes/journeys/view-report/sync/load-report/routes.js.map +3 -3
  457. package/dpr/routes/journeys/view-report/sync/report/controller.js +99 -1
  458. package/dpr/routes/journeys/view-report/sync/report/controller.js.map +3 -3
  459. package/dpr/routes/journeys/view-report/sync/report/routes.js +51 -1
  460. package/dpr/routes/journeys/view-report/sync/report/routes.js.map +3 -3
  461. package/dpr/routes/journeys/view-report/sync/report/utils.js +298 -1
  462. package/dpr/routes/journeys/view-report/sync/report/utils.js.map +3 -3
  463. package/dpr/routes/journeys/view-report/sync/routes.js +51 -1
  464. package/dpr/routes/journeys/view-report/sync/routes.js.map +3 -3
  465. package/dpr/routes/journeys/view-report/sync/tests.cy.js +43 -1
  466. package/dpr/routes/journeys/view-report/sync/tests.cy.js.map +3 -3
  467. package/dpr/routes/journeys/view-report/utils.js +173 -1
  468. package/dpr/routes/journeys/view-report/utils.js.map +3 -3
  469. package/dpr/services/dashboardService.js +66 -1
  470. package/dpr/services/dashboardService.js.map +3 -3
  471. package/dpr/services/defaultFilterValuesService.js +114 -1
  472. package/dpr/services/defaultFilterValuesService.js.map +3 -3
  473. package/dpr/services/featureFlagService.js +65 -1
  474. package/dpr/services/featureFlagService.js.map +3 -3
  475. package/dpr/services/featureFlags.cy.js +72 -1
  476. package/dpr/services/featureFlags.cy.js.map +3 -3
  477. package/dpr/services/index.js +59 -1
  478. package/dpr/services/index.js.map +3 -3
  479. package/dpr/services/missingReport/missingReportService.js +52 -1
  480. package/dpr/services/missingReport/missingReportService.js.map +3 -3
  481. package/dpr/services/productCollection/productCollectionService.js +55 -1
  482. package/dpr/services/productCollection/productCollectionService.js.map +3 -3
  483. package/dpr/services/productCollection/productCollectionStoreService.js +61 -1
  484. package/dpr/services/productCollection/productCollectionStoreService.js.map +3 -3
  485. package/dpr/services/reportStoreService.js +51 -1
  486. package/dpr/services/reportStoreService.js.map +3 -3
  487. package/dpr/services/reportingService.js +81 -1
  488. package/dpr/services/reportingService.js.map +3 -3
  489. package/dpr/setUpNunjucksFilters.js +66 -1
  490. package/dpr/setUpNunjucksFilters.js.map +3 -3
  491. package/dpr/types/AsyncReportUtils.js +16 -1
  492. package/dpr/types/AsyncReportUtils.js.map +3 -3
  493. package/dpr/types/Bookmark.js +16 -1
  494. package/dpr/types/Bookmark.js.map +3 -3
  495. package/dpr/types/Charts.js +16 -1
  496. package/dpr/types/Charts.js.map +3 -3
  497. package/dpr/types/Download.js +16 -1
  498. package/dpr/types/Download.js.map +3 -3
  499. package/dpr/types/DprConfig.js +16 -1
  500. package/dpr/types/DprConfig.js.map +3 -3
  501. package/dpr/types/DprUser.js +43 -1
  502. package/dpr/types/DprUser.js.map +3 -3
  503. package/dpr/types/EmbeddedReportUtils.js +33 -1
  504. package/dpr/types/EmbeddedReportUtils.js.map +3 -3
  505. package/dpr/types/ExecutionData.d.js +16 -1
  506. package/dpr/types/ExecutionData.d.js.map +3 -3
  507. package/dpr/types/Metrics.js +16 -1
  508. package/dpr/types/Metrics.js.map +3 -3
  509. package/dpr/types/ReportQuery.js +168 -1
  510. package/dpr/types/ReportQuery.js.map +3 -3
  511. package/dpr/types/ReportStore.js +16 -1
  512. package/dpr/types/ReportStore.js.map +3 -3
  513. package/dpr/types/Services.d.js +16 -1
  514. package/dpr/types/Services.d.js.map +3 -3
  515. package/dpr/types/Templates.d.js +16 -1
  516. package/dpr/types/Templates.d.js.map +3 -3
  517. package/dpr/types/UserReports.js +55 -1
  518. package/dpr/types/UserReports.js.map +3 -3
  519. package/dpr/types/api.d.js +16 -1
  520. package/dpr/types/api.d.js.map +3 -3
  521. package/dpr/types/index.d.js +16 -1
  522. package/dpr/types/index.d.js.map +3 -3
  523. package/dpr/utils/CollatedSummaryBuilder/CollatedSummaryBuilder.js +91 -1
  524. package/dpr/utils/CollatedSummaryBuilder/CollatedSummaryBuilder.js.map +3 -3
  525. package/dpr/utils/CreateDprServices.js +66 -1
  526. package/dpr/utils/CreateDprServices.js.map +3 -3
  527. package/dpr/utils/DataTableBuilder/DataTableBuilder.js +304 -1
  528. package/dpr/utils/DataTableBuilder/DataTableBuilder.js.map +3 -3
  529. package/dpr/utils/DataTableBuilder/types.d.js +16 -1
  530. package/dpr/utils/DataTableBuilder/types.d.js.map +3 -3
  531. package/dpr/utils/DateMapper/DateMapper.js +125 -1
  532. package/dpr/utils/DateMapper/DateMapper.js.map +3 -3
  533. package/dpr/utils/DateMapper/types.d.js +16 -1
  534. package/dpr/utils/DateMapper/types.d.js.map +3 -3
  535. package/dpr/utils/ErrorHandler.js +94 -1
  536. package/dpr/utils/ErrorHandler.js.map +3 -3
  537. package/dpr/utils/ParentChildDataTableBuilder/ParentChildDataTableBuilder.js +201 -1
  538. package/dpr/utils/ParentChildDataTableBuilder/ParentChildDataTableBuilder.js.map +3 -3
  539. package/dpr/utils/ParentChildDataTableBuilder/types.d.js +16 -1
  540. package/dpr/utils/ParentChildDataTableBuilder/types.d.js.map +3 -3
  541. package/dpr/utils/Personalisation/personalisationUtils.js +202 -1
  542. package/dpr/utils/Personalisation/personalisationUtils.js.map +3 -3
  543. package/dpr/utils/Personalisation/types.d.js +16 -1
  544. package/dpr/utils/Personalisation/types.d.js.map +3 -3
  545. package/dpr/utils/SectionedDataTableBuilder/SectionedDataTableBuilder.js +310 -1
  546. package/dpr/utils/SectionedDataTableBuilder/SectionedDataTableBuilder.js.map +3 -3
  547. package/dpr/utils/SectionedDataTableBuilder/types.d.js +16 -1
  548. package/dpr/utils/SectionedDataTableBuilder/types.d.js.map +3 -3
  549. package/dpr/utils/SectionedFieldsTableBuilder/SectionedFieldsTableBuilder.js +145 -1
  550. package/dpr/utils/SectionedFieldsTableBuilder/SectionedFieldsTableBuilder.js.map +3 -3
  551. package/dpr/utils/SummaryDataTableBuilder/SummaryDataTableBuilder.js +60 -1
  552. package/dpr/utils/SummaryDataTableBuilder/SummaryDataTableBuilder.js.map +3 -3
  553. package/dpr/utils/UserStoreItemBuilder.js +247 -1
  554. package/dpr/utils/UserStoreItemBuilder.js.map +3 -3
  555. package/dpr/utils/arrayUtils.js +28 -1
  556. package/dpr/utils/arrayUtils.js.map +3 -3
  557. package/dpr/utils/datasetHelper.js +229 -1
  558. package/dpr/utils/datasetHelper.js.map +3 -3
  559. package/dpr/utils/definitionUtils.js +133 -1
  560. package/dpr/utils/definitionUtils.js.map +3 -3
  561. package/dpr/utils/index.js +44 -1
  562. package/dpr/utils/index.js.map +3 -3
  563. package/dpr/utils/indexedAccesHelper.js +41 -1
  564. package/dpr/utils/indexedAccesHelper.js.map +3 -3
  565. package/dpr/utils/localsHelper.js +105 -1
  566. package/dpr/utils/localsHelper.js.map +3 -3
  567. package/dpr/utils/logger.js +48 -1
  568. package/dpr/utils/logger.js.map +3 -3
  569. package/dpr/utils/reportListsHelper.js +128 -12
  570. package/dpr/utils/reportListsHelper.js.map +3 -3
  571. package/dpr/utils/reportStoreHelper.js +65 -1
  572. package/dpr/utils/reportStoreHelper.js.map +3 -3
  573. package/dpr/utils/requestStatusHelper.js +172 -1
  574. package/dpr/utils/requestStatusHelper.js.map +3 -3
  575. package/dpr/utils/sanitisedError.js +45 -1
  576. package/dpr/utils/sanitisedError.js.map +3 -3
  577. package/dpr/utils/urlHelper.js +103 -1
  578. package/dpr/utils/urlHelper.js.map +3 -3
  579. package/dpr/validation/validate.js +52 -1
  580. package/dpr/validation/validate.js.map +3 -3
  581. package/package.json +11 -6
@@ -1,2 +1,449 @@
1
- "use strict";var l=require("@networkMocks/report/mockVariants/feature-testing/unprintable"),a=require("@networkMocks/report/mockVariants/feature-testing/emptyQuery"),n=require("../../../../../../cypress-tests/cypressUtils");context("Bookmarks list",()=>{const o="/embedded/platform/";describe("check the default starting state",()=>{it("should have the default bookmarks from the caseload bookmark config",()=>{(0,n.stubBaseTasks)(),(0,n.stubDefinitionsTasks)(),cy.visit(o),cy.findByRole("tab",{name:/Bookmarks/}).click(),cy.findByLabelText(/Bookmarks.*/i).within(()=>{cy.findAllByRole("rowgroup").eq(1).within(()=>{cy.findAllByRole("row").should("have.length",2),cy.findByRole("link",{name:(t,e)=>e.href.includes(l.featureTestingUnprintable.id)}),cy.findByRole("link",{name:(t,e)=>e.href.includes(a.featureTestingEmptyQuery.id)})})})})}),describe("check other interactions",()=>{before(()=>{(0,n.stubBaseTasks)(),(0,n.stubDefinitionsTasks)(),cy.task("stubDefinitionRequestExamplesSuccess"),cy.task("stubListExampleDashboard"),cy.task("stubDefinitionMockReportVariant35"),cy.task("stubTestDashboard8"),cy.task("stubDefinitionFeatureTestingInteractive"),cy.task("stubDashboardSuccessResult20"),cy.task("stubRequestSuccessResult20"),cy.task("stubPollingReportEndpoint")}),beforeEach(()=>{cy.visit(o)}),describe("Bookmarking via the catalogue",()=>{describe("report",()=>{it("should add a bookmark to the bookmarks list",()=>{cy.findByRole("tab",{name:/Bookmarks/}).click(),cy.findByLabelText(/Bookmarks.*/i).within(()=>{cy.findAllByRole("rowgroup").eq(1).within(()=>{cy.findAllByRole("row").should("have.length",2)})}),cy.findByLabelText(/Reports catalogue.*/i).within(()=>{cy.findByRole("row",{name:(t,e)=>!!e.textContent?.includes("Interactive Report with async filters")}).within(()=>{cy.findByRole("button",{name:/Add bookmark/}).click()})}),cy.findByLabelText(/Bookmarks.*/i).within(()=>{cy.findAllByRole("rowgroup").eq(1).within(()=>{cy.findAllByRole("row").should("have.length",3),cy.findAllByRole("row").contains("Interactive Report with async filters").should("exist")})}),cy.findByLabelText(/Reports catalogue.*/i).within(()=>{cy.findByRole("row",{name:(t,e)=>!!e.textContent?.includes("Interactive Report with async filters")}).within(()=>{cy.findByRole("button",{name:/Remove bookmark/}).should("exist")})})}),it("should remove a bookmark to the bookmarks list",()=>{cy.findByRole("tab",{name:/Bookmarks/}).click(),cy.findByLabelText(/Bookmarks.*/i).within(()=>{cy.findAllByRole("rowgroup").eq(1).within(()=>{cy.findAllByRole("row").should("have.length",3)})}),cy.findByLabelText(/Reports catalogue.*/i).within(()=>{cy.findByRole("row",{name:(t,e)=>!!e.textContent?.includes("Interactive Report with async filters")}).within(()=>{cy.findByRole("button",{name:/Remove bookmark/}).click()})}),cy.findByLabelText(/Bookmarks.*/i).within(()=>{cy.findAllByRole("rowgroup").eq(1).within(()=>{cy.findAllByRole("row").should("have.length",2)})}),cy.findByLabelText(/Reports catalogue.*/i).within(()=>{cy.findByRole("row",{name:(t,e)=>!!e.textContent?.includes("Interactive Report with async filters")}).within(()=>{cy.findByRole("button",{name:/Add bookmark/}).should("exist")})})})}),describe("dashboard",()=>{it("should add a bookmark to the bookmarks list",()=>{cy.findByRole("tab",{name:/Bookmarks/}).click(),cy.findByLabelText(/Bookmarks.*/i).within(()=>{cy.findAllByRole("rowgroup").eq(1).within(()=>{cy.findAllByRole("row").should("have.length",2)})}),cy.findByLabelText(/Reports catalogue.*/i).within(()=>{cy.findByRole("row",{name:(t,e)=>!!e.textContent?.includes("Data quality data set")}).within(()=>{cy.findByRole("button",{name:/Add bookmark/}).click()})}),cy.findByLabelText(/Bookmarks.*/i).within(()=>{cy.findAllByRole("rowgroup").eq(1).within(()=>{cy.findAllByRole("row").should("have.length",3),cy.findAllByRole("row").contains("Data quality data set").should("exist")})}),cy.findByLabelText(/Reports catalogue.*/i).within(()=>{cy.findByRole("row",{name:(t,e)=>!!e.textContent?.includes("Data quality data set")}).within(()=>{cy.findByRole("button",{name:/Remove bookmark/}).should("exist")})})}),it("should remove a bookmark from the bookmarks list",()=>{cy.findByRole("tab",{name:/Bookmarks/}).click(),cy.findByLabelText(/Bookmarks.*/i).within(()=>{cy.findAllByRole("rowgroup").eq(1).within(()=>{cy.findAllByRole("row").should("have.length",3)})}),cy.findByLabelText(/Reports catalogue.*/i).within(()=>{cy.findByRole("row",{name:(t,e)=>!!e.textContent?.includes("Data quality data set")}).within(()=>{cy.findByRole("button",{name:/Remove bookmark/}).click()})}),cy.findByLabelText(/Bookmarks.*/i).within(()=>{cy.findAllByRole("rowgroup").eq(1).within(()=>{cy.findAllByRole("row").should("have.length",2)})}),cy.findByLabelText(/Reports catalogue.*/i).within(()=>{cy.findByRole("row",{name:(t,e)=>!!e.textContent?.includes("Data quality data set")}).within(()=>{cy.findByRole("button",{name:/Add bookmark/}).should("exist")})})})}),describe("missing report",()=>{it("should not be able to be bookmarked",()=>{cy.findByRole("tab",{name:/Bookmarks/}).click(),cy.findByLabelText(/Reports catalogue.*/i).within(()=>{cy.findByRole("row",{name:(t,e)=>!!e.textContent?.includes("Description for missing report 1")}).within(()=>{cy.findByRole("button",{name:/Add bookmark/}).should("not.exist"),cy.findByRole("link",{name:/Request report/}).should("be.visible")})})})})}),describe("Removing via the user reports list",()=>{it("should remove a dashboard bookmark",()=>{cy.findByLabelText(/Reports catalogue.*/i).within(()=>{cy.findByRole("row",{name:(t,e)=>!!e.textContent?.includes("Data quality data set")}).within(()=>{cy.findByRole("button",{name:/Add bookmark/}).click()})}),cy.findByLabelText(/Bookmarks.*/i).within(()=>{cy.findAllByRole("rowgroup").eq(1).within(()=>{cy.findAllByRole("row").should("have.length",3)})}),cy.findByLabelText(/Reports catalogue.*/i).within(()=>{cy.findByRole("row",{name:(t,e)=>!!e.textContent?.includes("Data quality data set")}).within(()=>{cy.findByRole("button",{name:/Remove bookmark/}).click()})}),cy.findByLabelText(/Bookmarks.*/i).within(()=>{cy.findAllByRole("rowgroup").eq(1).within(()=>{cy.findAllByRole("row").should("have.length",2)})})}),it("should remove a report bookmark",()=>{cy.findByLabelText(/Reports catalogue.*/i).within(()=>{cy.findByRole("row",{name:(t,e)=>!!e.textContent?.includes("Interactive Report with async filters")}).within(()=>{cy.findByRole("button",{name:/Add bookmark/}).click()})}),cy.findByLabelText(/Bookmarks.*/i).within(()=>{cy.findAllByRole("rowgroup").eq(1).within(()=>{cy.findAllByRole("row").should("have.length",3)})}),cy.findByLabelText(/Reports catalogue.*/i).within(()=>{cy.findByRole("row",{name:(t,e)=>!!e.textContent?.includes("Interactive Report with async filters")}).within(()=>{cy.findByRole("button",{name:/Remove bookmark/}).click()})}),cy.findByLabelText(/Bookmarks.*/i).within(()=>{cy.findAllByRole("rowgroup").eq(1).within(()=>{cy.findAllByRole("row").should("have.length",2)})})})}),describe("Bookmarking via the report",()=>{let t;before(()=>{cy.task("stubDefinitionFeatureTestingMissingDesc"),cy.task("stubReportsFinishedStatus"),cy.task("stubViewAsyncReportingResults"),cy.task("stubRequestSuccessReportTablesCount"),cy.visit(o),cy.findByLabelText(/Reports catalogue.*/i).within(()=>{cy.findByRole("row",{name:(e,i)=>!!i.textContent?.includes("Feature testing")&&!!i.textContent?.includes("Missing variant description")&&!!i.textContent?.includes("Example variants used for feature testing")}).within(()=>{cy.findByRole("link",{name:"Request report"}).click()})}),cy.findByRole("combobox",{name:/Field 2/}).select("Value 2.1"),cy.findByRole("button",{name:/Request report/}).click(),cy.findByRole("button",{name:/Enable download/}).should("be.visible"),cy.url().then(e=>{t=e})}),it("should add a bookmark",()=>{cy.findByLabelText(/Bookmarks.*/i).within(()=>{cy.findAllByRole("rowgroup").eq(1).within(()=>{cy.findAllByRole("row").should("have.length",2)})}),cy.visit(t),cy.findByRole("button",{name:/Add bookmark/}).click(),cy.findByRole("button",{name:/Bookmarked/}).should("be.visible"),cy.visit(o),cy.findByLabelText(/Bookmarks.*/i).within(()=>{cy.findAllByRole("rowgroup").eq(1).within(()=>{cy.findAllByRole("row").should("have.length",3)})})}),it("should remove a bookmark",()=>{cy.findByLabelText(/Bookmarks.*/i).within(()=>{cy.findAllByRole("rowgroup").eq(1).within(()=>{cy.findAllByRole("row").should("have.length",3)})}),cy.visit(t),cy.findByRole("button",{name:/Remove bookmark/}).click(),cy.findByRole("button",{name:/Bookmark removed/}),cy.visit(o),cy.findByLabelText(/Bookmarks.*/i).within(()=>{cy.findAllByRole("rowgroup").eq(1).within(()=>{cy.findAllByRole("row").should("have.length",2)})})})}),describe("Bookmarking via the dashboard",()=>{let t;before(()=>{cy.task("stubTestDashboard8"),cy.task("stubMockDashboardsStatusFinished"),cy.task("stubViewAsyncResults"),cy.task("stubDashboardSuccessResult20"),cy.visit(o),cy.findByLabelText(/Reports catalogue.*/i).within(()=>{cy.findByRole("row",{name:(e,i)=>!!i.textContent?.includes("Test Dashboard")&&!!i.textContent?.includes("Dashboard used for testing testing")}).within(()=>{cy.findByRole("link",{name:"Request dashboard"}).click()})}),cy.findByRole("button",{name:/Request dashboard/}).click(),cy.url().then(e=>{t=e})}),it("should add a bookmark",()=>{cy.visit(t),cy.findByRole("button",{name:/Add bookmark/}).click().contains("Bookmarked"),cy.visit(o),cy.findByLabelText(/Bookmarks.*/i).within(()=>{cy.findAllByRole("rowgroup").eq(1).within(()=>{cy.findAllByRole("row").should("have.length",3)})})}),it("should remove a bookmark",()=>{cy.visit(o),cy.findByLabelText(/Bookmarks.*/i).within(()=>{cy.findAllByRole("rowgroup").eq(1).within(()=>{cy.findAllByRole("row").should("have.length",3)})}),cy.visit(t),cy.findByRole("button",{name:/Remove bookmark/}).click().contains("Bookmark removed"),cy.visit(o),cy.findByLabelText(/Bookmarks.*/i).within(()=>{cy.findAllByRole("rowgroup").eq(1).within(()=>{cy.findAllByRole("row").should("have.length",2)})})})}),describe("bookmarking should be idempotent",()=>{it("should not change the bookmark status of an already bookmarked item",()=>{cy.findByLabelText(/Reports catalogue.*/i).within(()=>{cy.findByRole("row",{name:(t,e)=>!!e.textContent?.includes("Interactive Report with async filters")}).within(()=>{cy.findByRole("button",{name:/Add bookmark/}).click()})}),cy.findByLabelText(/Reports catalogue.*/i).within(()=>{cy.findByRole("row",{name:(t,e)=>!!e.textContent?.includes("Interactive Report with async filters")}).within(()=>{cy.get("input").then(t=>{t.get(0).checked=!1,t.get(0).removeAttribute("checked")}),cy.get("input").invoke("attr","checked").should("equal",void 0)})}),cy.findByLabelText(/Reports catalogue.*/i).within(()=>{cy.findByRole("row",{name:(t,e)=>!!e.textContent?.includes("Interactive Report with async filters")}).within(()=>{cy.findByRole("button",{name:/Remove bookmark/}).click()})}),cy.reload(),cy.findByLabelText(/Reports catalogue.*/i).within(()=>{cy.findByRole("row",{name:(t,e)=>!!e.textContent?.includes("Interactive Report with async filters")}).within(()=>{cy.findByRole("button",{name:/Remove bookmark/}).should("exist")})}),cy.findByLabelText(/Reports catalogue.*/i).within(()=>{cy.findByRole("row",{name:(t,e)=>!!e.textContent?.includes("Interactive Report with async filters")}).within(()=>{cy.findByRole("button",{name:/Remove bookmark/}).click()})})}),it("should not change the bookmark status of an unbookmarked item",()=>{cy.findByLabelText(/Reports catalogue.*/i).within(()=>{cy.findByRole("row",{name:(t,e)=>!!e.textContent?.includes("Interactive Report with async filters")}).within(()=>{cy.get("input").then(t=>{t.get(0).checked=!0,t.get(0).setAttribute("checked","true")}),cy.get("input").invoke("attr","checked").should("not.equal",void 0).and("not.equal",!1)})}),cy.findByLabelText(/Reports catalogue.*/i).within(()=>{cy.findByRole("row",{name:(t,e)=>!!e.textContent?.includes("Interactive Report with async filters")}).within(()=>{cy.findByRole("button",{name:/Add bookmark/}).click()})}),cy.reload(),cy.findByLabelText(/Reports catalogue.*/i).within(()=>{cy.findByRole("row",{name:(t,e)=>!!e.textContent?.includes("Interactive Report with async filters")}).within(()=>{cy.findByRole("button",{name:/Add bookmark/}).should("exist")})})})})})});
1
+ "use strict";
2
+ var import_unprintable = require("@networkMocks/report/mockVariants/feature-testing/unprintable");
3
+ var import_emptyQuery = require("@networkMocks/report/mockVariants/feature-testing/emptyQuery");
4
+ var import_cypressUtils = require("../../../../../../cypress-tests/cypressUtils");
5
+ context("Bookmarks list", () => {
6
+ const path = "/embedded/platform/";
7
+ describe("check the default starting state", () => {
8
+ it("should have the default bookmarks from the caseload bookmark config", () => {
9
+ (0, import_cypressUtils.stubBaseTasks)();
10
+ (0, import_cypressUtils.stubDefinitionsTasks)();
11
+ cy.visit(path);
12
+ cy.findByRole("tab", { name: /Bookmarks/ }).click();
13
+ cy.findByLabelText(/Bookmarks.*/i).within(() => {
14
+ cy.findAllByRole("rowgroup").eq(1).within(() => {
15
+ cy.findAllByRole("row").should("have.length", 2);
16
+ cy.findByRole("link", {
17
+ name: (_, element) => element.href.includes(import_unprintable.featureTestingUnprintable.id)
18
+ });
19
+ cy.findByRole("link", {
20
+ name: (_, element) => element.href.includes(import_emptyQuery.featureTestingEmptyQuery.id)
21
+ });
22
+ });
23
+ });
24
+ });
25
+ });
26
+ describe("check other interactions", () => {
27
+ before(() => {
28
+ (0, import_cypressUtils.stubBaseTasks)();
29
+ (0, import_cypressUtils.stubDefinitionsTasks)();
30
+ cy.task("stubDefinitionRequestExamplesSuccess");
31
+ cy.task("stubListExampleDashboard");
32
+ cy.task("stubDefinitionMockReportVariant35");
33
+ cy.task("stubTestDashboard8");
34
+ cy.task("stubDefinitionFeatureTestingInteractive");
35
+ cy.task("stubDashboardSuccessResult20");
36
+ cy.task("stubRequestSuccessResult20");
37
+ cy.task("stubPollingReportEndpoint");
38
+ });
39
+ beforeEach(() => {
40
+ cy.visit(path);
41
+ });
42
+ describe("Bookmarking via the catalogue", () => {
43
+ describe("report", () => {
44
+ it("should add a bookmark to the bookmarks list", () => {
45
+ cy.findByRole("tab", { name: /Bookmarks/ }).click();
46
+ cy.findByLabelText(/Bookmarks.*/i).within(() => {
47
+ cy.findAllByRole("rowgroup").eq(1).within(() => {
48
+ cy.findAllByRole("row").should("have.length", 2);
49
+ });
50
+ });
51
+ cy.findByLabelText(/Reports catalogue.*/i).within(() => {
52
+ cy.findByRole("row", {
53
+ name: (_, element) => {
54
+ return Boolean(element.textContent?.includes("Interactive Report with async filters"));
55
+ }
56
+ }).within(() => {
57
+ cy.findByRole("button", { name: /Add bookmark/ }).click();
58
+ });
59
+ });
60
+ cy.findByLabelText(/Bookmarks.*/i).within(() => {
61
+ cy.findAllByRole("rowgroup").eq(1).within(() => {
62
+ cy.findAllByRole("row").should("have.length", 3);
63
+ cy.findAllByRole("row").contains("Interactive Report with async filters").should("exist");
64
+ });
65
+ });
66
+ cy.findByLabelText(/Reports catalogue.*/i).within(() => {
67
+ cy.findByRole("row", {
68
+ name: (_, element) => {
69
+ return Boolean(element.textContent?.includes("Interactive Report with async filters"));
70
+ }
71
+ }).within(() => {
72
+ cy.findByRole("button", { name: /Remove bookmark/ }).should("exist");
73
+ });
74
+ });
75
+ });
76
+ it("should remove a bookmark to the bookmarks list", () => {
77
+ cy.findByRole("tab", { name: /Bookmarks/ }).click();
78
+ cy.findByLabelText(/Bookmarks.*/i).within(() => {
79
+ cy.findAllByRole("rowgroup").eq(1).within(() => {
80
+ cy.findAllByRole("row").should("have.length", 3);
81
+ });
82
+ });
83
+ cy.findByLabelText(/Reports catalogue.*/i).within(() => {
84
+ cy.findByRole("row", {
85
+ name: (_, element) => {
86
+ return Boolean(element.textContent?.includes("Interactive Report with async filters"));
87
+ }
88
+ }).within(() => {
89
+ cy.findByRole("button", { name: /Remove bookmark/ }).click();
90
+ });
91
+ });
92
+ cy.findByLabelText(/Bookmarks.*/i).within(() => {
93
+ cy.findAllByRole("rowgroup").eq(1).within(() => {
94
+ cy.findAllByRole("row").should("have.length", 2);
95
+ });
96
+ });
97
+ cy.findByLabelText(/Reports catalogue.*/i).within(() => {
98
+ cy.findByRole("row", {
99
+ name: (_, element) => {
100
+ return Boolean(element.textContent?.includes("Interactive Report with async filters"));
101
+ }
102
+ }).within(() => {
103
+ cy.findByRole("button", { name: /Add bookmark/ }).should("exist");
104
+ });
105
+ });
106
+ });
107
+ });
108
+ describe("dashboard", () => {
109
+ it("should add a bookmark to the bookmarks list", () => {
110
+ cy.findByRole("tab", { name: /Bookmarks/ }).click();
111
+ cy.findByLabelText(/Bookmarks.*/i).within(() => {
112
+ cy.findAllByRole("rowgroup").eq(1).within(() => {
113
+ cy.findAllByRole("row").should("have.length", 2);
114
+ });
115
+ });
116
+ cy.findByLabelText(/Reports catalogue.*/i).within(() => {
117
+ cy.findByRole("row", {
118
+ name: (_, element) => {
119
+ return Boolean(element.textContent?.includes("Data quality data set"));
120
+ }
121
+ }).within(() => {
122
+ cy.findByRole("button", { name: /Add bookmark/ }).click();
123
+ });
124
+ });
125
+ cy.findByLabelText(/Bookmarks.*/i).within(() => {
126
+ cy.findAllByRole("rowgroup").eq(1).within(() => {
127
+ cy.findAllByRole("row").should("have.length", 3);
128
+ cy.findAllByRole("row").contains("Data quality data set").should("exist");
129
+ });
130
+ });
131
+ cy.findByLabelText(/Reports catalogue.*/i).within(() => {
132
+ cy.findByRole("row", {
133
+ name: (_, element) => {
134
+ return Boolean(element.textContent?.includes("Data quality data set"));
135
+ }
136
+ }).within(() => {
137
+ cy.findByRole("button", { name: /Remove bookmark/ }).should("exist");
138
+ });
139
+ });
140
+ });
141
+ it("should remove a bookmark from the bookmarks list", () => {
142
+ cy.findByRole("tab", { name: /Bookmarks/ }).click();
143
+ cy.findByLabelText(/Bookmarks.*/i).within(() => {
144
+ cy.findAllByRole("rowgroup").eq(1).within(() => {
145
+ cy.findAllByRole("row").should("have.length", 3);
146
+ });
147
+ });
148
+ cy.findByLabelText(/Reports catalogue.*/i).within(() => {
149
+ cy.findByRole("row", {
150
+ name: (_, element) => {
151
+ return Boolean(element.textContent?.includes("Data quality data set"));
152
+ }
153
+ }).within(() => {
154
+ cy.findByRole("button", { name: /Remove bookmark/ }).click();
155
+ });
156
+ });
157
+ cy.findByLabelText(/Bookmarks.*/i).within(() => {
158
+ cy.findAllByRole("rowgroup").eq(1).within(() => {
159
+ cy.findAllByRole("row").should("have.length", 2);
160
+ });
161
+ });
162
+ cy.findByLabelText(/Reports catalogue.*/i).within(() => {
163
+ cy.findByRole("row", {
164
+ name: (_, element) => {
165
+ return Boolean(element.textContent?.includes("Data quality data set"));
166
+ }
167
+ }).within(() => {
168
+ cy.findByRole("button", { name: /Add bookmark/ }).should("exist");
169
+ });
170
+ });
171
+ });
172
+ });
173
+ describe("missing report", () => {
174
+ it("should not be able to be bookmarked", () => {
175
+ cy.findByRole("tab", { name: /Bookmarks/ }).click();
176
+ cy.findByLabelText(/Reports catalogue.*/i).within(() => {
177
+ cy.findByRole("row", {
178
+ name: (_, element) => {
179
+ return Boolean(element.textContent?.includes("Description for missing report 1"));
180
+ }
181
+ }).within(() => {
182
+ cy.findByRole("button", { name: /Add bookmark/ }).should("not.exist");
183
+ cy.findByRole("link", { name: /Request report/ }).should("be.visible");
184
+ });
185
+ });
186
+ });
187
+ });
188
+ });
189
+ describe("Removing via the user reports list", () => {
190
+ it("should remove a dashboard bookmark", () => {
191
+ cy.findByLabelText(/Reports catalogue.*/i).within(() => {
192
+ cy.findByRole("row", {
193
+ name: (_, element) => {
194
+ return Boolean(element.textContent?.includes("Data quality data set"));
195
+ }
196
+ }).within(() => {
197
+ cy.findByRole("button", { name: /Add bookmark/ }).click();
198
+ });
199
+ });
200
+ cy.findByLabelText(/Bookmarks.*/i).within(() => {
201
+ cy.findAllByRole("rowgroup").eq(1).within(() => {
202
+ cy.findAllByRole("row").should("have.length", 3);
203
+ });
204
+ });
205
+ cy.findByLabelText(/Reports catalogue.*/i).within(() => {
206
+ cy.findByRole("row", {
207
+ name: (_, element) => {
208
+ return Boolean(element.textContent?.includes("Data quality data set"));
209
+ }
210
+ }).within(() => {
211
+ cy.findByRole("button", { name: /Remove bookmark/ }).click();
212
+ });
213
+ });
214
+ cy.findByLabelText(/Bookmarks.*/i).within(() => {
215
+ cy.findAllByRole("rowgroup").eq(1).within(() => {
216
+ cy.findAllByRole("row").should("have.length", 2);
217
+ });
218
+ });
219
+ });
220
+ it("should remove a report bookmark", () => {
221
+ cy.findByLabelText(/Reports catalogue.*/i).within(() => {
222
+ cy.findByRole("row", {
223
+ name: (_, element) => {
224
+ return Boolean(element.textContent?.includes("Interactive Report with async filters"));
225
+ }
226
+ }).within(() => {
227
+ cy.findByRole("button", { name: /Add bookmark/ }).click();
228
+ });
229
+ });
230
+ cy.findByLabelText(/Bookmarks.*/i).within(() => {
231
+ cy.findAllByRole("rowgroup").eq(1).within(() => {
232
+ cy.findAllByRole("row").should("have.length", 3);
233
+ });
234
+ });
235
+ cy.findByLabelText(/Reports catalogue.*/i).within(() => {
236
+ cy.findByRole("row", {
237
+ name: (_, element) => {
238
+ return Boolean(element.textContent?.includes("Interactive Report with async filters"));
239
+ }
240
+ }).within(() => {
241
+ cy.findByRole("button", { name: /Remove bookmark/ }).click();
242
+ });
243
+ });
244
+ cy.findByLabelText(/Bookmarks.*/i).within(() => {
245
+ cy.findAllByRole("rowgroup").eq(1).within(() => {
246
+ cy.findAllByRole("row").should("have.length", 2);
247
+ });
248
+ });
249
+ });
250
+ });
251
+ describe("Bookmarking via the report", () => {
252
+ let viewReportUrl;
253
+ before(() => {
254
+ cy.task("stubDefinitionFeatureTestingMissingDesc");
255
+ cy.task("stubReportsFinishedStatus");
256
+ cy.task("stubViewAsyncReportingResults");
257
+ cy.task("stubRequestSuccessReportTablesCount");
258
+ cy.visit(path);
259
+ cy.findByLabelText(/Reports catalogue.*/i).within(() => {
260
+ cy.findByRole("row", {
261
+ name: (_, element) => {
262
+ return Boolean(element.textContent?.includes("Feature testing")) && Boolean(element.textContent?.includes("Missing variant description")) && Boolean(element.textContent?.includes("Example variants used for feature testing"));
263
+ }
264
+ }).within(() => {
265
+ cy.findByRole("link", { name: "Request report" }).click();
266
+ });
267
+ });
268
+ cy.findByRole("combobox", { name: /Field 2/ }).select("Value 2.1");
269
+ cy.findByRole("button", { name: /Request report/ }).click();
270
+ cy.findByRole("button", { name: /Enable download/ }).should("be.visible");
271
+ cy.url().then((url) => {
272
+ viewReportUrl = url;
273
+ });
274
+ });
275
+ it("should add a bookmark", () => {
276
+ cy.findByLabelText(/Bookmarks.*/i).within(() => {
277
+ cy.findAllByRole("rowgroup").eq(1).within(() => {
278
+ cy.findAllByRole("row").should("have.length", 2);
279
+ });
280
+ });
281
+ cy.visit(viewReportUrl);
282
+ cy.findByRole("button", { name: /Add bookmark/ }).click();
283
+ cy.findByRole("button", { name: /Bookmarked/ }).should("be.visible");
284
+ cy.visit(path);
285
+ cy.findByLabelText(/Bookmarks.*/i).within(() => {
286
+ cy.findAllByRole("rowgroup").eq(1).within(() => {
287
+ cy.findAllByRole("row").should("have.length", 3);
288
+ });
289
+ });
290
+ });
291
+ it("should remove a bookmark", () => {
292
+ cy.findByLabelText(/Bookmarks.*/i).within(() => {
293
+ cy.findAllByRole("rowgroup").eq(1).within(() => {
294
+ cy.findAllByRole("row").should("have.length", 3);
295
+ });
296
+ });
297
+ cy.visit(viewReportUrl);
298
+ cy.findByRole("button", { name: /Remove bookmark/ }).click();
299
+ cy.findByRole("button", { name: /Bookmark removed/ });
300
+ cy.visit(path);
301
+ cy.findByLabelText(/Bookmarks.*/i).within(() => {
302
+ cy.findAllByRole("rowgroup").eq(1).within(() => {
303
+ cy.findAllByRole("row").should("have.length", 2);
304
+ });
305
+ });
306
+ });
307
+ });
308
+ describe("Bookmarking via the dashboard", () => {
309
+ let viewReportUrl;
310
+ before(() => {
311
+ cy.task("stubTestDashboard8");
312
+ cy.task("stubMockDashboardsStatusFinished");
313
+ cy.task("stubViewAsyncResults");
314
+ cy.task("stubDashboardSuccessResult20");
315
+ cy.visit(path);
316
+ cy.findByLabelText(/Reports catalogue.*/i).within(() => {
317
+ cy.findByRole("row", {
318
+ name: (_, element) => {
319
+ return Boolean(element.textContent?.includes("Test Dashboard")) && Boolean(element.textContent?.includes("Dashboard used for testing testing"));
320
+ }
321
+ }).within(() => {
322
+ cy.findByRole("link", { name: "Request dashboard" }).click();
323
+ });
324
+ });
325
+ cy.findByRole("button", { name: /Request dashboard/ }).click();
326
+ cy.url().then((url) => {
327
+ viewReportUrl = url;
328
+ });
329
+ });
330
+ it("should add a bookmark", () => {
331
+ cy.visit(viewReportUrl);
332
+ cy.findByRole("button", { name: /Add bookmark/ }).click().contains("Bookmarked");
333
+ cy.visit(path);
334
+ cy.findByLabelText(/Bookmarks.*/i).within(() => {
335
+ cy.findAllByRole("rowgroup").eq(1).within(() => {
336
+ cy.findAllByRole("row").should("have.length", 3);
337
+ });
338
+ });
339
+ });
340
+ it("should remove a bookmark", () => {
341
+ cy.visit(path);
342
+ cy.findByLabelText(/Bookmarks.*/i).within(() => {
343
+ cy.findAllByRole("rowgroup").eq(1).within(() => {
344
+ cy.findAllByRole("row").should("have.length", 3);
345
+ });
346
+ });
347
+ cy.visit(viewReportUrl);
348
+ cy.findByRole("button", { name: /Remove bookmark/ }).click().contains("Bookmark removed");
349
+ cy.visit(path);
350
+ cy.findByLabelText(/Bookmarks.*/i).within(() => {
351
+ cy.findAllByRole("rowgroup").eq(1).within(() => {
352
+ cy.findAllByRole("row").should("have.length", 2);
353
+ });
354
+ });
355
+ });
356
+ });
357
+ describe("bookmarking should be idempotent", () => {
358
+ it("should not change the bookmark status of an already bookmarked item", () => {
359
+ cy.findByLabelText(/Reports catalogue.*/i).within(() => {
360
+ cy.findByRole("row", {
361
+ name: (_, element) => {
362
+ return Boolean(element.textContent?.includes("Interactive Report with async filters"));
363
+ }
364
+ }).within(() => {
365
+ cy.findByRole("button", { name: /Add bookmark/ }).click();
366
+ });
367
+ });
368
+ cy.findByLabelText(/Reports catalogue.*/i).within(() => {
369
+ cy.findByRole("row", {
370
+ name: (_, element) => {
371
+ return Boolean(element.textContent?.includes("Interactive Report with async filters"));
372
+ }
373
+ }).within(() => {
374
+ cy.get("input").then((el) => {
375
+ ;
376
+ el.get(0).checked = false;
377
+ el.get(0).removeAttribute("checked");
378
+ });
379
+ cy.get("input").invoke("attr", "checked").should("equal", void 0);
380
+ });
381
+ });
382
+ cy.findByLabelText(/Reports catalogue.*/i).within(() => {
383
+ cy.findByRole("row", {
384
+ name: (_, element) => {
385
+ return Boolean(element.textContent?.includes("Interactive Report with async filters"));
386
+ }
387
+ }).within(() => {
388
+ cy.findByRole("button", { name: /Remove bookmark/ }).click();
389
+ });
390
+ });
391
+ cy.reload();
392
+ cy.findByLabelText(/Reports catalogue.*/i).within(() => {
393
+ cy.findByRole("row", {
394
+ name: (_, element) => {
395
+ return Boolean(element.textContent?.includes("Interactive Report with async filters"));
396
+ }
397
+ }).within(() => {
398
+ cy.findByRole("button", { name: /Remove bookmark/ }).should("exist");
399
+ });
400
+ });
401
+ cy.findByLabelText(/Reports catalogue.*/i).within(() => {
402
+ cy.findByRole("row", {
403
+ name: (_, element) => {
404
+ return Boolean(element.textContent?.includes("Interactive Report with async filters"));
405
+ }
406
+ }).within(() => {
407
+ cy.findByRole("button", { name: /Remove bookmark/ }).click();
408
+ });
409
+ });
410
+ });
411
+ it("should not change the bookmark status of an unbookmarked item", () => {
412
+ cy.findByLabelText(/Reports catalogue.*/i).within(() => {
413
+ cy.findByRole("row", {
414
+ name: (_, element) => {
415
+ return Boolean(element.textContent?.includes("Interactive Report with async filters"));
416
+ }
417
+ }).within(() => {
418
+ cy.get("input").then((el) => {
419
+ ;
420
+ el.get(0).checked = true;
421
+ el.get(0).setAttribute("checked", "true");
422
+ });
423
+ cy.get("input").invoke("attr", "checked").should("not.equal", void 0).and("not.equal", false);
424
+ });
425
+ });
426
+ cy.findByLabelText(/Reports catalogue.*/i).within(() => {
427
+ cy.findByRole("row", {
428
+ name: (_, element) => {
429
+ return Boolean(element.textContent?.includes("Interactive Report with async filters"));
430
+ }
431
+ }).within(() => {
432
+ cy.findByRole("button", { name: /Add bookmark/ }).click();
433
+ });
434
+ });
435
+ cy.reload();
436
+ cy.findByLabelText(/Reports catalogue.*/i).within(() => {
437
+ cy.findByRole("row", {
438
+ name: (_, element) => {
439
+ return Boolean(element.textContent?.includes("Interactive Report with async filters"));
440
+ }
441
+ }).within(() => {
442
+ cy.findByRole("button", { name: /Add bookmark/ }).should("exist");
443
+ });
444
+ });
445
+ });
446
+ });
447
+ });
448
+ });
2
449
  //# sourceMappingURL=tests.cy.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../../../src/dpr/routes/journeys/my-reports/bookmarks/tests.cy.ts"],
3
+ "sources": ["../../../../../dpr/routes/journeys/my-reports/bookmarks/tests.cy.ts"],
4
4
  "sourcesContent": ["import { featureTestingUnprintable } from '@networkMocks/report/mockVariants/feature-testing/unprintable'\nimport { featureTestingEmptyQuery } from '@networkMocks/report/mockVariants/feature-testing/emptyQuery'\nimport { stubBaseTasks, stubDefinitionsTasks } from '../../../../../../cypress-tests/cypressUtils'\n\ncontext('Bookmarks list', () => {\n const path = '/embedded/platform/'\n\n describe('check the default starting state', () => {\n it('should have the default bookmarks from the caseload bookmark config', () => {\n stubBaseTasks()\n stubDefinitionsTasks()\n cy.visit(path)\n\n cy.findByRole('tab', { name: /Bookmarks/ }).click()\n cy.findByLabelText(/Bookmarks.*/i).within(() => {\n cy.findAllByRole('rowgroup')\n .eq(1)\n .within(() => {\n cy.findAllByRole('row').should('have.length', 2)\n cy.findByRole('link', {\n name: (_, element) => (element as HTMLAnchorElement).href.includes(featureTestingUnprintable.id),\n })\n cy.findByRole('link', {\n name: (_, element) => (element as HTMLAnchorElement).href.includes(featureTestingEmptyQuery.id),\n })\n })\n })\n })\n })\n\n describe('check other interactions', () => {\n before(() => {\n stubBaseTasks()\n stubDefinitionsTasks()\n cy.task('stubDefinitionRequestExamplesSuccess')\n cy.task('stubListExampleDashboard')\n cy.task('stubDefinitionMockReportVariant35')\n cy.task('stubTestDashboard8')\n cy.task('stubDefinitionFeatureTestingInteractive')\n cy.task('stubDashboardSuccessResult20')\n cy.task('stubRequestSuccessResult20')\n cy.task('stubPollingReportEndpoint')\n })\n\n beforeEach(() => {\n cy.visit(path)\n })\n\n describe('Bookmarking via the catalogue', () => {\n describe('report', () => {\n it('should add a bookmark to the bookmarks list', () => {\n cy.findByRole('tab', { name: /Bookmarks/ }).click()\n cy.findByLabelText(/Bookmarks.*/i).within(() => {\n cy.findAllByRole('rowgroup')\n .eq(1)\n .within(() => {\n cy.findAllByRole('row').should('have.length', 2)\n })\n })\n\n cy.findByLabelText(/Reports catalogue.*/i).within(() => {\n cy.findByRole('row', {\n name: (_, element) => {\n return Boolean(element.textContent?.includes('Interactive Report with async filters'))\n },\n }).within(() => {\n cy.findByRole('button', { name: /Add bookmark/ }).click()\n })\n })\n\n cy.findByLabelText(/Bookmarks.*/i).within(() => {\n cy.findAllByRole('rowgroup')\n .eq(1)\n .within(() => {\n cy.findAllByRole('row').should('have.length', 3)\n cy.findAllByRole('row').contains('Interactive Report with async filters').should('exist')\n })\n })\n\n cy.findByLabelText(/Reports catalogue.*/i).within(() => {\n cy.findByRole('row', {\n name: (_, element) => {\n return Boolean(element.textContent?.includes('Interactive Report with async filters'))\n },\n }).within(() => {\n cy.findByRole('button', { name: /Remove bookmark/ }).should('exist')\n })\n })\n })\n\n it('should remove a bookmark to the bookmarks list', () => {\n cy.findByRole('tab', { name: /Bookmarks/ }).click()\n cy.findByLabelText(/Bookmarks.*/i).within(() => {\n cy.findAllByRole('rowgroup')\n .eq(1)\n .within(() => {\n cy.findAllByRole('row').should('have.length', 3)\n })\n })\n\n cy.findByLabelText(/Reports catalogue.*/i).within(() => {\n cy.findByRole('row', {\n name: (_, element) => {\n return Boolean(element.textContent?.includes('Interactive Report with async filters'))\n },\n }).within(() => {\n cy.findByRole('button', { name: /Remove bookmark/ }).click()\n })\n })\n\n cy.findByLabelText(/Bookmarks.*/i).within(() => {\n cy.findAllByRole('rowgroup')\n .eq(1)\n .within(() => {\n cy.findAllByRole('row').should('have.length', 2)\n })\n })\n\n cy.findByLabelText(/Reports catalogue.*/i).within(() => {\n cy.findByRole('row', {\n name: (_, element) => {\n return Boolean(element.textContent?.includes('Interactive Report with async filters'))\n },\n }).within(() => {\n cy.findByRole('button', { name: /Add bookmark/ }).should('exist')\n })\n })\n })\n })\n\n describe('dashboard', () => {\n it('should add a bookmark to the bookmarks list', () => {\n cy.findByRole('tab', { name: /Bookmarks/ }).click()\n cy.findByLabelText(/Bookmarks.*/i).within(() => {\n cy.findAllByRole('rowgroup')\n .eq(1)\n .within(() => {\n cy.findAllByRole('row').should('have.length', 2)\n })\n })\n\n cy.findByLabelText(/Reports catalogue.*/i).within(() => {\n cy.findByRole('row', {\n name: (_, element) => {\n return Boolean(element.textContent?.includes('Data quality data set'))\n },\n }).within(() => {\n cy.findByRole('button', { name: /Add bookmark/ }).click()\n })\n })\n\n cy.findByLabelText(/Bookmarks.*/i).within(() => {\n cy.findAllByRole('rowgroup')\n .eq(1)\n .within(() => {\n cy.findAllByRole('row').should('have.length', 3)\n cy.findAllByRole('row').contains('Data quality data set').should('exist')\n })\n })\n\n cy.findByLabelText(/Reports catalogue.*/i).within(() => {\n cy.findByRole('row', {\n name: (_, element) => {\n return Boolean(element.textContent?.includes('Data quality data set'))\n },\n }).within(() => {\n cy.findByRole('button', { name: /Remove bookmark/ }).should('exist')\n })\n })\n })\n\n it('should remove a bookmark from the bookmarks list', () => {\n cy.findByRole('tab', { name: /Bookmarks/ }).click()\n cy.findByLabelText(/Bookmarks.*/i).within(() => {\n cy.findAllByRole('rowgroup')\n .eq(1)\n .within(() => {\n cy.findAllByRole('row').should('have.length', 3)\n })\n })\n\n cy.findByLabelText(/Reports catalogue.*/i).within(() => {\n cy.findByRole('row', {\n name: (_, element) => {\n return Boolean(element.textContent?.includes('Data quality data set'))\n },\n }).within(() => {\n cy.findByRole('button', { name: /Remove bookmark/ }).click()\n })\n })\n\n cy.findByLabelText(/Bookmarks.*/i).within(() => {\n cy.findAllByRole('rowgroup')\n .eq(1)\n .within(() => {\n cy.findAllByRole('row').should('have.length', 2)\n })\n })\n\n cy.findByLabelText(/Reports catalogue.*/i).within(() => {\n cy.findByRole('row', {\n name: (_, element) => {\n return Boolean(element.textContent?.includes('Data quality data set'))\n },\n }).within(() => {\n cy.findByRole('button', { name: /Add bookmark/ }).should('exist')\n })\n })\n })\n })\n\n describe('missing report', () => {\n it('should not be able to be bookmarked', () => {\n cy.findByRole('tab', { name: /Bookmarks/ }).click()\n cy.findByLabelText(/Reports catalogue.*/i).within(() => {\n cy.findByRole('row', {\n name: (_, element) => {\n return Boolean(element.textContent?.includes('Description for missing report 1'))\n },\n }).within(() => {\n cy.findByRole('button', { name: /Add bookmark/ }).should('not.exist')\n cy.findByRole('link', { name: /Request report/ }).should('be.visible')\n })\n })\n })\n })\n })\n\n describe('Removing via the user reports list', () => {\n it('should remove a dashboard bookmark', () => {\n cy.findByLabelText(/Reports catalogue.*/i).within(() => {\n cy.findByRole('row', {\n name: (_, element) => {\n return Boolean(element.textContent?.includes('Data quality data set'))\n },\n }).within(() => {\n cy.findByRole('button', { name: /Add bookmark/ }).click()\n })\n })\n\n cy.findByLabelText(/Bookmarks.*/i).within(() => {\n cy.findAllByRole('rowgroup')\n .eq(1)\n .within(() => {\n cy.findAllByRole('row').should('have.length', 3)\n })\n })\n\n cy.findByLabelText(/Reports catalogue.*/i).within(() => {\n cy.findByRole('row', {\n name: (_, element) => {\n return Boolean(element.textContent?.includes('Data quality data set'))\n },\n }).within(() => {\n cy.findByRole('button', { name: /Remove bookmark/ }).click()\n })\n })\n\n cy.findByLabelText(/Bookmarks.*/i).within(() => {\n cy.findAllByRole('rowgroup')\n .eq(1)\n .within(() => {\n cy.findAllByRole('row').should('have.length', 2)\n })\n })\n })\n\n it('should remove a report bookmark', () => {\n cy.findByLabelText(/Reports catalogue.*/i).within(() => {\n cy.findByRole('row', {\n name: (_, element) => {\n return Boolean(element.textContent?.includes('Interactive Report with async filters'))\n },\n }).within(() => {\n cy.findByRole('button', { name: /Add bookmark/ }).click()\n })\n })\n\n cy.findByLabelText(/Bookmarks.*/i).within(() => {\n cy.findAllByRole('rowgroup')\n .eq(1)\n .within(() => {\n cy.findAllByRole('row').should('have.length', 3)\n })\n })\n\n cy.findByLabelText(/Reports catalogue.*/i).within(() => {\n cy.findByRole('row', {\n name: (_, element) => {\n return Boolean(element.textContent?.includes('Interactive Report with async filters'))\n },\n }).within(() => {\n cy.findByRole('button', { name: /Remove bookmark/ }).click()\n })\n })\n\n cy.findByLabelText(/Bookmarks.*/i).within(() => {\n cy.findAllByRole('rowgroup')\n .eq(1)\n .within(() => {\n cy.findAllByRole('row').should('have.length', 2)\n })\n })\n })\n })\n\n describe('Bookmarking via the report', () => {\n let viewReportUrl: string\n\n before(() => {\n cy.task('stubDefinitionFeatureTestingMissingDesc')\n cy.task('stubReportsFinishedStatus')\n cy.task('stubViewAsyncReportingResults')\n cy.task('stubRequestSuccessReportTablesCount')\n\n cy.visit(path)\n cy.findByLabelText(/Reports catalogue.*/i).within(() => {\n cy.findByRole('row', {\n name: (_, element) => {\n return (\n Boolean(element.textContent?.includes('Feature testing')) &&\n Boolean(element.textContent?.includes('Missing variant description')) &&\n Boolean(element.textContent?.includes('Example variants used for feature testing'))\n )\n },\n }).within(() => {\n cy.findByRole('link', { name: 'Request report' }).click()\n })\n })\n cy.findByRole('combobox', { name: /Field 2/ }).select('Value 2.1')\n cy.findByRole('button', { name: /Request report/ }).click()\n\n cy.findByRole('button', { name: /Enable download/ }).should('be.visible')\n cy.url().then((url) => {\n viewReportUrl = url\n })\n })\n\n it('should add a bookmark', () => {\n cy.findByLabelText(/Bookmarks.*/i).within(() => {\n cy.findAllByRole('rowgroup')\n .eq(1)\n .within(() => {\n cy.findAllByRole('row').should('have.length', 2)\n })\n })\n\n cy.visit(viewReportUrl)\n cy.findByRole('button', { name: /Add bookmark/ }).click()\n cy.findByRole('button', { name: /Bookmarked/ }).should('be.visible')\n\n cy.visit(path)\n cy.findByLabelText(/Bookmarks.*/i).within(() => {\n cy.findAllByRole('rowgroup')\n .eq(1)\n .within(() => {\n cy.findAllByRole('row').should('have.length', 3)\n })\n })\n })\n\n it('should remove a bookmark', () => {\n cy.findByLabelText(/Bookmarks.*/i).within(() => {\n cy.findAllByRole('rowgroup')\n .eq(1)\n .within(() => {\n cy.findAllByRole('row').should('have.length', 3)\n })\n })\n cy.visit(viewReportUrl)\n\n cy.findByRole('button', { name: /Remove bookmark/ }).click()\n cy.findByRole('button', { name: /Bookmark removed/ })\n\n cy.visit(path)\n cy.findByLabelText(/Bookmarks.*/i).within(() => {\n cy.findAllByRole('rowgroup')\n .eq(1)\n .within(() => {\n cy.findAllByRole('row').should('have.length', 2)\n })\n })\n })\n })\n\n describe('Bookmarking via the dashboard', () => {\n let viewReportUrl: string\n\n before(() => {\n cy.task('stubTestDashboard8')\n cy.task('stubMockDashboardsStatusFinished')\n cy.task('stubViewAsyncResults')\n cy.task('stubDashboardSuccessResult20')\n\n cy.visit(path)\n cy.findByLabelText(/Reports catalogue.*/i).within(() => {\n cy.findByRole('row', {\n name: (_, element) => {\n return (\n Boolean(element.textContent?.includes('Test Dashboard')) &&\n Boolean(element.textContent?.includes('Dashboard used for testing testing'))\n )\n },\n }).within(() => {\n cy.findByRole('link', { name: 'Request dashboard' }).click()\n })\n })\n cy.findByRole('button', { name: /Request dashboard/ }).click()\n\n cy.url().then((url) => {\n viewReportUrl = url\n })\n })\n\n it('should add a bookmark', () => {\n cy.visit(viewReportUrl)\n cy.findByRole('button', { name: /Add bookmark/ })\n .click()\n .contains('Bookmarked')\n cy.visit(path)\n cy.findByLabelText(/Bookmarks.*/i).within(() => {\n cy.findAllByRole('rowgroup')\n .eq(1)\n .within(() => {\n cy.findAllByRole('row').should('have.length', 3)\n })\n })\n })\n\n it('should remove a bookmark', () => {\n cy.visit(path)\n cy.findByLabelText(/Bookmarks.*/i).within(() => {\n cy.findAllByRole('rowgroup')\n .eq(1)\n .within(() => {\n cy.findAllByRole('row').should('have.length', 3)\n })\n })\n cy.visit(viewReportUrl)\n cy.findByRole('button', { name: /Remove bookmark/ })\n .click()\n .contains('Bookmark removed')\n cy.visit(path)\n cy.findByLabelText(/Bookmarks.*/i).within(() => {\n cy.findAllByRole('rowgroup')\n .eq(1)\n .within(() => {\n cy.findAllByRole('row').should('have.length', 2)\n })\n })\n })\n })\n\n describe('bookmarking should be idempotent', () => {\n it('should not change the bookmark status of an already bookmarked item', () => {\n cy.findByLabelText(/Reports catalogue.*/i).within(() => {\n cy.findByRole('row', {\n name: (_, element) => {\n return Boolean(element.textContent?.includes('Interactive Report with async filters'))\n },\n }).within(() => {\n cy.findByRole('button', { name: /Add bookmark/ }).click()\n })\n })\n // Deselect the bookmark hidden input so that we try to add it whilst it's already added\n cy.findByLabelText(/Reports catalogue.*/i).within(() => {\n cy.findByRole('row', {\n name: (_, element) => {\n return Boolean(element.textContent?.includes('Interactive Report with async filters'))\n },\n }).within(() => {\n cy.get('input').then((el) => {\n // eslint-disable-next-line no-param-reassign\n ;(el.get(0) as HTMLInputElement).checked = false\n el.get(0).removeAttribute('checked')\n })\n cy.get('input').invoke('attr', 'checked').should('equal', undefined)\n })\n })\n cy.findByLabelText(/Reports catalogue.*/i).within(() => {\n cy.findByRole('row', {\n name: (_, element) => {\n return Boolean(element.textContent?.includes('Interactive Report with async filters'))\n },\n }).within(() => {\n cy.findByRole('button', { name: /Remove bookmark/ }).click()\n })\n })\n cy.reload()\n cy.findByLabelText(/Reports catalogue.*/i).within(() => {\n cy.findByRole('row', {\n name: (_, element) => {\n return Boolean(element.textContent?.includes('Interactive Report with async filters'))\n },\n }).within(() => {\n cy.findByRole('button', { name: /Remove bookmark/ }).should('exist')\n })\n })\n cy.findByLabelText(/Reports catalogue.*/i).within(() => {\n cy.findByRole('row', {\n name: (_, element) => {\n return Boolean(element.textContent?.includes('Interactive Report with async filters'))\n },\n }).within(() => {\n cy.findByRole('button', { name: /Remove bookmark/ }).click()\n })\n })\n })\n\n it('should not change the bookmark status of an unbookmarked item', () => {\n // Select the bookmark hidden input so that we try to add it whilst it's already added\n cy.findByLabelText(/Reports catalogue.*/i).within(() => {\n cy.findByRole('row', {\n name: (_, element) => {\n return Boolean(element.textContent?.includes('Interactive Report with async filters'))\n },\n }).within(() => {\n cy.get('input').then((el) => {\n // eslint-disable-next-line no-param-reassign\n ;(el.get(0) as HTMLInputElement).checked = true\n el.get(0).setAttribute('checked', 'true')\n })\n // Browser does funny things with checked attribute, it can be 'checked' or 'true' or unset - just check its there and not false\n cy.get('input').invoke('attr', 'checked').should('not.equal', undefined).and('not.equal', false)\n })\n })\n cy.findByLabelText(/Reports catalogue.*/i).within(() => {\n cy.findByRole('row', {\n name: (_, element) => {\n return Boolean(element.textContent?.includes('Interactive Report with async filters'))\n },\n }).within(() => {\n cy.findByRole('button', { name: /Add bookmark/ }).click()\n })\n })\n cy.reload()\n cy.findByLabelText(/Reports catalogue.*/i).within(() => {\n cy.findByRole('row', {\n name: (_, element) => {\n return Boolean(element.textContent?.includes('Interactive Report with async filters'))\n },\n }).within(() => {\n cy.findByRole('button', { name: /Add bookmark/ }).should('exist')\n })\n })\n })\n })\n })\n})\n"],
5
- "mappings": "aAAA,IAAAA,EAA0C,yEAC1CC,EAAyC,wEACzCC,EAAoD,wDAEpD,QAAQ,iBAAkB,IAAM,CAC9B,MAAMC,EAAO,sBAEb,SAAS,mCAAoC,IAAM,CACjD,GAAG,sEAAuE,IAAM,IAC9E,iBAAc,KACd,wBAAqB,EACrB,GAAG,MAAMA,CAAI,EAEb,GAAG,WAAW,MAAO,CAAE,KAAM,WAAY,CAAC,EAAE,MAAM,EAClD,GAAG,gBAAgB,cAAc,EAAE,OAAO,IAAM,CAC9C,GAAG,cAAc,UAAU,EACxB,GAAG,CAAC,EACJ,OAAO,IAAM,CACZ,GAAG,cAAc,KAAK,EAAE,OAAO,cAAe,CAAC,EAC/C,GAAG,WAAW,OAAQ,CACpB,KAAM,C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,CACtD,GAAG,WAAW,MAAO,CACnB,KAAM,CAACJ,EAAGC,IACD,EAAQA,EAAQ,aAAa,SAAS,uCAAuC,CAExF,CAAC,EAAE,OAAO,IAAM,CACd,GAAG,WAAW,SAAU,CAAE,KAAM,cAAe,CAAC,EAAE,MAAM,CAC1D,CAAC,CACH,CAAC,EACD,GAAG,OAAO,EACV,GAAG,gBAAgB,sBAAsB,EAAE,OAAO,IAAM,CACtD,GAAG,WAAW,MAAO,CACnB,KAAM,CAACD,EAAGC,IACD,EAAQA,EAAQ,aAAa,SAAS,uCAAuC,CAExF,CAAC,EAAE,OAAO,IAAM,CACd,GAAG,WAAW,SAAU,CAAE,KAAM,cAAe,CAAC,EAAE,OAAO,OAAO,CAClE,CAAC,CACH,CAAC,CACH,CAAC,CACH,CAAC,CACH,CAAC,CACH,CAAC",
6
- "names": ["import_unprintable", "import_emptyQuery", "import_cypressUtils", "path", "_", "element", "viewReportUrl", "url", "el"]
5
+ "mappings": ";AAAA,yBAA0C;AAC1C,wBAAyC;AACzC,0BAAoD;AAEpD,QAAQ,kBAAkB,MAAM;AAC9B,QAAM,OAAO;AAEb,WAAS,oCAAoC,MAAM;AACjD,OAAG,uEAAuE,MAAM;AAC9E,6CAAc;AACd,oDAAqB;AACrB,SAAG,MAAM,IAAI;AAEb,SAAG,WAAW,OAAO,EAAE,MAAM,YAAY,CAAC,EAAE,MAAM;AAClD,SAAG,gBAAgB,cAAc,EAAE,OAAO,MAAM;AAC9C,WAAG,cAAc,UAAU,EACxB,GAAG,CAAC,EACJ,OAAO,MAAM;AACZ,aAAG,cAAc,KAAK,EAAE,OAAO,eAAe,CAAC;AAC/C,aAAG,WAAW,QAAQ;AAAA,YACpB,MAAM,CAAC,GAAG,YAAa,QAA8B,KAAK,SAAS,6CAA0B,EAAE;AAAA,UACjG,CAAC;AACD,aAAG,WAAW,QAAQ;AAAA,YACpB,MAAM,CAAC,GAAG,YAAa,QAA8B,KAAK,SAAS,2CAAyB,EAAE;AAAA,U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AC,EAAE,aAAa,WAAW,MAAM;AAAA,YAC1C,CAAC;AAED,eAAG,IAAI,OAAO,EAAE,OAAO,QAAQ,SAAS,EAAE,OAAO,aAAa,MAAS,EAAE,IAAI,aAAa,KAAK;AAAA,UACjG,CAAC;AAAA,QACH,CAAC;AACD,WAAG,gBAAgB,sBAAsB,EAAE,OAAO,MAAM;AACtD,aAAG,WAAW,OAAO;AAAA,YACnB,MAAM,CAAC,GAAG,YAAY;AACpB,qBAAO,QAAQ,QAAQ,aAAa,SAAS,uCAAuC,CAAC;AAAA,YACvF;AAAA,UACF,CAAC,EAAE,OAAO,MAAM;AACd,eAAG,WAAW,UAAU,EAAE,MAAM,eAAe,CAAC,EAAE,MAAM;AAAA,UAC1D,CAAC;AAAA,QACH,CAAC;AACD,WAAG,OAAO;AACV,WAAG,gBAAgB,sBAAsB,EAAE,OAAO,MAAM;AACtD,aAAG,WAAW,OAAO;AAAA,YACnB,MAAM,CAAC,GAAG,YAAY;AACpB,qBAAO,QAAQ,QAAQ,aAAa,SAAS,uCAAuC,CAAC;AAAA,YACvF;AAAA,UACF,CAAC,EAAE,OAAO,MAAM;AACd,eAAG,WAAW,UAAU,EAAE,MAAM,eAAe,CAAC,EAAE,OAAO,OAAO;AAAA,UAClE,CAAC;AAAA,QACH,CAAC;AAAA,MACH,CAAC;AAAA,IACH,CAAC;AAAA,EACH,CAAC;AACH,CAAC;",
6
+ "names": []
7
7
  }
@@ -1,2 +1,45 @@
1
- "use strict";var m=Object.defineProperty;var B=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var l=(r,o)=>{for(var a in o)m(r,a,{get:o[a],enumerable:!0})},S=(r,o,a,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let t of f(o))!u.call(r,t)&&t!==a&&m(r,t,{get:()=>o[t],enumerable:!(e=B(o,t))||e.enumerable});return r};var g=r=>S(m({},"__esModule",{value:!0}),r);var y={};l(y,{default:()=>v,preBookmarkReportsByRoleId:()=>n});module.exports=g(y);var s=require("../../../../types/UserReports");const n=async(r,o,a,e={})=>{const t=e[o]||[],{bookmarkService:c}=a;for(let k=0;k<t.length;k+=1){const i=t[k];if(i&&i.variantId){const{reportId:d,variantId:p}=i;await c.addBookmark(r,d,p,s.ReportType.REPORT,!0)}}return t};var v={preBookmarkReportsByRoleId:n};0&&(module.exports={preBookmarkReportsByRoleId});
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var utils_exports = {};
20
+ __export(utils_exports, {
21
+ default: () => utils_default,
22
+ preBookmarkReportsByRoleId: () => preBookmarkReportsByRoleId
23
+ });
24
+ module.exports = __toCommonJS(utils_exports);
25
+ var import_UserReports = require("../../../../types/UserReports");
26
+ const preBookmarkReportsByRoleId = async (userId, activeCaseLoadId, services, bookmarksByCaseload = {}) => {
27
+ const bookmarks = bookmarksByCaseload[activeCaseLoadId] || [];
28
+ const { bookmarkService } = services;
29
+ for (let index = 0; index < bookmarks.length; index += 1) {
30
+ const foundBookmark = bookmarks[index];
31
+ if (foundBookmark && foundBookmark.variantId) {
32
+ const { reportId, variantId } = foundBookmark;
33
+ await bookmarkService.addBookmark(userId, reportId, variantId, import_UserReports.ReportType.REPORT, true);
34
+ }
35
+ }
36
+ return bookmarks;
37
+ };
38
+ var utils_default = {
39
+ preBookmarkReportsByRoleId
40
+ };
41
+ // Annotate the CommonJS export names for ESM import in node:
42
+ 0 && (module.exports = {
43
+ preBookmarkReportsByRoleId
44
+ });
2
45
  //# sourceMappingURL=utils.js.map