From 189baf8f49cb853e955849dd9a7ad61f6868ac32 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 1 Oct 2020 11:35:00 +0200 Subject: [PATCH] Bug 25261: Prevent tests to fail if CircConfirmItemParts is on Setting items.materials to NULL at TestBuilder level will (certainly) prevent some tests to fail if the pref is on In t/db_dependent/selenium/basic_workflow.t we set 952$3 to an empty string. The tests will pass even if the pref is turned on. Signed-off-by: Jonathan Druart --- t/db_dependent/selenium/basic_workflow.t | 5 +++++ t/lib/TestBuilder.pm | 1 + 2 files changed, 6 insertions(+) diff --git a/t/db_dependent/selenium/basic_workflow.t b/t/db_dependent/selenium/basic_workflow.t index a988bb8683..c4bb0310c5 100755 --- a/t/db_dependent/selenium/basic_workflow.t +++ b/t/db_dependent/selenium/basic_workflow.t @@ -208,6 +208,11 @@ SKIP: { ) { $v = ""; # The input has been prefilled with %Y-%m-%d already } + elsif ( + $id =~ m|^tag_952_subfield_3| # materials + ) { + $v = ""; # We don't want the checkin/checkout to need confirmation if CircConfirmItemParts is on + } else { $v = 't_value_bib' . $biblionumber; } diff --git a/t/lib/TestBuilder.pm b/t/lib/TestBuilder.pm index c40f6e6149..26de949fb3 100644 --- a/t/lib/TestBuilder.pm +++ b/t/lib/TestBuilder.pm @@ -552,6 +552,7 @@ sub _gen_default_values { withdrawn => 0, restricted => 0, damaged => 0, + materials => undef, more_subfields_xml => undef, }, Category => { -- 2.11.4.GIT