https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42697
David Nind <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA CC| |[email protected] --- Comment #14 from David Nind <[email protected]> --- With Jonathan's patches, things work as expected (I reproduced the problem using the steps in the bug description). However: 1. There are qa script errors.[1] 2. The tests don't pass.[2] [1] qa script errors ==================== qa Tag v25.05.00-1 found in /kohadevbox/koha — checking out branch main in /kohadevbox/qa-test-tools Already on 'main' Your branch is up to date with 'origin/main'. testing 2 commit(s) (applied to 51bdab1 'ee Bug 42078: Allow vendor ID searche') Processing files [RUNNING] koha-tmpl/intranet-tmpl/prog/js/datatables.js [RUNNING] t/cypress/integration/KohaTable/Holdings_spec.ts [FAIL] t/cypress/integration/KohaTable/Holdings_spec.ts [PASS] koha-tmpl/intranet-tmpl/prog/js/datatables.js Result: [PASS] koha-tmpl/intranet-tmpl/prog/js/datatables.js [FAIL] t/cypress/integration/KohaTable/Holdings_spec.ts FAIL tidiness File is not tidy, please run `perl misc/devel/tidy.pl t/cypress/integration/KohaTable/Holdings_spec.ts` Processing additional checks PASS! * Was this bug sponsored by anyone? [2] Test failures ================= cypress run --spec t/cypress/integration/KohaTable/Holdings_spec.ts cypress run --spec t/cypress/integration/KohaTable/Holdings_spec.ts It looks like this is your first time using Cypress: 12.17.4 ✔ Verified Cypress! /var/lib/koha/kohadev/.cache/Cypress/12.17.4/Cypress Opening Cypress... DevTools listening on ws://127.0.0.1:45693/devtools/browser/73074415-5af0-487e-b74a-a16d9fbee77d [5178:0620/200635.676563: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: v20.20.2 (/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 (7012ms) ✓ Show filters (11636ms) ✓ Filters by code and description (25237ms) Error: Duplicate ID at /kohadevbox/koha/t/cypress/plugins/dist/api-client.cjs.js:308:55 at processTicksAndRejections (node:internal/process/task_queues:95:5) 1) Filters by code and description - BEA/Bearville vs BCH/Beachville catalogue/detail/holdings_table without items ✓ Do not display the table (2579ms) 4 passing (53s) 1 failing 1) catalogue/detail/holdings_table with items Filters by code and description - BEA/Bearville vs BCH/Beachville: CypressError: `cy.task('insertObject')` failed with the following error: > Error: Duplicate ID https://on.cypress.io/api/task at <unknown> (http://koha:8081/__cypress/runner/cypress_runner.js:134597:70) at tryCatcher (http://koha:8081/__cypress/runner/cypress_runner.js:1807:23) at Promise._settlePromiseFromHandler (http://koha:8081/__cypress/runner/cypress_runner.js:1519:31) at Promise._settlePromise (http://koha:8081/__cypress/runner/cypress_runner.js:1576:18) at Promise._settlePromise0 (http://koha:8081/__cypress/runner/cypress_runner.js:1621:10) at Promise._settlePromises (http://koha:8081/__cypress/runner/cypress_runner.js:1697:18) at _drainQueueStep (http://koha:8081/__cypress/runner/cypress_runner.js:2407:12) at _drainQueue (http://koha:8081/__cypress/runner/cypress_runner.js:2400:9) at Async._drainQueues (http://koha:8081/__cypress/runner/cypress_runner.js:2416:5) at Async.drainQueues (http://koha:8081/__cypress/runner/cypress_runner.js:2286:14) From Your Spec Code: at Context.eval (webpack://koha/./t/cypress/integration/KohaTable/Holdings_spec.ts:294:22) From Node.js Internals: Error: Error: Duplicate ID at HttpClient.<anonymous> (/kohadevbox/koha/t/cypress/plugins/dist/api-client.cjs.js:324:50) at step (/kohadevbox/koha/t/cypress/plugins/dist/api-client.cjs.js:191:23) at Object.<anonymous> (/kohadevbox/koha/t/cypress/plugins/dist/api-client.cjs.js:132:20) at asyncGeneratorStep (/kohadevbox/koha/t/cypress/plugins/dist/api-client.cjs.js:11:28) at _next (/kohadevbox/koha/t/cypress/plugins/dist/api-client.cjs.js:29:17) at processTicksAndRejections (node:internal/process/task_queues:95:5) (Results) ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Tests: 5 │ │ Passing: 4 │ │ Failing: 1 │ │ Pending: 0 │ │ Skipped: 0 │ │ Screenshots: 1 │ │ Video: true │ │ Duration: 52 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 - BEABearville vs BCHBeachvi lle (failed).png (Video) - Started compressing: Compressing to 32 CRF - Finished compressing: 3 seconds - Video output: /kohadevbox/koha/t/cypress/videos/Holdings_spec.ts.mp4 ==================================================================================================== (Run Finished) Spec Tests Passing Failing Pending Skipped ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ ✖ Holdings_spec.ts 00:52 5 4 1 - - │ └────────────────────────────────────────────────────────────────────────────────────────────────┘ ✖ 1 of 1 failed (100%) 00:52 5 4 1 -- 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/
