From e1925bcde3b191a1b43623ca0ecc0e28816623ef Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 26 Apr 2019 19:56:43 +0100 Subject: [PATCH] Bug 22478: (RMaint follow-up) Fix selenium test Seems no-one actually ran the tests during QA of this one Signed-off-by: Martin Renvoize --- t/db_dependent/selenium/regressions.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/t/db_dependent/selenium/regressions.t b/t/db_dependent/selenium/regressions.t index ce09b74453..d8168d37d2 100644 --- a/t/db_dependent/selenium/regressions.t +++ b/t/db_dependent/selenium/regressions.t @@ -194,13 +194,13 @@ 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 } } - ); + )->store; } my $password = Koha::AuthUtils::generate_password(); @@ -208,7 +208,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; @@ -217,7 +217,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.20.1