@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.
- package/dpr/DprClientClass.js +43 -0
- package/dpr/DprClientClass.js.map +7 -0
- package/dpr/{DprClientClass.mjs → DprClientClass.ts} +1 -0
- package/dpr/DprFormValidationClass.js +157 -0
- package/dpr/DprFormValidationClass.js.map +7 -0
- package/dpr/{DprFormValidationClass.mjs → DprFormValidationClass.ts} +2 -1
- package/dpr/DprGenericFormClass.js +66 -0
- package/dpr/DprGenericFormClass.js.map +7 -0
- package/dpr/{DprGenericFormClass.mjs → DprGenericFormClass.ts} +2 -1
- package/dpr/DprLoadingHelper.js +51 -0
- package/dpr/DprLoadingHelper.js.map +7 -0
- package/dpr/{DprLoadingHelper.mjs → DprLoadingHelper.ts} +1 -0
- package/dpr/DprPollingStatusClass.js +79 -0
- package/dpr/DprPollingStatusClass.js.map +7 -0
- package/dpr/{DprPollingStatusClass.mjs → DprPollingStatusClass.ts} +2 -1
- package/dpr/DprQueryParamClass.js +231 -0
- package/dpr/DprQueryParamClass.js.map +7 -0
- package/dpr/{DprQueryParamClass.mjs → DprQueryParamClass.ts} +2 -1
- package/dpr/DprSyncLoading.js +44 -0
- package/dpr/DprSyncLoading.js.map +7 -0
- package/dpr/{DprSyncLoading.mjs → DprSyncLoading.ts} +2 -1
- package/dpr/all.js +111 -0
- package/dpr/all.js.map +7 -0
- package/dpr/{all.mjs → all.ts} +29 -28
- package/dpr/assets/app.js +1 -1
- package/dpr/assets/app.js.map +4 -4
- package/dpr/components/_async/async-filters-form/clientClass.js +76 -0
- package/dpr/components/_async/async-filters-form/clientClass.js.map +7 -0
- package/dpr/components/_async/async-filters-form/{clientClass.mjs → clientClass.ts} +3 -2
- package/dpr/components/_async/async-filters-form/sortByTemplate.js +60 -1
- package/dpr/components/_async/async-filters-form/sortByTemplate.js.map +3 -3
- package/dpr/components/_async/async-filters-form/types.d.js +16 -1
- package/dpr/components/_async/async-filters-form/types.d.js.map +3 -3
- package/dpr/components/_async/async-filters-form/utils.js +180 -1
- package/dpr/components/_async/async-filters-form/utils.js.map +3 -3
- package/dpr/components/_async/async-polling/clientClass.js +78 -0
- package/dpr/components/_async/async-polling/clientClass.js.map +7 -0
- package/dpr/components/_async/async-polling/{clientClass.mjs → clientClass.ts} +2 -1
- package/dpr/components/_catalogue/catalogue/types.js +16 -1
- package/dpr/components/_catalogue/catalogue/types.js.map +3 -3
- package/dpr/components/_catalogue/catalogue/utils.js +83 -1
- package/dpr/components/_catalogue/catalogue/utils.js.map +3 -3
- package/dpr/components/_catalogue/catalogue-filter-by-type/clientClass.js +94 -0
- package/dpr/components/_catalogue/catalogue-filter-by-type/clientClass.js.map +7 -0
- package/dpr/components/_catalogue/catalogue-filter-by-type/{clientClass.mjs → clientClass.ts} +2 -1
- package/dpr/components/_catalogue/catalogue-filters/clientClass.js +70 -0
- package/dpr/components/_catalogue/catalogue-filters/clientClass.js.map +7 -0
- package/dpr/components/_catalogue/catalogue-filters/{clientClass.mjs → clientClass.ts} +2 -1
- package/dpr/components/_catalogue/catalogue-list/utils.js +140 -1
- package/dpr/components/_catalogue/catalogue-list/utils.js.map +3 -3
- package/dpr/components/_catalogue/catalogue-search/clientClass.js +106 -0
- package/dpr/components/_catalogue/catalogue-search/clientClass.js.map +7 -0
- package/dpr/components/_catalogue/catalogue-search/{clientClass.mjs → clientClass.ts} +3 -2
- package/dpr/components/_catalogue/catalogue-unauthorised-toggle/clientClass.js +135 -0
- package/dpr/components/_catalogue/catalogue-unauthorised-toggle/clientClass.js.map +7 -0
- package/dpr/components/_catalogue/catalogue-unauthorised-toggle/{clientClass.mjs → clientClass.ts} +2 -1
- package/dpr/components/_charts/chart/Chart.js +99 -1
- package/dpr/components/_charts/chart/Chart.js.map +3 -3
- package/dpr/components/_charts/chart/ChartColours.js +61 -1
- package/dpr/components/_charts/chart/ChartColours.js.map +3 -3
- package/dpr/components/_charts/chart/ChartTimeseries.js +101 -1
- package/dpr/components/_charts/chart/ChartTimeseries.js.map +3 -3
- package/dpr/components/_charts/chart/bar/BarChart.js +193 -1
- package/dpr/components/_charts/chart/bar/BarChart.js.map +3 -3
- package/dpr/components/_charts/chart/bar/clientClass.js +98 -0
- package/dpr/components/_charts/chart/bar/clientClass.js.map +7 -0
- package/dpr/components/_charts/chart/bar/{clientClass.mjs → clientClass.ts} +2 -1
- package/dpr/components/_charts/chart/bar/types.js +16 -1
- package/dpr/components/_charts/chart/bar/types.js.map +3 -3
- package/dpr/components/_charts/chart/bar/validate.js +73 -1
- package/dpr/components/_charts/chart/bar/validate.js.map +3 -3
- package/dpr/components/_charts/chart/bar-timeseries/BarTimeseriesChart.js +80 -1
- package/dpr/components/_charts/chart/bar-timeseries/BarTimeseriesChart.js.map +3 -3
- package/dpr/components/_charts/chart/bar-timeseries/types.js +16 -1
- package/dpr/components/_charts/chart/bar-timeseries/types.js.map +3 -3
- package/dpr/components/_charts/chart/bar-timeseries/validate.js +48 -1
- package/dpr/components/_charts/chart/bar-timeseries/validate.js.map +3 -3
- package/dpr/components/_charts/chart/buckets/Buckets.js +194 -1
- package/dpr/components/_charts/chart/buckets/Buckets.js.map +3 -3
- package/dpr/components/_charts/chart/buckets/types.js +16 -1
- package/dpr/components/_charts/chart/buckets/types.js.map +3 -3
- package/dpr/components/_charts/chart/buckets/validate.js +40 -1
- package/dpr/components/_charts/chart/buckets/validate.js.map +3 -3
- package/dpr/components/_charts/chart/chart-config.js +62 -1
- package/dpr/components/_charts/chart/chart-config.js.map +3 -3
- package/dpr/components/_charts/chart/clientClass.js +136 -0
- package/dpr/components/_charts/chart/clientClass.js.map +7 -0
- package/dpr/components/_charts/chart/{clientClass.mjs → clientClass.ts} +2 -1
- package/dpr/components/_charts/chart/doughnut/DoughnutChart.js +96 -1
- package/dpr/components/_charts/chart/doughnut/DoughnutChart.js.map +3 -3
- package/dpr/components/_charts/chart/doughnut/clientClass.js +170 -0
- package/dpr/components/_charts/chart/doughnut/clientClass.js.map +7 -0
- package/dpr/components/_charts/chart/doughnut/{clientClass.mjs → clientClass.ts} +2 -1
- package/dpr/components/_charts/chart/doughnut/types.js +16 -1
- package/dpr/components/_charts/chart/doughnut/types.js.map +3 -3
- package/dpr/components/_charts/chart/doughnut/validate.js +48 -1
- package/dpr/components/_charts/chart/doughnut/validate.js.map +3 -3
- package/dpr/components/_charts/chart/heatmap/HeatmapChart.js +213 -1
- package/dpr/components/_charts/chart/heatmap/HeatmapChart.js.map +3 -3
- package/dpr/components/_charts/chart/heatmap/clientClass.js +118 -0
- package/dpr/components/_charts/chart/heatmap/clientClass.js.map +7 -0
- package/dpr/components/_charts/chart/heatmap/{clientClass.mjs → clientClass.ts} +2 -1
- package/dpr/components/_charts/chart/heatmap/types.js +16 -1
- package/dpr/components/_charts/chart/heatmap/types.js.map +3 -3
- package/dpr/components/_charts/chart/heatmap/validate.js +40 -1
- package/dpr/components/_charts/chart/heatmap/validate.js.map +3 -3
- package/dpr/components/_charts/chart/line/LineChart.js +107 -1
- package/dpr/components/_charts/chart/line/LineChart.js.map +3 -3
- package/dpr/components/_charts/chart/line/clientClass.js +93 -0
- package/dpr/components/_charts/chart/line/clientClass.js.map +7 -0
- package/dpr/components/_charts/chart/line/{clientClass.mjs → clientClass.ts} +2 -1
- package/dpr/components/_charts/chart/line/types.js +16 -1
- package/dpr/components/_charts/chart/line/types.js.map +3 -3
- package/dpr/components/_charts/chart/line/validate.js +48 -1
- package/dpr/components/_charts/chart/line/validate.js.map +3 -3
- package/dpr/components/_charts/chart/line-timeseries/LineTimeseriesChart.js +81 -1
- package/dpr/components/_charts/chart/line-timeseries/LineTimeseriesChart.js.map +3 -3
- package/dpr/components/_charts/chart/line-timeseries/types.js +16 -1
- package/dpr/components/_charts/chart/line-timeseries/types.js.map +3 -3
- package/dpr/components/_charts/chart/line-timeseries/validate.js +48 -1
- package/dpr/components/_charts/chart/line-timeseries/validate.js.map +3 -3
- package/dpr/components/_charts/utils.js +240 -1
- package/dpr/components/_charts/utils.js.map +3 -3
- package/dpr/components/_dashboards/dashboard-list/types.js +16 -1
- package/dpr/components/_dashboards/dashboard-list/types.js.map +3 -3
- package/dpr/components/_dashboards/dashboard-list/utils.js +170 -1
- package/dpr/components/_dashboards/dashboard-list/utils.js.map +3 -3
- package/dpr/components/_dashboards/dashboard-list/validate.js +43 -1
- package/dpr/components/_dashboards/dashboard-list/validate.js.map +3 -3
- package/dpr/components/_dashboards/dashboard-visualisation/Validate.js +95 -1
- package/dpr/components/_dashboards/dashboard-visualisation/Validate.js.map +3 -3
- package/dpr/components/_dashboards/dashboard-visualisation/types.js +40 -1
- package/dpr/components/_dashboards/dashboard-visualisation/types.js.map +3 -3
- package/dpr/components/_dashboards/scorecard/Scorecard.js +176 -1
- package/dpr/components/_dashboards/scorecard/Scorecard.js.map +3 -3
- package/dpr/components/_dashboards/scorecard/clientClass.js +50 -0
- package/dpr/components/_dashboards/scorecard/clientClass.js.map +7 -0
- package/dpr/components/_dashboards/scorecard/{clientClass.mjs → clientClass.ts} +2 -1
- package/dpr/components/_dashboards/scorecard/types.js +16 -1
- package/dpr/components/_dashboards/scorecard/types.js.map +3 -3
- package/dpr/components/_dashboards/scorecard/utils.js +61 -1
- package/dpr/components/_dashboards/scorecard/utils.js.map +3 -3
- package/dpr/components/_dashboards/scorecard/validate.js +50 -1
- package/dpr/components/_dashboards/scorecard/validate.js.map +3 -3
- package/dpr/components/_dashboards/scorecard-group/ScorecardGroup.js +212 -1
- package/dpr/components/_dashboards/scorecard-group/ScorecardGroup.js.map +3 -3
- package/dpr/components/_dashboards/scorecard-group/types.js +16 -1
- package/dpr/components/_dashboards/scorecard-group/types.js.map +3 -3
- package/dpr/components/_dashboards/scorecard-group/validate.js +50 -1
- package/dpr/components/_dashboards/scorecard-group/validate.js.map +3 -3
- package/dpr/components/_filters/filter-input/enum.js +38 -1
- package/dpr/components/_filters/filter-input/enum.js.map +3 -3
- package/dpr/components/_filters/filter-input/filters.js +37 -1
- package/dpr/components/_filters/filter-input/filters.js.map +3 -3
- package/dpr/components/_filters/filter-input/types.d.js +16 -1
- package/dpr/components/_filters/filter-input/types.d.js.map +3 -3
- package/dpr/components/_filters/filters-form/clientClass.js +104 -0
- package/dpr/components/_filters/filters-form/clientClass.js.map +7 -0
- package/dpr/components/_filters/filters-form/{clientClass.mjs → clientClass.ts} +2 -1
- package/dpr/components/_filters/filters-interactive/clientClass.js +55 -0
- package/dpr/components/_filters/filters-interactive/clientClass.js.map +7 -0
- package/dpr/components/_filters/filters-interactive/{clientClass.mjs → clientClass.ts} +2 -1
- package/dpr/components/_filters/filters-selected/clientClass.js +396 -0
- package/dpr/components/_filters/filters-selected/clientClass.js.map +7 -0
- package/dpr/components/_filters/filters-selected/{clientClass.mjs → clientClass.ts} +7 -7
- package/dpr/components/_filters/filters-selected/utils.js +314 -1
- package/dpr/components/_filters/filters-selected/utils.js.map +3 -3
- package/dpr/components/_filters/filtersTypeEnum.js +32 -1
- package/dpr/components/_filters/filtersTypeEnum.js.map +3 -3
- package/dpr/components/_filters/types.d.js +16 -1
- package/dpr/components/_filters/types.d.js.map +3 -3
- package/dpr/components/_filters/utils.js +385 -1
- package/dpr/components/_filters/utils.js.map +3 -3
- package/dpr/components/_inputs/autocomplete-text-input/clientClass.js +153 -0
- package/dpr/components/_inputs/autocomplete-text-input/clientClass.js.map +7 -0
- package/dpr/components/_inputs/autocomplete-text-input/{clientClass.mjs → clientClass.ts} +2 -1
- package/dpr/components/_inputs/autocomplete-text-input/utils.js +45 -1
- package/dpr/components/_inputs/autocomplete-text-input/utils.js.map +3 -3
- package/dpr/components/_inputs/date-input/clientClass.js +109 -0
- package/dpr/components/_inputs/date-input/clientClass.js.map +7 -0
- package/dpr/components/_inputs/date-input/{clientClass.mjs → clientClass.ts} +2 -1
- package/dpr/components/_inputs/date-input/utils.js +88 -1
- package/dpr/components/_inputs/date-input/utils.js.map +3 -3
- package/dpr/components/_inputs/date-range/clientClass.js +206 -0
- package/dpr/components/_inputs/date-range/clientClass.js.map +7 -0
- package/dpr/components/_inputs/date-range/{clientClass.mjs → clientClass.ts} +2 -1
- package/dpr/components/_inputs/date-range/types.js +38 -1
- package/dpr/components/_inputs/date-range/types.js.map +3 -3
- package/dpr/components/_inputs/date-range/utils.js +229 -1
- package/dpr/components/_inputs/date-range/utils.js.map +3 -3
- package/dpr/components/_inputs/granular-date-range/clientClass.js +245 -0
- package/dpr/components/_inputs/granular-date-range/clientClass.js.map +7 -0
- package/dpr/components/_inputs/granular-date-range/{clientClass.mjs → clientClass.ts} +2 -1
- package/dpr/components/_inputs/granular-date-range/types.js +70 -1
- package/dpr/components/_inputs/granular-date-range/types.js.map +3 -3
- package/dpr/components/_inputs/granular-date-range/utils.js +445 -1
- package/dpr/components/_inputs/granular-date-range/utils.js.map +3 -3
- package/dpr/components/_inputs/multi-select/utils.js +88 -1
- package/dpr/components/_inputs/multi-select/utils.js.map +3 -3
- package/dpr/components/_inputs/start-end-date/utils.js +84 -1
- package/dpr/components/_inputs/start-end-date/utils.js.map +3 -3
- package/dpr/components/_reports/report-actions/actionsTemplate.js +59 -1
- package/dpr/components/_reports/report-actions/actionsTemplate.js.map +3 -3
- package/dpr/components/_reports/report-actions/clientClass.js +103 -0
- package/dpr/components/_reports/report-actions/clientClass.js.map +7 -0
- package/dpr/components/_reports/report-actions/{clientClass.mjs → clientClass.ts} +2 -1
- package/dpr/components/_reports/report-actions/types.d.js +16 -1
- package/dpr/components/_reports/report-actions/types.d.js.map +3 -3
- package/dpr/components/_reports/report-actions/utils.js +97 -1
- package/dpr/components/_reports/report-actions/utils.js.map +3 -3
- package/dpr/components/_reports/report-columns-form/clientClass.js +76 -0
- package/dpr/components/_reports/report-columns-form/clientClass.js.map +7 -0
- package/dpr/components/_reports/report-columns-form/{clientClass.mjs → clientClass.ts} +2 -1
- package/dpr/components/_reports/report-columns-form/types.d.js +16 -1
- package/dpr/components/_reports/report-columns-form/types.d.js.map +3 -3
- package/dpr/components/_reports/report-columns-form/utils.js +65 -1
- package/dpr/components/_reports/report-columns-form/utils.js.map +3 -3
- package/dpr/components/_reports/report-data-table/clientClass.js +80 -0
- package/dpr/components/_reports/report-data-table/clientClass.js.map +7 -0
- package/dpr/components/_reports/report-data-table/{clientClass.mjs → clientClass.ts} +2 -1
- package/dpr/components/_reports/report-data-table/types.d.js +16 -1
- package/dpr/components/_reports/report-data-table/types.d.js.map +3 -3
- package/dpr/components/_reports/report-data-table/utils.js +122 -1
- package/dpr/components/_reports/report-data-table/utils.js.map +3 -3
- package/dpr/components/_reports/report-download-message/clientClass.js +42 -0
- package/dpr/components/_reports/report-download-message/clientClass.js.map +7 -0
- package/dpr/components/_reports/report-download-message/{clientClass.mjs → clientClass.ts} +2 -1
- package/dpr/components/_reports/report-pagination/clientClass.js +61 -0
- package/dpr/components/_reports/report-pagination/clientClass.js.map +7 -0
- package/dpr/components/_reports/report-pagination/{clientClass.mjs → clientClass.ts} +2 -1
- package/dpr/components/_reports/report-pagination/types.d.js +16 -1
- package/dpr/components/_reports/report-pagination/types.d.js.map +3 -3
- package/dpr/components/_reports/report-pagination/utils.js +105 -1
- package/dpr/components/_reports/report-pagination/utils.js.map +3 -3
- package/dpr/components/_reports/report-totals/utils.js +42 -1
- package/dpr/components/_reports/report-totals/utils.js.map +3 -3
- package/dpr/components/bookmark-toggle/clientClass.js +111 -0
- package/dpr/components/bookmark-toggle/clientClass.js.map +7 -0
- package/dpr/components/bookmark-toggle/{clientClass.mjs → clientClass.ts} +2 -1
- package/dpr/components/card-group/clientClass.js +53 -0
- package/dpr/components/card-group/clientClass.js.map +7 -0
- package/dpr/components/card-group/{clientClass.mjs → clientClass.ts} +2 -1
- package/dpr/components/card-group/utils.js +57 -1
- package/dpr/components/card-group/utils.js.map +3 -3
- package/dpr/components/report-list/defaultTokenProvider.js +36 -1
- package/dpr/components/report-list/defaultTokenProvider.js.map +3 -3
- package/dpr/components/report-list/types.d.js +16 -1
- package/dpr/components/report-list/types.d.js.map +3 -3
- package/dpr/components/report-list/utils.js +238 -1
- package/dpr/components/report-list/utils.js.map +3 -3
- package/dpr/components/show-more/clientClass.js +63 -0
- package/dpr/components/show-more/clientClass.js.map +7 -0
- package/dpr/components/show-more/{clientClass.mjs → clientClass.ts} +2 -1
- package/dpr/components/show-more/utils.js +38 -3
- package/dpr/components/show-more/utils.js.map +3 -3
- package/dpr/components/user-reports/bookmarks/utils.js +198 -1
- package/dpr/components/user-reports/bookmarks/utils.js.map +3 -3
- package/dpr/components/user-reports/requested/clientClass.js +132 -0
- package/dpr/components/user-reports/requested/clientClass.js.map +7 -0
- package/dpr/components/user-reports/requested/{clientClass.mjs → clientClass.ts} +2 -1
- package/dpr/components/user-reports/requested/utils.js +65 -1
- package/dpr/components/user-reports/requested/utils.js.map +3 -3
- package/dpr/components/user-reports/types.d.js +16 -1
- package/dpr/components/user-reports/types.d.js.map +3 -3
- package/dpr/components/user-reports/utils.js +365 -1
- package/dpr/components/user-reports/utils.js.map +3 -3
- package/dpr/components/user-reports/viewed/clientClass.js +102 -0
- package/dpr/components/user-reports/viewed/clientClass.js.map +7 -0
- package/dpr/components/user-reports/viewed/{clientClass.mjs → clientClass.ts} +2 -1
- package/dpr/components/user-reports/viewed/utils.js +37 -1
- package/dpr/components/user-reports/viewed/utils.js.map +3 -3
- package/dpr/data/agentConfig.js +35 -1
- package/dpr/data/agentConfig.js.map +3 -3
- package/dpr/data/dashboardClient.js +108 -1
- package/dpr/data/dashboardClient.js.map +3 -3
- package/dpr/data/dprReportingClient.js +55 -1
- package/dpr/data/dprReportingClient.js.map +3 -3
- package/dpr/data/missingReportClient.js +55 -1
- package/dpr/data/missingReportClient.js.map +3 -3
- package/dpr/data/productCollectionClient.js +58 -1
- package/dpr/data/productCollectionClient.js.map +3 -3
- package/dpr/data/reportDataStore.js +77 -1
- package/dpr/data/reportDataStore.js.map +3 -3
- package/dpr/data/reportingClient.js +173 -1
- package/dpr/data/reportingClient.js.map +3 -3
- package/dpr/data/restClient.js +143 -1
- package/dpr/data/restClient.js.map +3 -3
- package/dpr/data/types.d.js +16 -1
- package/dpr/data/types.d.js.map +3 -3
- package/dpr/middleware/reportAuthoriser.js +63 -1
- package/dpr/middleware/reportAuthoriser.js.map +3 -3
- package/dpr/middleware/setUpDprResources.js +173 -1
- package/dpr/middleware/setUpDprResources.js.map +3 -3
- package/dpr/middleware/setUpNestedRoute.js +35 -1
- package/dpr/middleware/setUpNestedRoute.js.map +3 -3
- package/dpr/routes/index.js +50 -1
- package/dpr/routes/index.js.map +3 -3
- package/dpr/routes/journeys/api-failures.cy.js +295 -1
- package/dpr/routes/journeys/api-failures.cy.js.map +3 -3
- package/dpr/routes/journeys/download-report/controller.js +65 -1
- package/dpr/routes/journeys/download-report/controller.js.map +3 -3
- package/dpr/routes/journeys/download-report/request-download/form/controller.js +98 -1
- package/dpr/routes/journeys/download-report/request-download/form/controller.js.map +3 -3
- package/dpr/routes/journeys/download-report/request-download/form/routes.js +50 -1
- package/dpr/routes/journeys/download-report/request-download/form/routes.js.map +3 -3
- package/dpr/routes/journeys/download-report/request-download/form/submitted/controller.js +68 -1
- package/dpr/routes/journeys/download-report/request-download/form/submitted/controller.js.map +3 -3
- package/dpr/routes/journeys/download-report/request-download/form/submitted/routes.js +47 -1
- package/dpr/routes/journeys/download-report/request-download/form/submitted/routes.js.map +3 -3
- package/dpr/routes/journeys/download-report/request-download/form/submitted/tests.cy.js +17 -1
- package/dpr/routes/journeys/download-report/request-download/form/submitted/tests.cy.js.map +2 -2
- package/dpr/routes/journeys/download-report/request-download/form/tests.cy.js +24 -1
- package/dpr/routes/journeys/download-report/request-download/form/tests.cy.js.map +3 -3
- package/dpr/routes/journeys/download-report/request-download/routes.js +46 -1
- package/dpr/routes/journeys/download-report/request-download/routes.js.map +3 -3
- package/dpr/routes/journeys/download-report/request-download/service.js +90 -1
- package/dpr/routes/journeys/download-report/request-download/service.js.map +3 -3
- package/dpr/routes/journeys/download-report/routes.js +63 -1
- package/dpr/routes/journeys/download-report/routes.js.map +3 -3
- package/dpr/routes/journeys/download-report/tests.cy.js +104 -1
- package/dpr/routes/journeys/download-report/tests.cy.js.map +3 -3
- package/dpr/routes/journeys/download-report/utils.js +196 -1
- package/dpr/routes/journeys/download-report/utils.js.map +3 -3
- package/dpr/routes/journeys/my-reports/bookmarks/controller.js +58 -1
- package/dpr/routes/journeys/my-reports/bookmarks/controller.js.map +3 -3
- package/dpr/routes/journeys/my-reports/bookmarks/list/controller.js +56 -1
- package/dpr/routes/journeys/my-reports/bookmarks/list/controller.js.map +3 -3
- package/dpr/routes/journeys/my-reports/bookmarks/list/routes.js +47 -1
- package/dpr/routes/journeys/my-reports/bookmarks/list/routes.js.map +3 -3
- package/dpr/routes/journeys/my-reports/bookmarks/list/tests.cy.js +32 -1
- package/dpr/routes/journeys/my-reports/bookmarks/list/tests.cy.js.map +3 -3
- package/dpr/routes/journeys/my-reports/bookmarks/routes.js +49 -1
- package/dpr/routes/journeys/my-reports/bookmarks/routes.js.map +3 -3
- package/dpr/routes/journeys/my-reports/bookmarks/service.js +123 -4
- package/dpr/routes/journeys/my-reports/bookmarks/service.js.map +3 -3
- package/dpr/routes/journeys/my-reports/bookmarks/tests.cy.js +448 -1
- package/dpr/routes/journeys/my-reports/bookmarks/tests.cy.js.map +3 -3
- package/dpr/routes/journeys/my-reports/bookmarks/utils.js +44 -1
- package/dpr/routes/journeys/my-reports/bookmarks/utils.js.map +3 -3
- package/dpr/routes/journeys/my-reports/recently-viewed/controller.js +53 -1
- package/dpr/routes/journeys/my-reports/recently-viewed/controller.js.map +3 -3
- package/dpr/routes/journeys/my-reports/recently-viewed/list/controller.js +65 -1
- package/dpr/routes/journeys/my-reports/recently-viewed/list/controller.js.map +3 -3
- package/dpr/routes/journeys/my-reports/recently-viewed/list/routes.js +47 -1
- package/dpr/routes/journeys/my-reports/recently-viewed/list/routes.js.map +3 -3
- package/dpr/routes/journeys/my-reports/recently-viewed/list/tests.cy.js +83 -1
- package/dpr/routes/journeys/my-reports/recently-viewed/list/tests.cy.js.map +3 -3
- package/dpr/routes/journeys/my-reports/recently-viewed/routes.js +49 -1
- package/dpr/routes/journeys/my-reports/recently-viewed/routes.js.map +3 -3
- package/dpr/routes/journeys/my-reports/recently-viewed/service.js +118 -1
- package/dpr/routes/journeys/my-reports/recently-viewed/service.js.map +3 -3
- package/dpr/routes/journeys/my-reports/requested-reports/controller.js +52 -1
- package/dpr/routes/journeys/my-reports/requested-reports/controller.js.map +3 -3
- package/dpr/routes/journeys/my-reports/requested-reports/list/controller.js +65 -1
- package/dpr/routes/journeys/my-reports/requested-reports/list/controller.js.map +3 -3
- package/dpr/routes/journeys/my-reports/requested-reports/list/routes.js +47 -1
- package/dpr/routes/journeys/my-reports/requested-reports/list/routes.js.map +3 -3
- package/dpr/routes/journeys/my-reports/requested-reports/list/tests.cy.js +15 -1
- package/dpr/routes/journeys/my-reports/requested-reports/list/tests.cy.js.map +3 -3
- package/dpr/routes/journeys/my-reports/requested-reports/routes.js +49 -1
- package/dpr/routes/journeys/my-reports/requested-reports/routes.js.map +3 -3
- package/dpr/routes/journeys/my-reports/requested-reports/service.js +200 -1
- package/dpr/routes/journeys/my-reports/requested-reports/service.js.map +3 -3
- package/dpr/routes/journeys/my-reports/routes.js +59 -1
- package/dpr/routes/journeys/my-reports/routes.js.map +3 -3
- package/dpr/routes/journeys/product-collection/routes.js +45 -1
- package/dpr/routes/journeys/product-collection/routes.js.map +3 -3
- package/dpr/routes/journeys/product-collection/selected/controller.js +55 -1
- package/dpr/routes/journeys/product-collection/selected/controller.js.map +3 -3
- package/dpr/routes/journeys/product-collection/selected/routes.js +37 -1
- package/dpr/routes/journeys/product-collection/selected/routes.js.map +3 -3
- package/dpr/routes/journeys/product-collection/selected/tests.cy.js +47 -1
- package/dpr/routes/journeys/product-collection/selected/tests.cy.js.map +3 -3
- package/dpr/routes/journeys/product-collection/selected/validation.js +41 -1
- package/dpr/routes/journeys/product-collection/selected/validation.js.map +3 -3
- package/dpr/routes/journeys/request-missing-report/form/controller.js +104 -1
- package/dpr/routes/journeys/request-missing-report/form/controller.js.map +3 -3
- package/dpr/routes/journeys/request-missing-report/form/routes.js +50 -1
- package/dpr/routes/journeys/request-missing-report/form/routes.js.map +3 -3
- package/dpr/routes/journeys/request-missing-report/form/tests.cy.js +22 -1
- package/dpr/routes/journeys/request-missing-report/form/tests.cy.js.map +3 -3
- package/dpr/routes/journeys/request-missing-report/form/validation.js +43 -1
- package/dpr/routes/journeys/request-missing-report/form/validation.js.map +3 -3
- package/dpr/routes/journeys/request-missing-report/routes.js +57 -1
- package/dpr/routes/journeys/request-missing-report/routes.js.map +3 -3
- package/dpr/routes/journeys/request-missing-report/submitted/controller.js +65 -1
- package/dpr/routes/journeys/request-missing-report/submitted/controller.js.map +3 -3
- package/dpr/routes/journeys/request-missing-report/submitted/routes.js +47 -1
- package/dpr/routes/journeys/request-missing-report/submitted/routes.js.map +3 -3
- package/dpr/routes/journeys/request-missing-report/submitted/tests.cy.js +14 -1
- package/dpr/routes/journeys/request-missing-report/submitted/tests.cy.js.map +3 -3
- package/dpr/routes/journeys/request-missing-report/tests.cy.js +37 -1
- package/dpr/routes/journeys/request-missing-report/tests.cy.js.map +3 -3
- package/dpr/routes/journeys/request-report/controller.js +79 -1
- package/dpr/routes/journeys/request-report/controller.js.map +3 -3
- package/dpr/routes/journeys/request-report/filters/controller.js +127 -1
- package/dpr/routes/journeys/request-report/filters/controller.js.map +3 -3
- package/dpr/routes/journeys/request-report/filters/routes.js +50 -1
- package/dpr/routes/journeys/request-report/filters/routes.js.map +3 -3
- package/dpr/routes/journeys/request-report/filters/tests.cy.js +451 -1
- package/dpr/routes/journeys/request-report/filters/tests.cy.js.map +3 -3
- package/dpr/routes/journeys/request-report/filters/utils.js +331 -1
- package/dpr/routes/journeys/request-report/filters/utils.js.map +3 -3
- package/dpr/routes/journeys/request-report/routes.js +100 -1
- package/dpr/routes/journeys/request-report/routes.js.map +3 -3
- package/dpr/routes/journeys/request-report/status/controller.js +80 -1
- package/dpr/routes/journeys/request-report/status/controller.js.map +3 -3
- package/dpr/routes/journeys/request-report/status/routes.js +48 -1
- package/dpr/routes/journeys/request-report/status/routes.js.map +3 -3
- package/dpr/routes/journeys/request-report/status/tests.cy.js +127 -1
- package/dpr/routes/journeys/request-report/status/tests.cy.js.map +3 -3
- package/dpr/routes/journeys/request-report/status/utils.js +72 -1
- package/dpr/routes/journeys/request-report/status/utils.js.map +3 -3
- package/dpr/routes/journeys/request-report/tests.cy.js +307 -1
- package/dpr/routes/journeys/request-report/tests.cy.js.map +3 -3
- package/dpr/routes/journeys/routes.js +46 -1
- package/dpr/routes/journeys/routes.js.map +3 -3
- package/dpr/routes/journeys/view-report/async/controller.js +89 -1
- package/dpr/routes/journeys/view-report/async/controller.js.map +3 -3
- package/dpr/routes/journeys/view-report/async/dashboard/controller.js +82 -1
- package/dpr/routes/journeys/view-report/async/dashboard/controller.js.map +3 -3
- package/dpr/routes/journeys/view-report/async/dashboard/routes.js +48 -1
- package/dpr/routes/journeys/view-report/async/dashboard/routes.js.map +3 -3
- package/dpr/routes/journeys/view-report/async/dashboard/tests.cy.js +33 -1
- package/dpr/routes/journeys/view-report/async/dashboard/tests.cy.js.map +3 -3
- package/dpr/routes/journeys/view-report/async/dashboard/utils.js +242 -1
- package/dpr/routes/journeys/view-report/async/dashboard/utils.js.map +3 -3
- package/dpr/routes/journeys/view-report/async/report/controller.js +83 -1
- package/dpr/routes/journeys/view-report/async/report/controller.js.map +3 -3
- package/dpr/routes/journeys/view-report/async/report/report-variants.cy.js +76 -1
- package/dpr/routes/journeys/view-report/async/report/report-variants.cy.js.map +3 -3
- package/dpr/routes/journeys/view-report/async/report/routes.js +53 -1
- package/dpr/routes/journeys/view-report/async/report/routes.js.map +3 -3
- package/dpr/routes/journeys/view-report/async/report/tests.cy.js +895 -1
- package/dpr/routes/journeys/view-report/async/report/tests.cy.js.map +3 -3
- package/dpr/routes/journeys/view-report/async/report/types.js +16 -1
- package/dpr/routes/journeys/view-report/async/report/types.js.map +3 -3
- package/dpr/routes/journeys/view-report/async/report/utils.js +427 -1
- package/dpr/routes/journeys/view-report/async/report/utils.js.map +3 -3
- package/dpr/routes/journeys/view-report/async/routes.js +52 -1
- package/dpr/routes/journeys/view-report/async/routes.js.map +3 -3
- package/dpr/routes/journeys/view-report/controller.js +62 -1
- package/dpr/routes/journeys/view-report/controller.js.map +4 -4
- package/dpr/routes/journeys/view-report/controller.ts +1 -1
- package/dpr/routes/journeys/view-report/routes.js +87 -1
- package/dpr/routes/journeys/view-report/routes.js.map +3 -3
- package/dpr/routes/journeys/view-report/sync/dashboard/controller.js +68 -1
- package/dpr/routes/journeys/view-report/sync/dashboard/controller.js.map +3 -3
- package/dpr/routes/journeys/view-report/sync/dashboard/routes.js +48 -1
- package/dpr/routes/journeys/view-report/sync/dashboard/routes.js.map +3 -3
- package/dpr/routes/journeys/view-report/sync/dashboard/utils.js +144 -1
- package/dpr/routes/journeys/view-report/sync/dashboard/utils.js.map +3 -3
- package/dpr/routes/journeys/view-report/sync/load-report/controller.js +102 -1
- package/dpr/routes/journeys/view-report/sync/load-report/controller.js.map +3 -3
- package/dpr/routes/journeys/view-report/sync/load-report/routes.js +47 -1
- package/dpr/routes/journeys/view-report/sync/load-report/routes.js.map +3 -3
- package/dpr/routes/journeys/view-report/sync/report/controller.js +99 -1
- package/dpr/routes/journeys/view-report/sync/report/controller.js.map +3 -3
- package/dpr/routes/journeys/view-report/sync/report/routes.js +51 -1
- package/dpr/routes/journeys/view-report/sync/report/routes.js.map +3 -3
- package/dpr/routes/journeys/view-report/sync/report/utils.js +298 -1
- package/dpr/routes/journeys/view-report/sync/report/utils.js.map +3 -3
- package/dpr/routes/journeys/view-report/sync/routes.js +51 -1
- package/dpr/routes/journeys/view-report/sync/routes.js.map +3 -3
- package/dpr/routes/journeys/view-report/sync/tests.cy.js +43 -1
- package/dpr/routes/journeys/view-report/sync/tests.cy.js.map +3 -3
- package/dpr/routes/journeys/view-report/utils.js +173 -1
- package/dpr/routes/journeys/view-report/utils.js.map +3 -3
- package/dpr/services/dashboardService.js +66 -1
- package/dpr/services/dashboardService.js.map +3 -3
- package/dpr/services/defaultFilterValuesService.js +114 -1
- package/dpr/services/defaultFilterValuesService.js.map +3 -3
- package/dpr/services/featureFlagService.js +65 -1
- package/dpr/services/featureFlagService.js.map +3 -3
- package/dpr/services/featureFlags.cy.js +72 -1
- package/dpr/services/featureFlags.cy.js.map +3 -3
- package/dpr/services/index.js +59 -1
- package/dpr/services/index.js.map +3 -3
- package/dpr/services/missingReport/missingReportService.js +52 -1
- package/dpr/services/missingReport/missingReportService.js.map +3 -3
- package/dpr/services/productCollection/productCollectionService.js +55 -1
- package/dpr/services/productCollection/productCollectionService.js.map +3 -3
- package/dpr/services/productCollection/productCollectionStoreService.js +61 -1
- package/dpr/services/productCollection/productCollectionStoreService.js.map +3 -3
- package/dpr/services/reportStoreService.js +51 -1
- package/dpr/services/reportStoreService.js.map +3 -3
- package/dpr/services/reportingService.js +81 -1
- package/dpr/services/reportingService.js.map +3 -3
- package/dpr/setUpNunjucksFilters.js +66 -1
- package/dpr/setUpNunjucksFilters.js.map +3 -3
- package/dpr/types/AsyncReportUtils.js +16 -1
- package/dpr/types/AsyncReportUtils.js.map +3 -3
- package/dpr/types/Bookmark.js +16 -1
- package/dpr/types/Bookmark.js.map +3 -3
- package/dpr/types/Charts.js +16 -1
- package/dpr/types/Charts.js.map +3 -3
- package/dpr/types/Download.js +16 -1
- package/dpr/types/Download.js.map +3 -3
- package/dpr/types/DprConfig.js +16 -1
- package/dpr/types/DprConfig.js.map +3 -3
- package/dpr/types/DprUser.js +43 -1
- package/dpr/types/DprUser.js.map +3 -3
- package/dpr/types/EmbeddedReportUtils.js +33 -1
- package/dpr/types/EmbeddedReportUtils.js.map +3 -3
- package/dpr/types/ExecutionData.d.js +16 -1
- package/dpr/types/ExecutionData.d.js.map +3 -3
- package/dpr/types/Metrics.js +16 -1
- package/dpr/types/Metrics.js.map +3 -3
- package/dpr/types/ReportQuery.js +168 -1
- package/dpr/types/ReportQuery.js.map +3 -3
- package/dpr/types/ReportStore.js +16 -1
- package/dpr/types/ReportStore.js.map +3 -3
- package/dpr/types/Services.d.js +16 -1
- package/dpr/types/Services.d.js.map +3 -3
- package/dpr/types/Templates.d.js +16 -1
- package/dpr/types/Templates.d.js.map +3 -3
- package/dpr/types/UserReports.js +55 -1
- package/dpr/types/UserReports.js.map +3 -3
- package/dpr/types/api.d.js +16 -1
- package/dpr/types/api.d.js.map +3 -3
- package/dpr/types/index.d.js +16 -1
- package/dpr/types/index.d.js.map +3 -3
- package/dpr/utils/CollatedSummaryBuilder/CollatedSummaryBuilder.js +91 -1
- package/dpr/utils/CollatedSummaryBuilder/CollatedSummaryBuilder.js.map +3 -3
- package/dpr/utils/CreateDprServices.js +66 -1
- package/dpr/utils/CreateDprServices.js.map +3 -3
- package/dpr/utils/DataTableBuilder/DataTableBuilder.js +304 -1
- package/dpr/utils/DataTableBuilder/DataTableBuilder.js.map +3 -3
- package/dpr/utils/DataTableBuilder/types.d.js +16 -1
- package/dpr/utils/DataTableBuilder/types.d.js.map +3 -3
- package/dpr/utils/DateMapper/DateMapper.js +125 -1
- package/dpr/utils/DateMapper/DateMapper.js.map +3 -3
- package/dpr/utils/DateMapper/types.d.js +16 -1
- package/dpr/utils/DateMapper/types.d.js.map +3 -3
- package/dpr/utils/ErrorHandler.js +94 -1
- package/dpr/utils/ErrorHandler.js.map +3 -3
- package/dpr/utils/ParentChildDataTableBuilder/ParentChildDataTableBuilder.js +201 -1
- package/dpr/utils/ParentChildDataTableBuilder/ParentChildDataTableBuilder.js.map +3 -3
- package/dpr/utils/ParentChildDataTableBuilder/types.d.js +16 -1
- package/dpr/utils/ParentChildDataTableBuilder/types.d.js.map +3 -3
- package/dpr/utils/Personalisation/personalisationUtils.js +202 -1
- package/dpr/utils/Personalisation/personalisationUtils.js.map +3 -3
- package/dpr/utils/Personalisation/types.d.js +16 -1
- package/dpr/utils/Personalisation/types.d.js.map +3 -3
- package/dpr/utils/SectionedDataTableBuilder/SectionedDataTableBuilder.js +310 -1
- package/dpr/utils/SectionedDataTableBuilder/SectionedDataTableBuilder.js.map +3 -3
- package/dpr/utils/SectionedDataTableBuilder/types.d.js +16 -1
- package/dpr/utils/SectionedDataTableBuilder/types.d.js.map +3 -3
- package/dpr/utils/SectionedFieldsTableBuilder/SectionedFieldsTableBuilder.js +145 -1
- package/dpr/utils/SectionedFieldsTableBuilder/SectionedFieldsTableBuilder.js.map +3 -3
- package/dpr/utils/SummaryDataTableBuilder/SummaryDataTableBuilder.js +60 -1
- package/dpr/utils/SummaryDataTableBuilder/SummaryDataTableBuilder.js.map +3 -3
- package/dpr/utils/UserStoreItemBuilder.js +247 -1
- package/dpr/utils/UserStoreItemBuilder.js.map +3 -3
- package/dpr/utils/arrayUtils.js +28 -1
- package/dpr/utils/arrayUtils.js.map +3 -3
- package/dpr/utils/datasetHelper.js +229 -1
- package/dpr/utils/datasetHelper.js.map +3 -3
- package/dpr/utils/definitionUtils.js +133 -1
- package/dpr/utils/definitionUtils.js.map +3 -3
- package/dpr/utils/index.js +44 -1
- package/dpr/utils/index.js.map +3 -3
- package/dpr/utils/indexedAccesHelper.js +41 -1
- package/dpr/utils/indexedAccesHelper.js.map +3 -3
- package/dpr/utils/localsHelper.js +105 -1
- package/dpr/utils/localsHelper.js.map +3 -3
- package/dpr/utils/logger.js +48 -1
- package/dpr/utils/logger.js.map +3 -3
- package/dpr/utils/reportListsHelper.js +128 -12
- package/dpr/utils/reportListsHelper.js.map +3 -3
- package/dpr/utils/reportStoreHelper.js +65 -1
- package/dpr/utils/reportStoreHelper.js.map +3 -3
- package/dpr/utils/requestStatusHelper.js +172 -1
- package/dpr/utils/requestStatusHelper.js.map +3 -3
- package/dpr/utils/sanitisedError.js +45 -1
- package/dpr/utils/sanitisedError.js.map +3 -3
- package/dpr/utils/urlHelper.js +103 -1
- package/dpr/utils/urlHelper.js.map +3 -3
- package/dpr/validation/validate.js +52 -1
- package/dpr/validation/validate.js.map +3 -3
- 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": ["
|
|
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,CAACC,EAAGC,IAAaA,EAA8B,KAAK,SAAS,4BAA0B,EAAE,CACjG,CAAC,EACD,GAAG,WAAW,OAAQ,CACpB,KAAM,CAACD,EAAGC,IAAaA,EAA8B,KAAK,SAAS,2BAAyB,EAAE,CAChG,CAAC,CACH,CAAC,CACL,CAAC,CACH,CAAC,CACH,CAAC,EAED,SAAS,2BAA4B,IAAM,CACzC,OAAO,IAAM,IACX,iBAAc,KACd,wBAAqB,EACrB,GAAG,KAAK,sCAAsC,EAC9C,GAAG,KAAK,0BAA0B,EAClC,GAAG,KAAK,mCAAmC,EAC3C,GAAG,KAAK,oBAAoB,EAC5B,GAAG,KAAK,yCAAyC,EACjD,GAAG,KAAK,8BAA8B,EACtC,GAAG,KAAK,4BAA4B,EACpC,GAAG,KAAK,2BAA2B,CACrC,CAAC,EAED,WAAW,IAAM,CACf,GAAG,MAAMF,CAAI,CACf,CAAC,EAED,SAAS,gCAAiC,IAAM,CAC9C,SAAS,SAAU,IAAM,CACvB,GAAG,8C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AA,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";
|
|
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
|