Lines 38-44
describe("Vendor CRUD operations", () => {
Link Here
|
38 |
cy.get("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("#vendors_add").contains("Save").click(); |
41 |
cy.get("#toolbar").contains("Save").click(); |
42 |
cy.get("input:invalid,textarea:invalid,select:invalid").should( |
42 |
cy.get("input:invalid,textarea:invalid,select:invalid").should( |
43 |
"have.length", |
43 |
"have.length", |
44 |
1 |
44 |
1 |
Lines 114-120
describe("Vendor CRUD operations", () => {
Link Here
|
114 |
statusCode: 201, |
114 |
statusCode: 201, |
115 |
body: vendor, |
115 |
body: vendor, |
116 |
}); |
116 |
}); |
117 |
cy.get("#vendors_add").contains("Save").click(); |
117 |
cy.get("#toolbar").contains("Save").click(); |
118 |
cy.get("main div[class='alert alert-info']").contains("Vendor created"); |
118 |
cy.get("main div[class='alert alert-info']").contains("Vendor created"); |
119 |
}); |
119 |
}); |
120 |
|
120 |
|
Lines 153-159
describe("Vendor CRUD operations", () => {
Link Here
|
153 |
statusCode: 200, |
153 |
statusCode: 200, |
154 |
body: vendor, |
154 |
body: vendor, |
155 |
}); |
155 |
}); |
156 |
cy.get("#vendors_add").contains("Save").click(); |
156 |
cy.get("#toolbar").contains("Save").click(); |
157 |
cy.get("main div[class='alert alert-info']").contains("Vendor updated"); |
157 |
cy.get("main div[class='alert alert-info']").contains("Vendor updated"); |
158 |
}); |
158 |
}); |
159 |
|
159 |
|
160 |
- |
|
|