CypressError: `cy.task('query')` failed with the following error:
> Cannot add or update a child row: a foreign key constraint fails (`koha_kohadev`.`virtualshelfcontents`, CONSTRAINT `virtualshelfcontents_ibfk_1` FOREIGN KEY (`shelfnumber`) REFERENCES `virtualshelves` (`shelfnumber`) ON DELETE CASCADE ON UPDATE CASCADE)
https://on.cypress.io/api/task
Because this error occurred during a `before each` hook we are skipping the remaining tests in the current suite: `in en`
at <unknown> (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:138872:70)
at tryCatcher (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1777:23)
at Promise._settlePromiseFromHandler (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1489:31)
at Promise._settlePromise (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1546:18)
at Promise._settlePromise0 (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1591:10)
at Promise._settlePromises (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1667:18)
at _drainQueueStep (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:2377:12)
at _drainQueue (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:2370:9)
at Async._drainQueues (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:2386:5)
at Async.drainQueues (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:2256:14)
From Your Spec Code:
at Context.eval (webpack://koha/./cypress/integration/lists/listdownloadcsv.ts:11:19)
From Node.js Internals:
Error: Cannot add or update a child row: a foreign key constraint fails (`koha_kohadev`.`virtualshelfcontents`, CONSTRAINT `virtualshelfcontents_ibfk_1` FOREIGN KEY (`shelfnumber`) REFERENCES `virtualshelves` (`shelfnumber`) ON DELETE CASCADE ON UPDATE CASCADE)
at query (/e2e/cypress/plugins/db.js:61:37)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)