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>
(cherry picked from commit 2167028025)
Signed-off-by: Jacob O'Mara <jacobomara901@gmail.com>
This commit is contained in:
Jonathan Druart 2023-04-05 10:29:01 +02:00 committed by Jacob O'Mara
parent 79c70f78e8
commit e1fbe67683
1 changed files with 1 additions and 0 deletions

View File

@ -376,6 +376,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(