Test failures - read notes in comment #6 ======================================== [2] t/cypress/integration/KohaTable/Holdings_spec.ts sometimes failed for me ---------------------------------------------------------------------------- yarn cypress run --spec t/cypress/integration/KohaTable/Holdings_spec.ts yarn run v1.22.22 $ cypress run --spec t/cypress/integration/KohaTable/Holdings_spec.ts DevTools listening on ws://127.0.0.1:40287/devtools/browser/15862b3b-418f-4180-87dc-6b3239d185f2 [37727:0707/213218.459532:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported. Missing baseUrl in compilerOptions. tsconfig-paths will be skipped ==================================================================================================== (Run Starting) ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Cypress: 12.17.4 │ │ Browser: Electron 106 (headless) │ │ Node Version: v18.20.6 (/usr/bin/node) │ │ Specs: 1 found (Holdings_spec.ts) │ │ Searched: t/cypress/integration/KohaTable/Holdings_spec.ts │ │ Experiments: experimentalStudio=true │ └────────────────────────────────────────────────────────────────────────────────────────────────┘ ──────────────────────────────────────────────────────────────────────────────────────────────────── Running: Holdings_spec.ts (1 of 1) catalogue/detail/holdings_table with items ✓ Correctly init the table (6767ms) ✓ Show filters (10473ms) 1) Filters by code and description catalogue/detail/holdings_table without items ✓ Do not display the table (2453ms) 3 passing (28s) 1 failing 1) catalogue/detail/holdings_table with items Filters by code and description: AssertionError: expected '[[{"me.item_type_id":["CF","CR"]}],[{"me.holding_library_id":["CPL"]}],[{"me.home_library_id":["CPL"]}],[{"me.location":{"like":"%C%"}}],[{"me.collection_code":{"like":"%C%"}}],[{"me.callnumber":{"like":"%C%"}}],[{"me.serial_issue_number":{"like":"%C%"}}],[{"me.last_seen_date":{"like":"%C%"}}],[{"me.checkouts_count":{"like":"%C%"}}],[{"me.renewals_count":{"like":"%C%"}}],[{"me.localuse":{"like":"%C%"}}],[{"me.acquisition_date":{"like":"%C%"}}],[{"me.last_checkout_date":{"like":"%C%"}}],[{"me.acquisition_source":{"like":"%C%"}}],[{"me.external_id":{"like":"%C%"}}],[{"me.uri":{"like":"%C%"}}],[{"me.copy_number":{"like":"%C%"}}],[{"me.inventory_number":{"like":"%C%"}}],[{"me.materials_notes":{"like":"%C%"}}],[{"me.public_notes":{"like":"%C%"}}],[{"me.internal_notes":{"like":"%C%"}}],[{"course_item.course_reserves.course.course_name":{"like":"%C%"}}]]' to match /"me.home_library_id":{"like":"%C%"}/ at Context.eval (webpack://koha/./t/cypress/integration/KohaTable/Holdings_spec.ts:156:33) (Results) ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Tests: 4 │ │ Passing: 3 │ │ Failing: 1 │ │ Pending: 0 │ │ Skipped: 0 │ │ Screenshots: 1 │ │ Video: true │ │ Duration: 28 seconds │ │ Spec Ran: Holdings_spec.ts │ └────────────────────────────────────────────────────────────────────────────────────────────────┘ (Screenshots) - /kohadevbox/koha/t/cypress/screenshots/Holdings_spec.ts/cataloguedetailholdings_ (1280x720) table with items -- Filters by code and description (failed).png (Video) - Started compressing: Compressing to 32 CRF - Finished compressing: 1 second - Video output: /kohadevbox/koha/t/cypress/videos/Holdings_spec.ts.mp4 ==================================================================================================== (Run Finished) Spec Tests Passing Failing Pending Skipped ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ ✖ Holdings_spec.ts 00:28 4 3 1 - - │ └────────────────────────────────────────────────────────────────────────────────────────────────┘ ✖ 1 of 1 failed (100%) 00:28 4 3 1 - - error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. [3] KohaTable/KohaTable_spec.ts - results when running all tests ---------------------------------------------------------------- Running: KohaTable/KohaTable_spec.ts (19 of 29) Cannot read properties of undefined (reading 'description') When Cypress detects uncaught errors originating from your application it will automatically fail the current test. This behavior is configurable, and you can choose to turn this off by listening to the `uncaught:exception` event. https://on.cypress.io/uncaught-exception-from-application at render (http://localhost:8081/cgi-bin/koha/members/members-home.pl:3218:94) at Object._render (http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_25.0600000.js:41:12213) at r.fnGetData (http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_25.0600000.js:41:14938) at q (http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_25.0600000.js:41:19553) at st (http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_25.0600000.js:41:18002) at (http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_25.0600000.js:41:25549) at Object.e [as success] (http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_25.0600000.js:41:30863) at c (http://localhost:8081/intranet-tmpl/lib/jquery/jquery-3.6.0.min_25.0600000.js:2:28327) at Object.fireWith [as resolveWith] (http://localhost:8081/intranet-tmpl/lib/jquery/jquery-3.6.0.min_25.0600000.js:2:29072) at l (http://localhost:8081/intranet-tmpl/lib/jquery/jquery-3.6.0.min_25.0600000.js:2:79901)]]> Cannot read properties of undefined (reading 'description') When Cypress detects uncaught errors originating from your application it will automatically fail the current test. This behavior is configurable, and you can choose to turn this off by listening to the `uncaught:exception` event. https://on.cypress.io/uncaught-exception-from-application at render (http://localhost:8081/cgi-bin/koha/members/members-home.pl:3218:94) at Object._render (http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_25.0600000.js:41:12213) at r.fnGetData (http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_25.0600000.js:41:14938) at q (http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_25.0600000.js:41:19553) at st (http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_25.0600000.js:41:18002) at (http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_25.0600000.js:41:25549) at Object.e [as success] (http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_25.0600000.js:41:30863) at c (http://localhost:8081/intranet-tmpl/lib/jquery/jquery-3.6.0.min_25.0600000.js:2:28327) at Object.fireWith [as resolveWith] (http://localhost:8081/intranet-tmpl/lib/jquery/jquery-3.6.0.min_25.0600000.js:2:29072) at l (http://localhost:8081/intranet-tmpl/lib/jquery/jquery-3.6.0.min_25.0600000.js:2:79901)]]> (Results) ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Tests: 10 │ │ Passing: 8 │ │ Failing: 2 │ │ Pending: 0 │ │ Skipped: 0 │ │ Screenshots: 0 │ │ Video: false │ │ Duration: 20 seconds │ │ Spec Ran: KohaTable/KohaTable_spec.ts │ └────────────────────────────────────────────────────────────────────────────────────────────────┘ When run individually: yarn cypress run --spec t/cypress/integration/KohaTable/KohaTable_spec.ts yarn run v1.22.22 $ cypress run --spec t/cypress/integration/KohaTable/KohaTable_spec.ts DevTools listening on ws://127.0.0.1:33823/devtools/browser/fc709856-efeb-4ffe-9626-f36fe609c380 [54810:0707/230744.672784:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported. Missing baseUrl in compilerOptions. tsconfig-paths will be skipped ==================================================================================================== (Run Starting) ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Cypress: 12.17.4 │ │ Browser: Electron 106 (headless) │ │ Node Version: v18.20.6 (/usr/bin/node) │ │ Specs: 1 found (KohaTable_spec.ts) │ │ Searched: t/cypress/integration/KohaTable/KohaTable_spec.ts │ │ Experiments: experimentalStudio=true │ └────────────────────────────────────────────────────────────────────────────────────────────────┘ ──────────────────────────────────────────────────────────────────────────────────────────────────── Running: KohaTable_spec.ts (1 of 1) kohaTable (using REST API) Simple tables ✓ Input search bar and clear filter (2987ms) ✓ All columns displayed (1065ms) ✓ One column hidden by default (1242ms) ✓ One column hidden by default then shown by user - Save state OFF (2064ms) ✓ One column hidden by default then shown by user - Save state is ON (1980ms) ✓ Shareable link (2382ms) ✓ Jump to the configuration page (4632ms) Patrons search 1) Input search bar and clear filter 2) Browse by last name ERM ✓ Local titles (809ms) 8 passing (20s) 2 failing 1) kohaTable (using REST API) Patrons search Input search bar and clear filter : TypeError: The following error originated from your application code, not from Cypress. > Cannot read properties of undefined (reading 'description') When Cypress detects uncaught errors originating from your application it will automatically fail the current test. This behavior is configurable, and you can choose to turn this off by listening to the `uncaught:exception` event. https://on.cypress.io/uncaught-exception-from-application at render (http://localhost:8081/cgi-bin/koha/members/members-home.pl:3398:94) at Object._render (http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_25.0600000.js:41:12213) at r.fnGetData (http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_25.0600000.js:41:14938) at q (http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_25.0600000.js:41:19553) at st (http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_25.0600000.js:41:18002) at (http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_25.0600000.js:41:25549) at Object.e [as success] (http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_25.0600000.js:41:30863) at c (http://localhost:8081/intranet-tmpl/lib/jquery/jquery-3.6.0.min_25.0600000.js:2:28327) at Object.fireWith [as resolveWith] (http://localhost:8081/intranet-tmpl/lib/jquery/jquery-3.6.0.min_25.0600000.js:2:29072) at l (http://localhost:8081/intranet-tmpl/lib/jquery/jquery-3.6.0.min_25.0600000.js:2:79901) 2) kohaTable (using REST API) Patrons search Browse by last name: TypeError: The following error originated from your application code, not from Cypress. > Cannot read properties of undefined (reading 'description') When Cypress detects uncaught errors originating from your application it will automatically fail the current test. This behavior is configurable, and you can choose to turn this off by listening to the `uncaught:exception` event. https://on.cypress.io/uncaught-exception-from-application at render (http://localhost:8081/cgi-bin/koha/members/members-home.pl:3398:94) at Object._render (http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_25.0600000.js:41:12213) at r.fnGetData (http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_25.0600000.js:41:14938) at q (http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_25.0600000.js:41:19553) at st (http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_25.0600000.js:41:18002) at (http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_25.0600000.js:41:25549) at Object.e [as success] (http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_25.0600000.js:41:30863) at c (http://localhost:8081/intranet-tmpl/lib/jquery/jquery-3.6.0.min_25.0600000.js:2:28327) at Object.fireWith [as resolveWith] (http://localhost:8081/intranet-tmpl/lib/jquery/jquery-3.6.0.min_25.0600000.js:2:29072) at l (http://localhost:8081/intranet-tmpl/lib/jquery/jquery-3.6.0.min_25.0600000.js:2:79901) (Results) ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Tests: 10 │ │ Passing: 8 │ │ Failing: 2 │ │ Pending: 0 │ │ Skipped: 0 │ │ Screenshots: 2 │ │ Video: true │ │ Duration: 20 seconds │ │ Spec Ran: KohaTable_spec.ts │ └────────────────────────────────────────────────────────────────────────────────────────────────┘ (Screenshots) - /kohadevbox/koha/t/cypress/screenshots/KohaTable_spec.ts/kohaTable (using REST A (1280x720) PI) -- Patrons search -- Input search bar and clear filter (failed).png - /kohadevbox/koha/t/cypress/screenshots/KohaTable_spec.ts/kohaTable (using REST A (1280x720) PI) -- Patrons search -- Browse by last name (failed).png (Video) - Started compressing: Compressing to 32 CRF - Finished compressing: 1 second - Video output: /kohadevbox/koha/t/cypress/videos/KohaTable_spec.ts.mp4 ==================================================================================================== (Run Finished) Spec Tests Passing Failing Pending Skipped ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ ✖ KohaTable_spec.ts 00:20 10 8 2 - - │ └────────────────────────────────────────────────────────────────────────────────────────────────┘ ✖ 1 of 1 failed (100%) 00:20 10 8 2 - - error Command failed with exit code 2. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. [4] yarn cypress run --spec t/cypress/integration/KohaTable/CirculationHistory_spec.ts -------------------------------------------------------------------------------------- yarn cypress run --spec t/cypress/integration/t/insertData.ts yarn run v1.22.22 $ cypress run --spec t/cypress/integration/t/insertData.ts DevTools listening on ws://127.0.0.1:37259/devtools/browser/afef88c9-7697-4342-be9d-60c67cb000d8 [59635:0707/231745.635234:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported. Missing baseUrl in compilerOptions. tsconfig-paths will be skipped ==================================================================================================== (Run Starting) ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Cypress: 12.17.4 │ │ Browser: Electron 106 (headless) │ │ Node Version: v18.20.6 (/usr/bin/node) │ │ Specs: 1 found (insertData.ts) │ │ Searched: t/cypress/integration/t/insertData.ts │ │ Experiments: experimentalStudio=true │ └────────────────────────────────────────────────────────────────────────────────────────────────┘ ──────────────────────────────────────────────────────────────────────────────────────────────────── Running: insertData.ts (1 of 1) insertData insertSampleBiblio ✓ should generate library and item type (596ms) ✓ insertSampleBiblio - options.different_libraries (456ms) insertSampleHold ✓ insertSampleHold - item/biblio (743ms) - insertSampleHold - missing library_id insertSampleCheckout 1) insertSampleCheckout - without parameter 3 passing (2s) 1 pending 1 failing 1) insertData insertSampleCheckout insertSampleCheckout - without parameter: CypressError: `cy.task('insertSampleCheckout')` failed with the following error: > APIClient is not defined https://on.cypress.io/api/task at (http://localhost:8081/__cypress/runner/cypress_runner.js:134597:70) at tryCatcher (http://localhost:8081/__cypress/runner/cypress_runner.js:1807:23) at Promise._settlePromiseFromHandler (http://localhost:8081/__cypress/runner/cypress_runner.js:1519:31) at Promise._settlePromise (http://localhost:8081/__cypress/runner/cypress_runner.js:1576:18) at Promise._settlePromise0 (http://localhost:8081/__cypress/runner/cypress_runner.js:1621:10) at Promise._settlePromises (http://localhost:8081/__cypress/runner/cypress_runner.js:1697:18) at _drainQueueStep (http://localhost:8081/__cypress/runner/cypress_runner.js:2407:12) at _drainQueue (http://localhost:8081/__cypress/runner/cypress_runner.js:2400:9) at Async._drainQueues (http://localhost:8081/__cypress/runner/cypress_runner.js:2416:5) at Async.drainQueues (http://localhost:8081/__cypress/runner/cypress_runner.js:2286:14) From Your Spec Code: at Context.eval (webpack://koha/./t/cypress/integration/t/insertData.ts:207:15) From Node.js Internals: ReferenceError: APIClient is not defined at insertSampleCheckout (/kohadevbox/koha/t/cypress/plugins/insertData.js:212:18) at insertSampleCheckout (/kohadevbox/koha/t/cypress/plugins/index.js:48:20) at invoke (/kohadevbox/Cypress/12.17.4/Cypress/resources/app/node_modules/@packages/server/lib/plugins/child/run_plugins.js:246:16) at (/kohadevbox/Cypress/12.17.4/Cypress/resources/app/node_modules/@packages/server/lib/plugins/util.js:59:14) at tryCatcher (/kohadevbox/Cypress/12.17.4/Cypress/resources/app/node_modules/bluebird/js/release/util.js:16:23) at Function.Promise.attempt.Promise.try (/kohadevbox/Cypress/12.17.4/Cypress/resources/app/node_modules/bluebird/js/release/method.js:39:29) at Object.wrapChildPromise (/kohadevbox/Cypress/12.17.4/Cypress/resources/app/node_modules/@packages/server/lib/plugins/util.js:58:23) at RunPlugins.taskExecute (/kohadevbox/Cypress/12.17.4/Cypress/resources/app/node_modules/@packages/server/lib/plugins/child/run_plugins.js:252:10) at RunPlugins.execute (/kohadevbox/Cypress/12.17.4/Cypress/resources/app/node_modules/@packages/server/lib/plugins/child/run_plugins.js:166:21) at EventEmitter. (/kohadevbox/Cypress/12.17.4/Cypress/resources/app/node_modules/@packages/server/lib/plugins/child/run_plugins.js:56:12) at EventEmitter.emit (node:events:517:28) at EventEmitter.emit (node:domain:489:12) at process. (/kohadevbox/Cypress/12.17.4/Cypress/resources/app/node_modules/@packages/server/lib/plugins/util.js:33:22) at process.emit (node:events:517:28) at process.emit (node:domain:489:12) at process.emit.sharedData.processEmitHook.installedValue [as emit] (/kohadevbox/Cypress/12.17.4/Cypress/resources/app/node_modules/@cspotcode/source-map-support/source-map-support.js:745:40) at emit (node:internal/child_process:944:14) at processTicksAndRejections (node:internal/process/task_queues:83:21) (Results) ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Tests: 5 │ │ Passing: 3 │ │ Failing: 1 │ │ Pending: 1 │ │ Skipped: 0 │ │ Screenshots: 1 │ │ Video: true │ │ Duration: 2 seconds │ │ Spec Ran: insertData.ts │ └────────────────────────────────────────────────────────────────────────────────────────────────┘ (Screenshots) - /kohadevbox/koha/t/cypress/screenshots/insertData.ts/insertData -- insertSampleC (1280x720) heckout -- insertSampleCheckout - without parameter (failed).png (Video) - Started compressing: Compressing to 32 CRF - Finished compressing: 0 seconds - Video output: /kohadevbox/koha/t/cypress/videos/insertData.ts.mp4 ==================================================================================================== (Run Finished) Spec Tests Passing Failing Pending Skipped ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ ✖ insertData.ts 00:02 5 3 1 1 - │ └────────────────────────────────────────────────────────────────────────────────────────────────┘ ✖ 1 of 1 failed (100%) 00:02 5 3 1 1 - error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. [5] t/cypress/integration/Patron/Address.ts ------------------------------------------- yarn cypress run --spec t/cypress/integration/Patron/Address.ts yarn run v1.22.22 $ cypress run --spec t/cypress/integration/Patron/Address.ts DevTools listening on ws://127.0.0.1:39471/devtools/browser/22887014-2009-41a4-95fb-c8b251f740b4 [67789:0707/233637.450427:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported. Missing baseUrl in compilerOptions. tsconfig-paths will be skipped ==================================================================================================== (Run Starting) ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Cypress: 12.17.4 │ │ Browser: Electron 106 (headless) │ │ Node Version: v18.20.6 (/usr/bin/node) │ │ Specs: 1 found (Address.ts) │ │ Searched: t/cypress/integration/Patron/Address.ts │ │ Experiments: experimentalStudio=true │ └────────────────────────────────────────────────────────────────────────────────────────────────┘ ──────────────────────────────────────────────────────────────────────────────────────────────────── Running: Address.ts (1 of 1) Display address 1) should have correct spacing 0 passing (14s) 1 failing 1) Display address should have correct spacing: AssertionError: Timed out retrying after 10000ms: expected '(armarium appono voco)\n \n\n \n\n 12\n Rd\n Awesome\n Library44240\n PortlandORUSA\n\n \n \n \n officiis quasi nobis\n \n \n \n \n \n coadunatio vorago talio\n \n \n \n \n Born:\n 07/07/2025 (0 years)\n \n \n\n \n \n \n \n \n \n\n \n \n \n\n Category: description for UdaUKsW (UdaUKsW) \n Home library: trepide cogo amplexus \n Borrowernumber: 60 \n \n Updated on 07/07/2025 23:36' to match /12 Awesome Rd\n\s*Library\n\s*Portland, OR 44240\n\s*USA/ at Context.eval (webpack://koha/./t/cypress/integration/Patron/Address.ts:41:37) (Results) ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Tests: 1 │ │ Passing: 0 │ │ Failing: 1 │ │ Pending: 0 │ │ Skipped: 0 │ │ Screenshots: 1 │ │ Video: true │ │ Duration: 13 seconds │ │ Spec Ran: Address.ts │ └────────────────────────────────────────────────────────────────────────────────────────────────┘ (Screenshots) - /kohadevbox/koha/t/cypress/screenshots/Address.ts/Display address -- should have (1280x720) correct spacing (failed).png (Video) - Started compressing: Compressing to 32 CRF - Finished compressing: 0 seconds - Video output: /kohadevbox/koha/t/cypress/videos/Address.ts.mp4 ==================================================================================================== (Run Finished) Spec Tests Passing Failing Pending Skipped ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ ✖ Address.ts 00:13 1 - 1 - - │ └────────────────────────────────────────────────────────────────────────────────────────────────┘ ✖ 1 of 1 failed (100%) 00:13 1 - 1 - - error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.