Test plan: 1) Enable ERMModule 2) Visit ERM: <staff_url>/cgi-bin/koha/erm/erm.pl 3) Notice you now have a 'dashboard' homepage showing 4 different widgets 4) Click 'Open Widget Picker'. Remove and add different widgets. Close 5) Drag and drop the widgets around the dashboard, from left to right, top to bottom 6) Click the context menu (vertical dots) on each of the widgets. Click 'move to right', 'move to left', 'remove'. 7) On the 'Licenses needing action', notice there is a 'Settings' item option. Click that, test different settings values. Close settings. 8) Using the widget picker or context menu for the respective widgets, remove all widgets except one. Click away i.e. 'Agreements' on the left menu. Go back to home by clicking 'Home'. Notice your dashboard is as you left it. 9) Enable all widgets, rearrange them by dragging and dropping in different places. Repeat the previous exercise. Notice the dashboard keeps the widgets arranged as you left them. 10) Add some test data, on k-t-d run: bash <(curl -s https://gist.githubusercontent.com/ammopt/8d74feff048b0732ed0362a204c3d8cd/raw/170cf83263c736ae8655b9e0332f4867a87435be/bug_39320_test_data.sh) 11) Refresh the homepage dashboard, check the 'Counts' are correct and links work, check that the 'Latest SUSHI Counter jobs' table now populates and links to the data provider as well as respective job. 12) For 'Licenses needing action', test different settings values and confirm the table filters the results as expected. 13) As before, click away and comeback to ERM home. Notice your 'Licenses needing actions' settings are kept as you left them. 14) For the 'eUsage report' widget, notice it says 'No saved reports are availble to run'. Create a new usage report at: <staff_url>/cgi-bin/koha/erm/eusage/reports 15) Click the 'Create report' tab, input the mandatory fields and enter a report name at the bottom of the page. Click 'Save report'. 16) Come back to ERM home. Notice the 'eUsage report' widget now shows a dropdown with a disabled 'Run' button. Pick the report you just created. Notice the 'Run' button is now enabled. Click 'Run'. Notice you get the report results screen (will show nothing as there is no usage data in this test exercise). 17) k-t-d: Run cypress tests (reset_all beforehand to clear test data): cypress run --spec t/cypress/integration/ERM/ModuleDashboard_spec.ts
This is not used: koha-tmpl/intranet-tmpl/prog/js/vue/fetch/api-client.js: background_jobs: new BackgroundJobsAPIClient(), And this looks wrong: fetch/background-jobs-api-client.js + endpoint: "agreements", Actually there is no filtering on the SUSHI Counter jobs
This looks wrong: fetch/background-jobs-api-client.js + endpoint: "agreements", Actually there is no filtering on the SUSHI Counter jobs