Browse Source

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>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
21.05.x
Jonathan Druart 3 months ago
parent
commit
a4da4b7568
  1. 11
      t/lib/Selenium.pm

11
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 {

Loading…
Cancel
Save