From adb740e36ac828344478f8d86a6925857d0a0e67 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 2 Mar 2022 10:41:27 +0000 Subject: [PATCH] Bug 22531: (QA follow-up) Fix Unit Tests This patch series adds the ability to generate a partners request multiple times from the same ILL request. It does this be adding the 'GENREQ' action to both 'prev_actions' and 'next_actions' in the 'GENREQ' status segment of the status graph. This QA followup updates the status graph tests to reflect this change. Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- t/db_dependent/Illrequests.t | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/t/db_dependent/Illrequests.t b/t/db_dependent/Illrequests.t index 2a0b22c92d..7ad0b52515 100755 --- a/t/db_dependent/Illrequests.t +++ b/t/db_dependent/Illrequests.t @@ -298,12 +298,12 @@ subtest 'Status Graph tests' => sub { ui_method_icon => 'fa-check', }, GENREQ => { - prev_actions => [ 'NEW', 'REQREV' ], + prev_actions => [ 'NEW', 'REQREV', 'GENREQ' ], id => 'GENREQ', name => 'Requested from partners', ui_method_name => 'Place request with partners', method => 'generic_confirm', - next_actions => [ 'COMP', 'CHK' ], + next_actions => [ 'COMP', 'CHK', 'GENREQ' ], ui_method_icon => 'fa-send-o', }, REQREV => { @@ -417,12 +417,12 @@ subtest 'Status Graph tests' => sub { ui_method_icon => 'fa-check', }, GENREQ => { - prev_actions => [ 'NEW', 'REQREV' ], + prev_actions => [ 'NEW', 'REQREV', 'GENREQ' ], id => 'GENREQ', name => 'Requested from partners', ui_method_name => 'Place request with partners', method => 'generic_confirm', - next_actions => [ 'COMP', 'CHK' ], + next_actions => [ 'COMP', 'CHK', 'GENREQ' ], ui_method_icon => 'fa-send-o', }, REQREV => { @@ -1400,7 +1400,7 @@ subtest 'Checking Limits' => sub { subtest 'Custom statuses' => sub { - plan tests => 3; + plan tests => 5; $schema->storage->txn_begin; -- 2.30.2