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

Owen Leonard <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #183354|0                           |1
        is obsolete|                            |
 Attachment #183355|0                           |1
        is obsolete|                            |
 Attachment #183920|0                           |1
        is obsolete|                            |
 Attachment #183928|0                           |1
        is obsolete|                            |

--- Comment #14 from Owen Leonard <[email protected]> ---
Created attachment 183994
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=183994&action=edit
Bug 40173: Make http-client reusable from Cypress tests

We will need to call REST API endpoints from Cypress tests, and more
specifically from Cypress's tasks.

It will be useful to reuse what has been done in http-client.js instead
of using the low-level fetch JS function.

1. Add missing get and getAll functions
2. Allow overwrite of return_response and mark_submitting
3. Add a "default" client that will bring flexibility (can call any
   routes)
4. Add rspack config to generate
   t/cypress/plugins/dist/api-client.cjs.js that will make it reusable
   from Cypress's tasks

Signed-off-by: Owen Leonard <[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