From a92c7fa401d1644d20c1ec1850a8655e839131a3 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 4 Dec 2020 17:05:30 +0100 Subject: [PATCH] Bug 12430: Fix selenium/regressions.t failure Test failed with # Looks like you planned 4 tests but ran 3. t/db_dependent/selenium/regressions.t .. 2/5 # Failed test 'OPAC - Remove from cart' # at t/db_dependent/selenium/regressions.t line 109. Error while executing command: clickElement: An unknown server-side error occurred while processing the command.: Element is not clickable at point (583.7000122070312, 14). Other element would receive the click: https://pic.infini.fr//Qhq7pLBq/jT9wZ7F1 The remove from basket link for the biblio 3 is hidden by the floating toolbar. --- t/db_dependent/selenium/regressions.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/selenium/regressions.t b/t/db_dependent/selenium/regressions.t index 3ee8fa190c..c18c95a837 100755 --- a/t/db_dependent/selenium/regressions.t +++ b/t/db_dependent/selenium/regressions.t @@ -70,10 +70,10 @@ subtest 'OPAC - borrowernumber and branchcode as html attributes' => sub { subtest 'OPAC - Remove from cart' => sub { plan tests => 4; - + # We need to prevent scrolling to prevent the floating toolbar from overlapping buttons we are testing my $window_size = $driver->get_window_size(); - $driver->set_window_size(1920,1080); + $driver->set_window_size(1920,10800); $driver->get( $opac_base_url . "opac-search.pl?q=d" ); -- 2.20.1