From 6893bebbce54b32d1d58b2eade8427d76ec79503 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 299a512def..5b4ec186ad 100755 --- a/t/db_dependent/Illrequests.t +++ b/t/db_dependent/Illrequests.t @@ -362,12 +362,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 => { @@ -481,12 +481,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 => { @@ -1564,7 +1564,7 @@ subtest 'Checking Limits' => sub { subtest 'Custom statuses' => sub { - plan tests => 3; + plan tests => 5; $schema->storage->txn_begin; -- 2.30.2