|
Lines 35-41
describe("Vendor CRUD operations", () => {
Link Here
|
| 35 |
// Click the button in the toolbar |
35 |
// Click the button in the toolbar |
| 36 |
cy.visit("/cgi-bin/koha/acquisition/vendors"); |
36 |
cy.visit("/cgi-bin/koha/acquisition/vendors"); |
| 37 |
cy.contains("New vendor").click(); |
37 |
cy.contains("New vendor").click(); |
| 38 |
cy.get("#vendor_add h1").contains("Add vendor"); |
38 |
cy.get("h1").contains("Add vendor"); |
| 39 |
|
39 |
|
| 40 |
// Fill in the form for normal attributes |
40 |
// Fill in the form for normal attributes |
| 41 |
cy.get("#vendor_add").contains("Submit").click(); |
41 |
cy.get("#vendor_add").contains("Submit").click(); |
|
Lines 140-146
describe("Vendor CRUD operations", () => {
Link Here
|
| 140 |
cy.get("#vendors_list table tbody tr:first").contains("Edit").click(); |
140 |
cy.get("#vendors_list table tbody tr:first").contains("Edit").click(); |
| 141 |
cy.wait("@get-vendor"); |
141 |
cy.wait("@get-vendor"); |
| 142 |
cy.wait(500); // Cypress is too fast! Vue hasn't populated the form yet! |
142 |
cy.wait(500); // Cypress is too fast! Vue hasn't populated the form yet! |
| 143 |
cy.get("#vendor_add h1").contains("Edit vendor"); |
143 |
cy.get("h1").contains("Edit vendor"); |
| 144 |
|
144 |
|
| 145 |
// Form has been correctly filled in |
145 |
// Form has been correctly filled in |
| 146 |
cy.get("#vendor_name").should("have.value", vendor.name); |
146 |
cy.get("#vendor_name").should("have.value", vendor.name); |
| 147 |
- |
|
|