From 5977db6738a50f398e9049db39d8a8e622546f2e Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 26 Apr 2019 19:56:43 +0100 Subject: [PATCH] Bug 22478: (QA follow-up) Make test consistent with variable name We were adding data to category 1 (private lists) and testing against that, but we named the variable 'publist_lists'. Signed-off-by: Martin Renvoize --- t/db_dependent/selenium/regressions.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/db_dependent/selenium/regressions.t b/t/db_dependent/selenium/regressions.t index 756e9f5632..f2b9e1fb70 100644 --- a/t/db_dependent/selenium/regressions.t +++ b/t/db_dependent/selenium/regressions.t @@ -193,7 +193,7 @@ subtest 'XSS vulnerabilities in pagination' => sub { { class => 'Koha::Virtualshelves', value => { - category => 1, + category => 2, allow_change_from_owner => 1, allow_change_from_others => 0, owner => $patron->borrowernumber @@ -207,7 +207,7 @@ subtest 'XSS vulnerabilities in pagination' => sub { $patron->set_password({ password => $password }); $s->opac_auth( $patron->userid, $password ); - my $public_lists = $s->opac_base_url . q|opac-shelves.pl?op=list&category=1|; + my $public_lists = $s->opac_base_url . q|opac-shelves.pl?op=list&category=2|; $driver->get($public_lists); $s->remove_error_handler; @@ -216,7 +216,7 @@ subtest 'XSS vulnerabilities in pagination' => sub { is( $alert_text, undef, 'No alert box displayed' ); my $booh_alert = 'booh!'; - $public_lists = $s->opac_base_url . qq|opac-shelves.pl?op=list&category=1">|; + $public_lists = $s->opac_base_url . qq|opac-shelves.pl?op=list&category=2">|; $driver->get($public_lists); $s->remove_error_handler; -- 2.39.5