Lines 367-373
describe("Agreement CRUD operations", () => {
Link Here
|
367 |
}); |
367 |
}); |
368 |
cy.get("#agreements_add").contains("Submit").click(); |
368 |
cy.get("#agreements_add").contains("Submit").click(); |
369 |
cy.get("main div[class='dialog alert']").contains( |
369 |
cy.get("main div[class='dialog alert']").contains( |
370 |
"Something went wrong: Error: Internal Server Error" |
370 |
"Something went wrong: SyntaxError: Unexpected end of JSON input" |
371 |
); |
371 |
); |
372 |
|
372 |
|
373 |
// Submit the form, success! |
373 |
// Submit the form, success! |
Lines 536-542
describe("Agreement CRUD operations", () => {
Link Here
|
536 |
cy.get("main div[class='modal_centered']").contains("Submitting..."); |
536 |
cy.get("main div[class='modal_centered']").contains("Submitting..."); |
537 |
cy.wait(1000); |
537 |
cy.wait(1000); |
538 |
cy.get("main div[class='dialog alert']").contains( |
538 |
cy.get("main div[class='dialog alert']").contains( |
539 |
"Something went wrong: Error: Internal Server Error" |
539 |
"Something went wrong: SyntaxError: Unexpected end of JSON input" |
540 |
); |
540 |
); |
541 |
|
541 |
|
542 |
// Submit the form, success! |
542 |
// Submit the form, success! |
Lines 618-624
describe("Agreement CRUD operations", () => {
Link Here
|
618 |
}); |
618 |
}); |
619 |
cy.contains("Yes, delete").click(); |
619 |
cy.contains("Yes, delete").click(); |
620 |
cy.get("main div[class='dialog alert']").contains( |
620 |
cy.get("main div[class='dialog alert']").contains( |
621 |
"Something went wrong: Error: Internal Server Error" |
621 |
"Something went wrong: SyntaxError: Unexpected end of JSON input" |
622 |
); |
622 |
); |
623 |
|
623 |
|
624 |
// Accept the confirmation dialog, success! |
624 |
// Accept the confirmation dialog, success! |