From 23b371ab5677bb9960ab8e8fca6929edc292f3d0 Mon Sep 17 00:00:00 2001 From: Jake Deery 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