Bug 41615: (follow-up) Simplify 'List license' test - visit licenses directly for 500 test

This commit is contained in:
Martin Renvoize 2026-03-21 13:26:32 +00:00
parent b7f4946dff
commit 6ab8ba8d35
No known key found for this signature in database
GPG Key ID: 2D86E0EAEC83711B
1 changed files with 1 additions and 2 deletions

View File

@ -32,8 +32,7 @@ describe("License CRUD operations", () => {
cy.intercept("GET", "/api/v1/erm/licenses*", {
statusCode: 500,
});
cy.visit("/cgi-bin/koha/erm/erm.pl");
cy.get(".sidebar_menu").contains("Licenses").click();
cy.visit("/cgi-bin/koha/erm/licenses");
cy.get("main div[class='alert alert-warning']").contains(
"Something went wrong: Error: Internal Server Error"
);