Bug 40067: Improve waits and intercepts
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 688b5961c9)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
parent
e692023eb0
commit
893bd2af71
|
|
@ -15,18 +15,21 @@ describe("Sticky toolbar", () => {
|
|||
"X-Base-Total-Count": "1",
|
||||
"X-Total-Count": "1",
|
||||
},
|
||||
});
|
||||
cy.visit("/cgi-bin/koha/acquisition/vendors");
|
||||
}).as("get-vendors");
|
||||
cy.intercept(
|
||||
"GET",
|
||||
new RegExp("/api/v1/acquisitions/vendors/(?!config$).+"),
|
||||
vendor
|
||||
).as("get-vendor");
|
||||
|
||||
cy.visit("/cgi-bin/koha/acquisition/vendors");
|
||||
cy.wait("@get-vendors");
|
||||
|
||||
const name_link = cy.get(
|
||||
"#vendors_list table tbody tr:first td:first a"
|
||||
);
|
||||
name_link.click();
|
||||
cy.wait("@get-vendor");
|
||||
cy.get("#toolbar a").contains("Receive shipments").click();
|
||||
cy.get("h1").contains("Receive shipment from vendor " + vendor.name);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue