From c16e99785d8ee07bdd455f12d948f962753d3694 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 --- 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 83080dae380..ad93a6c8229 100644 --- a/t/cypress/integration/ERM/Agreements_spec.ts +++ b/t/cypress/integration/ERM/Agreements_spec.ts @@ -367,7 +367,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! @@ -536,7 +536,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! @@ -618,7 +618,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 c296091c1cc..089536b03b0 100644 --- a/t/cypress/integration/ERM/Licenses_spec.ts +++ b/t/cypress/integration/ERM/Licenses_spec.ts @@ -137,7 +137,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! @@ -191,7 +191,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! @@ -261,7 +261,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 0c0f73be5ad..826ef12c55d 100644 --- a/t/cypress/integration/ERM/Packages_spec.ts +++ b/t/cypress/integration/ERM/Packages_spec.ts @@ -116,7 +116,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! @@ -189,7 +189,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! @@ -304,7 +304,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 2f1f6c826ab..80709e49974 100644 --- a/t/cypress/integration/ERM/Titles_spec.ts +++ b/t/cypress/integration/ERM/Titles_spec.ts @@ -193,7 +193,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! @@ -351,7 +351,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! @@ -459,7 +459,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.25.1