Bug 33416: Fix Agreements.ts

<failure message="Timed out retrying after 10000ms: Expected to find element: `#agreements_list table tbody tr:first`, but never found it." type="AssertionError"><![CDATA[AssertionError: Timed out retrying a
fter 10000ms: Expected to find element: `#agreements_list table tbody tr:first`, but never found it.

Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2023-04-05 10:29:01 +02:00 committed by Tomas Cohen Arazi
parent 360963c959
commit 2167028025
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -369,6 +369,7 @@ describe("Agreement CRUD operations", () => {
},
}).as("get-single-agreement-search-result");
cy.visit("/cgi-bin/koha/erm/agreements");
cy.wait("@get-single-agreement-search-result");
// Intercept request after edit click
cy.intercept("GET", "/api/v1/erm/agreements/*", agreement).as(