Koha-clms/t/cypress/integration
Jonathan Druart 2fdf9e7388
Bug 38446: Add a dedicated route to retrieve ERM-related additional fields
In order to prevent permission errors to user without the 'parameters'
permission we are introducing a separate endpoint for the ERM module to
retrieve additional fields for this specific module.

* Adds a new endpoint /erm/extended_attribute_types
* Adjusts Cypress and REST API tests
* Adds REST API swagger specs

I wanted to keep the code as simple as possible and decided to create a
wrapper for the additional fields API client. The magic is in
koha-tmpl/intranet-tmpl/prog/js/fetch/additional-fields-api-client.js
Ideally we should provide a test for this but I failed to write them.
If required by QA I would suggest to deal with them on a separate bug to
not delay this bugfix. The code has been kept designed to be used in
other contexts but the api client is not used outside of Vue and
outside of the ERM module.

Test plan:
Confirm that user without the 'parameters' permission can use the ERM
module with additional fields.

Sponsored-by: Karlsruhe Institute of Technology (KIT)
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit e0ca94ae18)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
2025-11-25 17:36:12 +01:00
..
Acquisitions Bug 40051: Remove cy.wait(delay) from cypress tests 2025-08-22 09:48:30 +02:00
Admin Revert "Bug 37917: Add some wait time to RecordSources_spec.ts for the intercepted request responses" 2024-10-11 11:13:48 +02:00
Auth Bug 40170: Replace cypress-mysql with mysql2 - Cypress tests 2025-07-10 22:47:37 +02:00
ERM Bug 40051: Remove cy.wait(delay) from cypress tests 2025-08-22 09:48:30 +02:00
Islands Bug 40170: Replace cypress-mysql with mysql2 - Cypress tests 2025-07-10 22:47:37 +02:00
KohaTable Bug 40907: Add a Cypress test 2025-10-29 10:02:34 +01:00
Patron Bug 40320: Use insertSamplePatron 2025-10-23 23:06:44 +02:00
Preservation Bug 37930: Extend new AV logic to the Preservation module 2025-04-25 08:46:57 +02:00
Tools Bug 40046: Use xml and auto-select it 2025-07-10 22:47:30 +02:00
t Bug 40345: Add insertSamplePatron 2025-08-22 09:47:43 +02:00
AdditionalFields_spec.ts Bug 38446: Add a dedicated route to retrieve ERM-related additional fields 2025-11-25 17:36:12 +01:00
InfiniteScrollSelect_spec.ts Bug 40051: Remove cy.wait(delay) from cypress tests 2025-08-22 09:48:30 +02:00
Toolbar_spec.ts Bug 40430: Fix Toolbar_spec.ts 2025-08-22 09:47:45 +02:00
flatpickr_spec.ts Revert "Bug 37493: [DONT PUSH] Test only - Force test fail" 2024-09-02 17:21:50 +02:00