Bugzilla – Attachment 154259 Details for
Bug 34448
ERM should be able to display error messages coming from the API
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34448: Update cypress tests
Bug-34448-Update-cypress-tests.patch (text/plain), 6.14 KB, created by
Jonathan Druart
on 2023-08-04 12:04:40 UTC
(
hide
)
Description:
Bug 34448: Update cypress tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-08-04 12:04:40 UTC
Size:
6.14 KB
patch
obsolete
>From c16e99785d8ee07bdd455f12d948f962753d3694 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 > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34448
:
154097
|
154098
|
154099
|
154123
|
154124
| 154259 |
154260