Lines 96-102
describe("Vendor CRUD operations", () => {
Link Here
|
96 |
// Click the button in the toolbar |
96 |
// Click the button in the toolbar |
97 |
cy.visit("/cgi-bin/koha/acquisition/vendors"); |
97 |
cy.visit("/cgi-bin/koha/acquisition/vendors"); |
98 |
cy.contains("New vendor").click(); |
98 |
cy.contains("New vendor").click(); |
99 |
cy.get("#add_vendor h1").contains("Add vendor"); |
99 |
cy.get("h1").contains("Add vendor"); |
100 |
|
100 |
|
101 |
// Fill in the form for normal attributes |
101 |
// Fill in the form for normal attributes |
102 |
cy.get("#add_vendor").contains("Submit").click(); |
102 |
cy.get("#add_vendor").contains("Submit").click(); |
Lines 193-199
describe("Vendor CRUD operations", () => {
Link Here
|
193 |
cy.get("#vendors_list table tbody tr:first").contains("Edit").click(); |
193 |
cy.get("#vendors_list table tbody tr:first").contains("Edit").click(); |
194 |
cy.wait("@get-vendor"); |
194 |
cy.wait("@get-vendor"); |
195 |
cy.wait(500); // Cypress is too fast! Vue hasn't populated the form yet! |
195 |
cy.wait(500); // Cypress is too fast! Vue hasn't populated the form yet! |
196 |
cy.get("#add_vendor h1").contains("Edit vendor"); |
196 |
cy.get("h1").contains("Edit vendor"); |
197 |
|
197 |
|
198 |
// Form has been correctly filled in |
198 |
// Form has been correctly filled in |
199 |
cy.get("#vendor_name").should("have.value", vendor.name); |
199 |
cy.get("#vendor_name").should("have.value", vendor.name); |
200 |
- |
|
|