From fd658768835c02856125f1f5c47102595ad59467 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. Signed-off-by: Jonathan Druart (cherry picked from commit 48e74cebedea733e0a6528cd275c1b2925ff46bd) Signed-off-by: Fridolin Somers (cherry picked from commit 965ad535b503a6a786388feb40498ab1b79fe735) Signed-off-by: Andrew Fuerste-Henry (cherry picked from commit 64ccd1c48299b457413a9ede0c9f26dc61f003c5) Signed-off-by: Victor Grousset/tuxayo --- 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 1fec63172b..e33062fd65 100644 --- 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