From 8bf1b4e0daac8769a0fbce4ca12090aba2fd5f4b Mon Sep 17 00:00:00 2001
From: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Date: Mon, 31 Jul 2023 15:04:09 +0000
Subject: [PATCH] Bug 34448: Update cypress tests

---
 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 5638fb9d9e..1f507e5414 100644
--- a/t/cypress/integration/ERM/Agreements_spec.ts
+++ b/t/cypress/integration/ERM/Agreements_spec.ts
@@ -372,7 +372,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!
@@ -541,7 +541,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!
@@ -623,7 +623,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 6d79f89633..4c923502cc 100644
--- a/t/cypress/integration/ERM/Licenses_spec.ts
+++ b/t/cypress/integration/ERM/Licenses_spec.ts
@@ -142,7 +142,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!
@@ -196,7 +196,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!
@@ -266,7 +266,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 172e9ecf6b..88c1465e82 100644
--- a/t/cypress/integration/ERM/Packages_spec.ts
+++ b/t/cypress/integration/ERM/Packages_spec.ts
@@ -121,7 +121,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!
@@ -194,7 +194,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!
@@ -309,7 +309,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 d08b350d31..e57beaa908 100644
--- a/t/cypress/integration/ERM/Titles_spec.ts
+++ b/t/cypress/integration/ERM/Titles_spec.ts
@@ -198,7 +198,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!
@@ -356,7 +356,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!
@@ -464,7 +464,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.30.2