From a8a5212b2591bca23422f889b40042d83bb6e9f4 Mon Sep 17 00:00:00 2001 From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> 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 <victor@tuxayo.net> --- 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 ee25a649f7..54f9b9109c 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.31.1