From 27764d5e45e8e0cc1d265497f03eda6ce58b6fbe Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 30 Mar 2023 16:40:30 +0200 Subject: [PATCH] Bug 33370: Intercept and wait for avs and vendors GETs --- t/cypress/integration/Agreements_spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/t/cypress/integration/Agreements_spec.ts b/t/cypress/integration/Agreements_spec.ts index 8dd209ee8d5..86387b94629 100644 --- a/t/cypress/integration/Agreements_spec.ts +++ b/t/cypress/integration/Agreements_spec.ts @@ -125,6 +125,9 @@ describe("Agreement CRUD operations", () => { beforeEach(() => { cy.login(); cy.title().should("eq", "Koha staff interface"); + + cy.intercept("GET", "/api/v1/authorised_value_categories*").as("avs"); + cy.intercept("GET", "/api/v1/acquisitions/vendors*").as("vendors"); }); after(() => { @@ -178,6 +181,7 @@ describe("Agreement CRUD operations", () => { // Click the button in the toolbar cy.visit("/cgi-bin/koha/erm/agreements"); + cy.wait(["@avs", "@vendors"]); cy.contains("New agreement").click(); cy.get("#agreements_add h2").contains("New agreement"); -- 2.25.1