Bugzilla – Attachment 154099 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.06 KB, created by
Pedro Amorim
on 2023-07-31 15:04:27 UTC
(
hide
)
Description:
Bug 34448: Update cypress tests
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2023-07-31 15:04:27 UTC
Size:
6.06 KB
patch
obsolete
>From e44fa176b89ac5464e60e54989beaa4112ac8ddd 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
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