[Bug 34301] New: Agreements_spec.ts is failing randomly
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34301 Bug ID: 34301 Summary: Agreements_spec.ts is failing randomly Change sponsored?: --- Product: Koha Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Test Suite Assignee: chris@bigballofwax.co.nz Reporter: jonathan.druart+koha@gmail.com QA Contact: testopia@bugs.koha-community.org Blocks: 25551 koha_1 | Running: ERM/Agreements_spec.ts (1 of 6) koha_1 | [11894:0713/195038.469535:ERROR:cert_verify_proc_builtin.cc(681)] CertVerifyProcBuiltin for redirector.gvt1.com failed: koha_1 | ----- Certificate i=0 (OU=Cypress Proxy Server Certificate,O=Cypress Proxy CA,L=Internet,ST=Internet,C=Internet,CN=redirector.gvt1.com) ----- koha_1 | ERROR: No matching issuer found koha_1 | koha_1 | koha_1 | [11894:0713/195039.293777:ERROR:cert_verify_proc_builtin.cc(681)] CertVerifyProcBuiltin for r2---sn-4g5ednsd.gvt1.com failed: koha_1 | ----- Certificate i=0 (OU=Cypress Proxy Server Certificate,O=Cypress Proxy CA,L=Internet,ST=Internet,C=Internet,CN=r2---sn-4g5ednsd.gvt1.com) ----- koha_1 | ERROR: No matching issuer found koha_1 | koha_1 | koha_1 | Browserslist: caniuse-lite is outdated. Please run: koha_1 | npx browserslist@latest --update-db koha_1 | koha_1 | Why you should do it regularly: koha_1 | https://github.com/browserslist/browserslist#browsers-data-updating koha_1 | <?xml version="1.0" encoding="UTF-8"?> koha_1 | <testsuites name="Mocha Tests" time="38.2310" tests="5" failures="1"> koha_1 | <testsuite name="Root Suite" timestamp="2023-07-13T19:50:41" tests="0" file="t/cypress/integration/ERM/Agreements_spec.ts" time="0.0000" failures="0"> koha_1 | </testsuite> koha_1 | <testsuite name="Agreement CRUD operations" timestamp="2023-07-13T19:50:41" tests="5" time="38.2310" failures="1"> koha_1 | <testcase name="Agreement CRUD operations List agreements" time="11.1430" classname="List agreements"> koha_1 | </testcase> koha_1 | <testcase name="Agreement CRUD operations Add agreement" time="15.8900" classname="Add agreement"> koha_1 | </testcase> koha_1 | <testcase name="Agreement CRUD operations Edit agreement" time="0.0000" classname="Edit agreement"> koha_1 | <failure message="Timed out retrying after 5000ms: `cy.wait()` timed out waiting `5000ms` for the 1st request to the route: `get-single-agreement-search-result`. No request ever occurred. koha_1 | koha_1 | https://on.cypress.io/wait" type="CypressError"><![CDATA[CypressError: Timed out retrying after 5000ms: `cy.wait()` timed out waiting `5000ms` for the 1st request to the route: `get-single-agreement-search-result`. No request ever occurred. koha_1 | koha_1 | https://on.cypress.io/wait koha_1 | at cypressErr (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1...) koha_1 | at Object.errByPath (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1...) koha_1 | at checkForXhr (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1...) koha_1 | at http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1... koha_1 | at tryCatcher (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1...) koha_1 | at Function.Promise.attempt.Promise.try (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1...) koha_1 | at whenStable (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1...) koha_1 | at http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1... koha_1 | at tryCatcher (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1...) koha_1 | at Promise._settlePromiseFromHandler (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1...) koha_1 | at Promise._settlePromise (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1...) koha_1 | at Promise._settlePromise0 (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1...) koha_1 | at Promise._settlePromises (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1...) koha_1 | at Promise._fulfill (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1...) koha_1 | at http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1... koha_1 | From Your Spec Code: koha_1 | at Context.eval (http://kohadev-intra.mydnsname.org:8081/__cypress/tests?p=t/cypress/integration/ERM/Agreements_spec.ts:466:12)]]></failure> koha_1 | </testcase> koha_1 | <testcase name="Agreement CRUD operations Show agreement" time="6.0050" classname="Show agreement"> koha_1 | </testcase> koha_1 | <testcase name="Agreement CRUD operations Delete agreement" time="5.1930" classname="Delete agreement"> koha_1 | </testcase> koha_1 | </testsuite> koha_1 | </testsuites> Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25551 [Bug 25551] [OMNIBUS] Some tests are failing randomly -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34301 --- Comment #1 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Koha_Master/2586 on Docker_8 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34301 --- Comment #2 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- Related discussion on IRC - https://irc.koha-community.org/koha/2023-07-18#i_2498596 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34301 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=36012 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34301 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=40043 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34301 --- Comment #3 from Jonathan Druart <jonathan.druart@gmail.com> --- Koha_Main/3287 12:06:14 koha_1 | <?xml version="1.0" encoding="UTF-8"?> 12:06:14 koha_1 | <testsuites name="Mocha Tests" time="59.610" tests="5" failures="1"> 12:06:14 koha_1 | <testsuite name="Root Suite" timestamp="2025-06-19T10:04:05" tests="0" file="t/cypress/integration/ERM/Agreements_spec.ts" time="0.000" failures="0"> 12:06:14 koha_1 | </testsuite> 12:06:14 koha_1 | <testsuite name="Agreement CRUD operations" timestamp="2025-06-19T10:04:05" tests="5" time="59.591" failures="1"> 12:06:14 koha_1 | <testcase name="Agreement CRUD operations List agreements" time="12.726" classname="List agreements"> 12:06:14 koha_1 | </testcase> 12:06:14 koha_1 | <testcase name="Agreement CRUD operations Add agreement" time="20.575" classname="Add agreement"> 12:06:14 koha_1 | </testcase> 12:06:14 koha_1 | <testcase name="Agreement CRUD operations Edit agreement" time="6.609" classname="Edit agreement"> 12:06:14 koha_1 | </testcase> 12:06:14 koha_1 | <testcase name="Agreement CRUD operations Show agreement" time="5.044" classname="Show agreement"> 12:06:14 koha_1 | </testcase> 12:06:14 koha_1 | <testcase name="Agreement CRUD operations Delete agreement" time="0.000" classname="Delete agreement"> 12:06:14 koha_1 | <failure message="Timed out retrying after 10050ms: `cy.click()` failed because the page updated while this command was executing. Cypress tried to locate elements based on this query: 12:06:14 koha_1 | 12:06:14 koha_1 | > <a.show> 12:06:14 koha_1 | 12:06:14 koha_1 | We initially found matching element(s), but while waiting for them to become actionable, they disappeared from the page. Common situations why this happens: 12:06:14 koha_1 | - Your JS framework re-rendered asynchronously 12:06:14 koha_1 | - Your app code reacted to an event firing and removed the element 12:06:14 koha_1 | 12:06:14 koha_1 | You can typically solve this by breaking up a chain. For example, rewrite: 12:06:14 koha_1 | 12:06:14 koha_1 | > `cy.get('button').click().click()` 12:06:14 koha_1 | 12:06:14 koha_1 | to 12:06:14 koha_1 | 12:06:14 koha_1 | > `cy.get('button').as('btn').click()` 12:06:14 koha_1 | > `cy.get('@btn').click()` 12:06:14 koha_1 | 12:06:14 koha_1 | https://on.cypress.io/element-has-detached-from-dom" type="CypressError"><![CDATA[CypressError: Timed out retrying after 10050ms: `cy.click()` failed because the page updated while this command was executing. Cypress tried to locate elements based on this query: 12:06:14 koha_1 | 12:06:14 koha_1 | > <a.show> 12:06:14 koha_1 | 12:06:14 koha_1 | We initially found matching element(s), but while waiting for them to become actionable, they disappeared from the page. Common situations why this happens: 12:06:14 koha_1 | - Your JS framework re-rendered asynchronously 12:06:14 koha_1 | - Your app code reacted to an event firing and removed the element 12:06:14 koha_1 | 12:06:14 koha_1 | You can typically solve this by breaking up a chain. For example, rewrite: 12:06:14 koha_1 | 12:06:14 koha_1 | > `cy.get('button').click().click()` 12:06:14 koha_1 | 12:06:14 koha_1 | to 12:06:14 koha_1 | 12:06:14 koha_1 | > `cy.get('button').as('btn').click()` 12:06:14 koha_1 | > `cy.get('@btn').click()` 12:06:14 koha_1 | 12:06:14 koha_1 | https://on.cypress.io/element-has-detached-from-dom 12:06:14 koha_1 | at retryActionability (http://localhost:8081/__cypress/runner/cypress_runner.js:112246:74) 12:06:14 koha_1 | at tryCatcher (http://localhost:8081/__cypress/runner/cypress_runner.js:1807:23) 12:06:14 koha_1 | at Promise.attempt.Promise.try (http://localhost:8081/__cypress/runner/cypress_runner.js:4315:29) 12:06:14 koha_1 | at whenStable (http://localhost:8081/__cypress/runner/cypress_runner.js:143192:68) 12:06:14 koha_1 | at <unknown> (http://localhost:8081/__cypress/runner/cypress_runner.js:143133:14) 12:06:14 koha_1 | at tryCatcher (http://localhost:8081/__cypress/runner/cypress_runner.js:1807:23) 12:06:14 koha_1 | at Promise._settlePromiseFromHandler (http://localhost:8081/__cypress/runner/cypress_runner.js:1519:31) 12:06:14 koha_1 | at Promise._settlePromise (http://localhost:8081/__cypress/runner/cypress_runner.js:1576:18) 12:06:14 koha_1 | at Promise._settlePromise0 (http://localhost:8081/__cypress/runner/cypress_runner.js:1621:10) 12:06:14 koha_1 | at Promise._settlePromises (http://localhost:8081/__cypress/runner/cypress_runner.js:1701:18) 12:06:14 koha_1 | at Promise._fulfill (http://localhost:8081/__cypress/runner/cypress_runner.js:1645:18) 12:06:14 koha_1 | at <unknown> (http://localhost:8081/__cypress/runner/cypress_runner.js:5450:46) 12:06:14 koha_1 | From Your Spec Code: 12:06:14 koha_1 | at Context.eval (webpack://koha/./t/cypress/integration/ERM/Agreements_spec.ts:630:18)]]></failure> -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org