From a4da4b75686015a2a25f3ed81768d18023561c40 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 --- t/lib/Selenium.pm | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/t/lib/Selenium.pm b/t/lib/Selenium.pm index 4c3d7c1553..35d2c04fc3 100644 --- a/t/lib/Selenium.pm +++ b/t/lib/Selenium.pm @@ -29,17 +29,8 @@ __PACKAGE__->mk_accessors(qw(login password base_url opac_base_url selenium_addr sub capture { my ( $class, $driver ) = @_; - $driver->get_page_source; - write_file('/tmp/page_source_from_selenium', {binmode => ':utf8'}, $driver->get_page_source ); - my $gdf3_url = qx(cat /tmp/page_source_from_selenium | curl --data-binary \@- https://gdf3.com); - print STDERR "\nPage source pasted at $gdf3_url"; - - 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"; - } + } sub new { -- 2.39.5