|
Lines 109-115
describe("CSRF", () => {
Link Here
|
| 109 |
.find(".alert") |
109 |
.find(".alert") |
| 110 |
.contains(/Library added successfully/); |
110 |
.contains(/Library added successfully/); |
| 111 |
|
111 |
|
| 112 |
cy.get("select[name='libraries_length']").select("-1"); |
112 |
cy.get("select.dt-input").select("-1"); |
| 113 |
cy.get("td").contains(branchcode); |
113 |
cy.get("td").contains(branchcode); |
| 114 |
|
114 |
|
| 115 |
cy.task("query", { |
115 |
cy.task("query", { |
|
Lines 127-133
describe("CSRF", () => {
Link Here
|
| 127 |
}); |
127 |
}); |
| 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.dt-input").select("-1"); |
| 131 |
cy.get("#delete_library_" + branchcode).click({ force: true }); |
131 |
cy.get("#delete_library_" + branchcode).click({ force: true }); |
| 132 |
|
132 |
|
| 133 |
// Remove CSRF Token |
133 |
// Remove CSRF Token |
|
Lines 156-162
describe("CSRF", () => {
Link Here
|
| 156 |
}); |
156 |
}); |
| 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.dt-input").select("-1"); |
| 160 |
cy.get("#delete_library_" + branchcode).click({ force: true }); |
160 |
cy.get("#delete_library_" + branchcode).click({ force: true }); |
| 161 |
|
161 |
|
| 162 |
cy.contains("Yes, delete").click(); |
162 |
cy.contains("Yes, delete").click(); |
| 163 |
- |
|
|