From 5f659acb2be6a56dec14e5187ad00f32747b3e2b Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Mon, 31 Jul 2023 15:04:09 +0000 Subject: [PATCH] Bug 34448: Update cypress tests Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 767a004f03863bd93febd2260cb236d505f21ef5) Signed-off-by: Matt Blenkinsop --- t/cypress/integration/ERM/Agreements_spec.ts | 6 +++--- t/cypress/integration/ERM/Licenses_spec.ts | 6 +++--- t/cypress/integration/ERM/Packages_spec.ts | 6 +++--- t/cypress/integration/ERM/Titles_spec.ts | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/t/cypress/integration/ERM/Agreements_spec.ts b/t/cypress/integration/ERM/Agreements_spec.ts index 0c65f3d2b9..3ec6ee9a3c 100644 --- a/t/cypress/integration/ERM/Agreements_spec.ts +++ b/t/cypress/integration/ERM/Agreements_spec.ts @@ -323,7 +323,7 @@ describe("Agreement CRUD operations", () => { }); cy.get("#agreements_add").contains("Submit").click(); cy.get("main div[class='dialog alert']").contains( - "Something went wrong: Error: Internal Server Error" + "Something went wrong: SyntaxError: Unexpected end of JSON input" ); // Submit the form, success! @@ -475,7 +475,7 @@ describe("Agreement CRUD operations", () => { cy.get("main div[class='modal_centered']").contains("Submitting..."); cy.wait(1000); cy.get("main div[class='dialog alert']").contains( - "Something went wrong: Error: Internal Server Error" + "Something went wrong: SyntaxError: Unexpected end of JSON input" ); // Submit the form, success! @@ -555,7 +555,7 @@ describe("Agreement CRUD operations", () => { }); cy.contains("Yes, delete").click(); cy.get("main div[class='dialog alert']").contains( - "Something went wrong: Error: Internal Server Error" + "Something went wrong: SyntaxError: Unexpected end of JSON input" ); // Accept the confirmation dialog, success! diff --git a/t/cypress/integration/ERM/Licenses_spec.ts b/t/cypress/integration/ERM/Licenses_spec.ts index 5ba6dfd231..5dbe223e5c 100644 --- a/t/cypress/integration/ERM/Licenses_spec.ts +++ b/t/cypress/integration/ERM/Licenses_spec.ts @@ -124,7 +124,7 @@ describe("License CRUD operations", () => { }); cy.get("#licenses_add").contains("Submit").click(); cy.get("main div[class='dialog alert']").contains( - "Something went wrong: Error: Internal Server Error" + "Something went wrong: SyntaxError: Unexpected end of JSON input" ); // Submit the form, success! @@ -182,7 +182,7 @@ describe("License CRUD operations", () => { }); cy.get("#licenses_add").contains("Submit").click(); cy.get("main div[class='dialog alert']").contains( - "Something went wrong: Error: Internal Server Error" + "Something went wrong: SyntaxError: Unexpected end of JSON input" ); // Submit the form, success! @@ -256,7 +256,7 @@ describe("License CRUD operations", () => { }); cy.contains("Yes, delete").click(); cy.get("main div[class='dialog alert']").contains( - "Something went wrong: Error: Internal Server Error" + "Something went wrong: SyntaxError: Unexpected end of JSON input" ); // Accept the confirmation dialog, success! diff --git a/t/cypress/integration/ERM/Packages_spec.ts b/t/cypress/integration/ERM/Packages_spec.ts index 58ea00323c..e61f070416 100644 --- a/t/cypress/integration/ERM/Packages_spec.ts +++ b/t/cypress/integration/ERM/Packages_spec.ts @@ -114,7 +114,7 @@ describe("Package CRUD operations", () => { }); cy.get("#packages_add").contains("Submit").click(); cy.get("main div[class='dialog alert']").contains( - "Something went wrong: Error: Internal Server Error" + "Something went wrong: SyntaxError: Unexpected end of JSON input" ); // Submit the form, success! @@ -183,7 +183,7 @@ describe("Package CRUD operations", () => { }); cy.get("#packages_add").contains("Submit").click(); cy.get("main div[class='dialog alert']").contains( - "Something went wrong: Error: Internal Server Error" + "Something went wrong: SyntaxError: Unexpected end of JSON input" ); // Submit the form, success! @@ -298,7 +298,7 @@ describe("Package CRUD operations", () => { }); cy.contains("Yes, delete").click(); cy.get("main div[class='dialog alert']").contains( - "Something went wrong: Error: Internal Server Error" + "Something went wrong: SyntaxError: Unexpected end of JSON input" ); // Accept the confirmation dialog, success! diff --git a/t/cypress/integration/ERM/Titles_spec.ts b/t/cypress/integration/ERM/Titles_spec.ts index 56aa71dcf3..942150d0f3 100644 --- a/t/cypress/integration/ERM/Titles_spec.ts +++ b/t/cypress/integration/ERM/Titles_spec.ts @@ -169,7 +169,7 @@ describe("Title CRUD operations", () => { }); cy.get("#titles_add").contains("Submit").click(); cy.get("main div[class='dialog alert']").contains( - "Something went wrong: Error: Internal Server Error" + "Something went wrong: SyntaxError: Unexpected end of JSON input" ); // Submit the form, success! @@ -260,7 +260,7 @@ describe("Title CRUD operations", () => { }); cy.get("#titles_add").contains("Submit").click(); cy.get("main div[class='dialog alert']").contains( - "Something went wrong: Error: Internal Server Error" + "Something went wrong: SyntaxError: Unexpected end of JSON input" ); // Submit the form, success! @@ -377,7 +377,7 @@ describe("Title CRUD operations", () => { }); cy.contains("Yes, delete").click(); cy.get("main div[class='dialog alert']").contains( - "Something went wrong: Error: Internal Server Error" + "Something went wrong: SyntaxError: Unexpected end of JSON input" ); // Accept the confirmation dialog, success! -- 2.39.5