Lines 128-134
describe("CSRF", () => {
Link Here
|
128 |
|
128 |
|
129 |
cy.visit("/cgi-bin/koha/admin/branches.pl"); |
129 |
cy.visit("/cgi-bin/koha/admin/branches.pl"); |
130 |
cy.get("select[name='libraries_length']").select("-1"); |
130 |
cy.get("select[name='libraries_length']").select("-1"); |
131 |
cy.get("#delete_library_" + branchcode).click(); |
131 |
cy.get("#delete_library_" + branchcode).click({ force: true }); |
132 |
|
132 |
|
133 |
// Remove CSRF Token |
133 |
// Remove CSRF Token |
134 |
cy.get("form[method='post']") |
134 |
cy.get("form[method='post']") |
Lines 157-163
describe("CSRF", () => {
Link Here
|
157 |
|
157 |
|
158 |
cy.visit("/cgi-bin/koha/admin/branches.pl"); |
158 |
cy.visit("/cgi-bin/koha/admin/branches.pl"); |
159 |
cy.get("select[name='libraries_length']").select("-1"); |
159 |
cy.get("select[name='libraries_length']").select("-1"); |
160 |
cy.get("#delete_library_" + branchcode).click(); |
160 |
cy.get("#delete_library_" + branchcode).click({ force: true }); |
161 |
|
161 |
|
162 |
cy.contains("Yes, delete").click(); |
162 |
cy.contains("Yes, delete").click(); |
163 |
|
163 |
|
164 |
- |
|
|