From 6897c15e9bcaaaddbfb37c0fcc65c631f091120d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 28 Apr 2021 12:18:36 +0200 Subject: [PATCH] Bug 28250: Remove upload of debug for Selenium failures We added an upload of the source page and of the screenshot but both services are discontinued. If we need them back we must host them ourselves. Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Jonathan Druart (cherry picked from commit a4da4b75686015a2a25f3ed81768d18023561c40) Signed-off-by: Fridolin Somers (cherry picked from commit f77b351cc60228caabe33e6b1e02691bbc8ca675) Signed-off-by: Andrew Fuerste-Henry --- t/lib/Selenium.pm | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/t/lib/Selenium.pm b/t/lib/Selenium.pm index 01f52ed0fa..92950fa517 100644 --- a/t/lib/Selenium.pm +++ b/t/lib/Selenium.pm @@ -28,12 +28,8 @@ __PACKAGE__->mk_accessors(qw(login password base_url opac_base_url selenium_addr sub capture { my ( $class, $driver ) = @_; - my $lutim_server = q|https://pic.infini.fr/|; # Thanks Infini! - $driver->capture_screenshot('selenium_failure.png'); - my $from_json = from_json qx{curl -s -F "format=json" -F "file=\@selenium_failure.png" -F "delete-day=1" $lutim_server}; - if ( $from_json ) { - print STDERR "\nSCREENSHOT: $lutim_server/" . $from_json->{msg}->{short} . "\n"; - } + $driver->capture_screenshot('selenium_failure.png'); + } sub new { -- 2.39.5