https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39320

Pedro Amorim <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #187521|0                           |1
        is obsolete|                            |

--- Comment #29 from Pedro Amorim <[email protected]> ---
Created attachment 187642
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=187642&action=edit
Bug 39320: Add Cypress tests

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/a0347d4199d176dde58ea1d1437d2e903c101132/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

Sponsored-by: UKHSA (UK Health Security Agency)

Signed-off-by: Jeremy Evans <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to