|
Lines 131-136
describe("Vendor CRUD operations", () => {
Link Here
|
| 131 |
new RegExp("/api/v1/acquisitions/vendors/(?!config$).+"), |
131 |
new RegExp("/api/v1/acquisitions/vendors/(?!config$).+"), |
| 132 |
vendor |
132 |
vendor |
| 133 |
).as("get-vendor"); |
133 |
).as("get-vendor"); |
|
|
134 |
cy.intercept( |
| 135 |
"GET", |
| 136 |
"/api/v1/acquisitions/vendors/extended_attribute_types*", |
| 137 |
{ |
| 138 |
body: [], |
| 139 |
statusCode: 200, |
| 140 |
} |
| 141 |
); |
| 134 |
|
142 |
|
| 135 |
// Click the 'Edit' button from the list |
143 |
// Click the 'Edit' button from the list |
| 136 |
cy.get("#vendors_list table tbody tr:first").contains("Edit").click(); |
144 |
cy.get("#vendors_list table tbody tr:first").contains("Edit").click(); |
|
Lines 203-208
describe("Vendor CRUD operations", () => {
Link Here
|
| 203 |
new RegExp("/api/v1/acquisitions/vendors/(?!config$).+"), |
211 |
new RegExp("/api/v1/acquisitions/vendors/(?!config$).+"), |
| 204 |
vendor |
212 |
vendor |
| 205 |
); |
213 |
); |
|
|
214 |
cy.intercept( |
| 215 |
"GET", |
| 216 |
"/api/v1/acquisitions/vendors/extended_attribute_types*", |
| 217 |
{ |
| 218 |
body: [], |
| 219 |
statusCode: 200, |
| 220 |
} |
| 221 |
); |
| 206 |
cy.visit("/cgi-bin/koha/acquisition/vendors"); |
222 |
cy.visit("/cgi-bin/koha/acquisition/vendors"); |
| 207 |
|
223 |
|
| 208 |
cy.get("#vendors_list table tbody tr:first").contains("Delete").click(); |
224 |
cy.get("#vendors_list table tbody tr:first").contains("Delete").click(); |
| 209 |
- |
|
|