Bug 38365: Fix Cypress tests

ReferenceError: window is not defined
    at /kohadevbox/koha/t/cypress/plugins/dist/api-client.cjs.js:521:26
    at /kohadevbox/koha/t/cypress/plugins/dist/api-client.cjs.js:523:3
    at Object.<anonymous> (/kohadevbox/koha/t/cypress/plugins/dist/api-client.cjs.js:747:3)
    at Module._compile (node:internal/modules/cjs/loader:1521:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1623:10)
    at Object.require.extensions.<computed> [as .js] (/kohadevbox/Cypress/12.17.4/Cypress/resources/app/node_modules/ts-node/dist/index.js:851:20)
    at Module.load (node:internal/modules/cjs/loader:1266:32)
    at Function.Module._load (node:internal/modules/cjs/loader:1091:12)
    at Module.require (node:internal/modules/cjs/loader:1289:19)
    at require (node:internal/modules/helpers:182:18)
    at Object.<anonymous> (/kohadevbox/koha/t/cypress/plugins/api-client.js:11:23)
    at Module._compile (node:internal/modules/cjs/loader:1521:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1623:10)
    at Object.require.extensions.<computed> [as .js] (/kohadevbox/Cypress/12.17.4/Cypress/resources/app/node_modules/ts-node/dist/index.js:851:20)
    at Module.load (node:internal/modules/cjs/loader:1266:32)
    at Function.Module._load (node:internal/modules/cjs/loader:1091:12)
    at Module.require (node:internal/modules/cjs/loader:1289:19)
    at require (node:internal/modules/helpers:182:18)
    at Object.<anonymous> (/kohadevbox/koha/t/cypress/plugins/insertData.js:14:29)
    at Module._compile (node:internal/modules/cjs/loader:1521:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1623:10)
    at Object.require.extensions.<computed> [as .js] (/kohadevbox/Cypress/12.17.4/Cypress/resources/app/node_modules/ts-node/dist/index.js:851:20)
This commit is contained in:
Jonathan Druart 2026-03-16 16:41:13 +01:00
parent 1e1a446a55
commit b936dc5d73
No known key found for this signature in database
GPG Key ID: A085E712BEF0E0F0
1 changed files with 1 additions and 1 deletions

View File

@ -1 +1 @@
__webpack_nonce__ = window.__CSP_NONCE__;
__webpack_nonce__ = globalThis.__CSP_NONCE__;