|
Lines 187-193
describe("Agreement CRUD operations", () => {
Link Here
|
| 187 |
cy.get("#agreements_add").contains("Submit").click(); |
187 |
cy.get("#agreements_add").contains("Submit").click(); |
| 188 |
cy.get("input:invalid,textarea:invalid,select:invalid").should( |
188 |
cy.get("input:invalid,textarea:invalid,select:invalid").should( |
| 189 |
"have.length", |
189 |
"have.length", |
| 190 |
3 |
190 |
2 |
| 191 |
); |
191 |
); |
| 192 |
cy.get("#agreement_name").type(agreement.name); |
192 |
cy.get("#agreement_name").type(agreement.name); |
| 193 |
cy.get("#agreement_description").type(agreement.description); |
193 |
cy.get("#agreement_description").type(agreement.description); |
|
Lines 515-521
describe("Agreement CRUD operations", () => {
Link Here
|
| 515 |
statusCode: 500, |
515 |
statusCode: 500, |
| 516 |
error: "Something went wrong", |
516 |
error: "Something went wrong", |
| 517 |
}); |
517 |
}); |
| 518 |
cy.contains("Accept").click(); |
518 |
cy.contains("Yes, delete").click(); |
| 519 |
cy.get("main div[class='dialog alert']").contains( |
519 |
cy.get("main div[class='dialog alert']").contains( |
| 520 |
"Something went wrong: Error: Internal Server Error" |
520 |
"Something went wrong: Error: Internal Server Error" |
| 521 |
); |
521 |
); |
|
Lines 563-569
describe("Agreement CRUD operations", () => {
Link Here
|
| 563 |
cy.get('#agreements_show .action_links .fa-trash').click(); |
563 |
cy.get('#agreements_show .action_links .fa-trash').click(); |
| 564 |
cy.get(".dialog.alert.confirmation h1").contains("remove this agreement"); |
564 |
cy.get(".dialog.alert.confirmation h1").contains("remove this agreement"); |
| 565 |
cy.contains("Yes, delete").click(); |
565 |
cy.contains("Yes, delete").click(); |
| 566 |
cy.get("main div[class='dialog message']").contains("Agreement").contains("deleted"); |
|
|
| 567 |
|
566 |
|
| 568 |
//Make sure we return to list after deleting from show |
567 |
//Make sure we return to list after deleting from show |
| 569 |
cy.get("#agreements_list table tbody tr:first") |
568 |
cy.get("#agreements_list table tbody tr:first") |