Bugzilla – Attachment 147079 Details for
Bug 32925
Display loading info when a form is submitted
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32925: Add test
Bug-32925-Add-test.patch (text/plain), 1.50 KB, created by
Matt Blenkinsop
on 2023-02-21 17:08:52 UTC
(
hide
)
Description:
Bug 32925: Add test
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2023-02-21 17:08:52 UTC
Size:
1.50 KB
patch
obsolete
>From b9e02e52e2dcad15580ce5e5b1a3dab54d1aa70b Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 15 Feb 2023 12:26:39 +0100 >Subject: [PATCH] Bug 32925: Add test > >Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> >--- > t/cypress/integration/Agreements_spec.ts | 11 ++++++++--- > 1 file changed, 8 insertions(+), 3 deletions(-) > >diff --git a/t/cypress/integration/Agreements_spec.ts b/t/cypress/integration/Agreements_spec.ts >index 62f666f2951..d6b7ffcb304 100644 >--- a/t/cypress/integration/Agreements_spec.ts >+++ b/t/cypress/integration/Agreements_spec.ts >@@ -426,11 +426,16 @@ describe("Agreement CRUD operations", () => { > cy.get("#related_agreement_0 #related_agreement_id_0 .vs__selected").contains("agreement name"); > > // Submit the form, get 500 >- cy.intercept("PUT", "/api/v1/erm/agreements/*", { >- statusCode: 500, >- error: "Something went wrong", >+ cy.intercept("PUT", "/api/v1/erm/agreements/*", (req) => { >+ req.reply({ >+ statusCode: 500, >+ error: "Something went wrong", >+ delay: 1000, >+ }); > }); > cy.get("#agreements_add").contains("Submit").click(); >+ 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" > ); >-- >2.37.1 (Apple Git-137.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 32925
:
146428
|
146436
|
146469
|
146683
|
146684
|
146685
|
146686
|
146689
|
147045
|
147046
|
147047
|
147048
|
147049
|
147076
|
147077
|
147078
|
147079
|
147080
|
147324
|
147325
|
147326
|
147327
|
147328