Bugzilla – Attachment 174530 Details for
Bug 37576
Add additional fields support to ERM agreements
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37576: (follow-up) fix broken cypress tests
Bug-37576-follow-up-fix-broken-cypress-tests.patch (text/plain), 2.47 KB, created by
Jake Deery
on 2024-11-14 14:36:32 UTC
(
hide
)
Description:
Bug 37576: (follow-up) fix broken cypress tests
Filename:
MIME Type:
Creator:
Jake Deery
Created:
2024-11-14 14:36:32 UTC
Size:
2.47 KB
patch
obsolete
>From 23b371ab5677bb9960ab8e8fca6929edc292f3d0 Mon Sep 17 00:00:00 2001 >From: Jake Deery <jake.deery@ptfs-europe.com> >Date: Thu, 14 Nov 2024 14:34:48 +0000 >Subject: [PATCH] Bug 37576: (follow-up) fix broken cypress tests > >This patch is intended to fix failing Cypress tests >by including the correct payload in get_agreement() >found in e2e.js >--- > t/cypress/support/e2e.js | 60 ++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 60 insertions(+) > >diff --git a/t/cypress/support/e2e.js b/t/cypress/support/e2e.js >index 27d79e47c60..ac84837420e 100644 >--- a/t/cypress/support/e2e.js >+++ b/t/cypress/support/e2e.js >@@ -214,6 +214,66 @@ cy.get_agreement = () => { > uploaded_on: "2022-10-27T11:57:02+00:00", > }, > ], >+ extended_attributes: [ >+ { >+ field_id: 1, >+ id: "1", >+ record_id: "1", >+ value: "REF", >+ }, >+ { >+ field_id: 1, >+ id: "2", >+ record_id: "1", >+ value: "NFIC", >+ }, >+ { >+ field_id: 2, >+ id: "3", >+ record_id: "1", >+ value: "some text", >+ }, >+ { >+ field_id: 3, >+ id: "4", >+ record_id: "1", >+ value: "some repeatable text", >+ }, >+ { >+ field_id: 4, >+ id: "5", >+ record_id: "1", >+ value: "AF", >+ }, >+ ], >+ _strings: { >+ additional_field_values: [ >+ { >+ field_id: 1, >+ field_label: "AV Repeatable", >+ type: "av", >+ value_str: "Reference, Non-fiction", >+ }, >+ { >+ field_id: 2, >+ field_label: "Text non-repeatable", >+ type: "text", >+ value_str: "some text", >+ }, >+ { >+ field_id: 3, >+ field_label: "Text repeatable", >+ type: "text", >+ value_str: "some repeatable text", >+ }, >+ { >+ field_id: 4, >+ field_label: "AV Searchable", >+ type: "av", >+ value_str: "Afghanistan", >+ }, >+ ], >+ } > }; > } > >-- >2.43.0
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 37576
:
171181
|
171268
|
171379
|
171397
|
173774
|
173775
|
173776
|
174530
|
174531
|
174532