Bugzilla – Attachment 107444 Details for
Bug 25811
authentication.t is failing randomly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25811: Debug - Paste the source of the page
Bug-25811-Debug---Paste-the-source-of-the-page.patch (text/plain), 1.40 KB, created by
Tomás Cohen Arazi (tcohen)
on 2020-07-27 17:09:52 UTC
(
hide
)
Description:
Bug 25811: Debug - Paste the source of the page
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2020-07-27 17:09:52 UTC
Size:
1.40 KB
patch
obsolete
>From f69c1b8c11b2395be5ecdbc3fd8ee1110bb8badd Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 27 Jul 2020 14:59:59 +0200 >Subject: [PATCH] Bug 25811: Debug - Paste the source of the page > >I am really struggling finding the problem here. >Posting the source of the page may help. > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > t/lib/Selenium.pm | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/t/lib/Selenium.pm b/t/lib/Selenium.pm >index 95a4ac1475..8e74976fc8 100644 >--- a/t/lib/Selenium.pm >+++ b/t/lib/Selenium.pm >@@ -19,6 +19,7 @@ package t::lib::Selenium; > use Modern::Perl; > use Carp qw( croak ); > use JSON qw( from_json ); >+use File::Slurp qw( write_file ); > > use C4::Context; > >@@ -28,6 +29,11 @@ __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', $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}; >-- >2.27.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 25811
:
107414
| 107444 |
107635
|
107716
|
108782
|
108796