|
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") |