https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34301

--- Comment #3 from Jonathan Druart <[email protected]> ---
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       | &gt; &lt;a.show&gt;
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       | &gt; `cy.get(&apos;button&apos;).click().click()`
12:06:14 koha_1       | 
12:06:14 koha_1       | to
12:06:14 koha_1       | 
12:06:14 koha_1       | &gt;
`cy.get(&apos;button&apos;).as(&apos;btn&apos;).click()`
12:06:14 koha_1       | &gt; `cy.get(&apos;@btn&apos;).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.
_______________________________________________
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/

Reply via email to