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

Pedro Amorim <[email protected]> changed:

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

--- Comment #4 from Pedro Amorim <[email protected]> ---
Created attachment 183867
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=183867&action=edit
Bug 40170: Replace cypress-mysql with mysql2 - Cypress tests

This patch suggests to replace cypress-mysql with mysql2

cypress-mysql provides a custom Cypress command (cy.query) that run within the
browser context.
This approach mixes test-side and server-side and is limited in flexibility and
error handling.

mysql2 runs inside Cypress plugins (Node process) via cy.task calls, which are
executed server-side (outside the browser)

This is needed for the follow-up bug reports where we need to request
the DB from other plugins

Test plan:
Run `yarn install` to install the mysql2
All the Cypress tests modified by this patch must still pass
The new test t/cypress/integration/t/db.ts must also pass

Signed-off-by: David Nind <[email protected]>
Signed-off-by: Pedro Amorim <[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