Koha-clms/t/cypress/plugins
Martin Renvoize 7048a657e7
Bug 40383: (follow-up) Fix failing EdifactModal Cypress tests
Three issues caused the EdifactModal_spec.ts test suite to fail:

1. insertSampleEdifactMessages inserted a vendor with listprice='USD' and
   invoiceprice='USD', but those columns have FK constraints against the
   currency table and USD is not pre-populated in KTD's default install.
   Drop the currency columns from the INSERT so they default to NULL.

2. Koha::Edifact::File::vendor() and basket() called
   Koha::Acquisition::Bookseller and Koha::Acquisition::Basket without
   use-ing them. The edifactmsgs.pl table embeds both on every API call,
   so a missing module caused a 500 and an empty table.

3. showMessage() already appended &format=json before delegating to
   showMessageFromUrl(), which then appended it a second time. Remove the
   redundant copy from showMessage().

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2026-05-21 10:49:43 -06:00
..
api-client.js Bug 40447: Add comprehensive JSDoc documentation to Cypress plugins 2025-07-21 14:01:30 -06:00
auth.js Bug 40447: Add comprehensive JSDoc documentation to Cypress plugins 2025-07-21 14:01:30 -06:00
db.js Bug 40446: Allow overriding Cypress DB settings 2026-01-06 07:45:34 -07:00
index.js Bug 40383: Add Cypress test coverage for EDIFACT modal 2026-03-26 14:21:19 +01:00
insertData.js Bug 40383: (follow-up) Fix failing EdifactModal Cypress tests 2026-05-21 10:49:43 -06:00
mockData.js Bug 40542: (40174 follow-up) Skip _strings for object creation 2025-08-01 13:22:28 -06:00
readYamlFile.js Bug 40447: Add comprehensive JSDoc documentation to Cypress plugins 2025-07-21 14:01:30 -06:00