Summary: | Agreements_spec.ts is failing randomly | ||
---|---|---|---|
Product: | Koha | Reporter: | Jonathan Druart <jonathan.druart> |
Component: | Test Suite | Assignee: | Chris Cormack <chris> |
Status: | NEW --- | QA Contact: | Testopia <testopia> |
Severity: | normal | ||
Priority: | P5 - low | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
See Also: |
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36012 https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40043 |
||
GIT URL: | Change sponsored?: | --- | |
Patch complexity: | --- | Documentation contact: | |
Documentation submission: | Text to go in the release notes: | ||
Version(s) released in: | Circulation function: | ||
Bug Depends on: | |||
Bug Blocks: | 25551 |
Description
Jonathan Druart
2023-07-18 07:20:36 UTC
Koha_Master/2586 on Docker_8 Related discussion on IRC - https://irc.koha-community.org/koha/2023-07-18#i_2498596 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> |