Bug 40816: Fix Auth/csrf.ts

Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2026-01-06 13:54:47 +01:00 committed by Lucas Gass
parent 004c2419a9
commit 237d3deecf
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 3 additions and 3 deletions

View File

@ -109,7 +109,7 @@ describe("CSRF", () => {
.find(".alert")
.contains(/Library added successfully/);
cy.get("select[name='libraries_length']").select("-1");
cy.get("select.dt-input").select("-1");
cy.get("td").contains(branchcode);
cy.task("query", {
@ -127,7 +127,7 @@ describe("CSRF", () => {
});
cy.visit("/cgi-bin/koha/admin/branches.pl");
cy.get("select[name='libraries_length']").select("-1");
cy.get("select.dt-input").select("-1");
cy.get("#delete_library_" + branchcode).click({ force: true });
// Remove CSRF Token
@ -156,7 +156,7 @@ describe("CSRF", () => {
});
cy.visit("/cgi-bin/koha/admin/branches.pl");
cy.get("select[name='libraries_length']").select("-1");
cy.get("select.dt-input").select("-1");
cy.get("#delete_library_" + branchcode).click({ force: true });
cy.contains("Yes, delete").click();