Bugzilla – Attachment 108780 Details for
Bug 26031
www/search_utf8.t is failing randomly and must be removed/replaced
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26031: Add diagnostic to search_utf8.t
Bug-26031-Add-diagnostic-to-searchutf8t.patch (text/plain), 1.40 KB, created by
Jonathan Druart
on 2020-08-21 08:07:28 UTC
(
hide
)
Description:
Bug 26031: Add diagnostic to search_utf8.t
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-08-21 08:07:28 UTC
Size:
1.40 KB
patch
obsolete
>From 998bfe9a4844fff4cc991917db2cd91eb2be0aec Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 21 Aug 2020 10:06:57 +0200 >Subject: [PATCH] Bug 26031: Add diagnostic to search_utf8.t > >--- > t/db_dependent/www/search_utf8.t | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/www/search_utf8.t b/t/db_dependent/www/search_utf8.t >index 859b0114a9..4f08679b29 100644 >--- a/t/db_dependent/www/search_utf8.t >+++ b/t/db_dependent/www/search_utf8.t >@@ -256,7 +256,14 @@ sub test_search{ > $agent->field('q', $search_key); > $agent->click(); > my $intra_text = $agent->text() ; >- like( $intra_text, qr|Publisher: $publisher|, ); >+ my $diag = sub { >+ my $pref = 'OPACXSLTResultsDisplay'; >+ my $xslt_file = C4::Context->preference('marcflavour') . 'slim2OPACResults.xsl'; >+ my $xslt_filepath = C4::XSLT::_get_best_default_xslt_filename( C4::Context->config('opachtdocs'), C4::Context->preference("opacthemes"), $xslt_file ); >+ return sprintf( "===DIAG===\n%s is %s\n%s %s\n==========", $pref, C4::Context->preference($pref), $xslt_filepath, ( -f $xslt_filepath ? 'exists' : 'does not exist' )); >+ }; >+ >+ like( $intra_text, qr|Publisher: $publisher|, ) or diag($diag->()); > > $agent->get_ok( "$intranet/cgi-bin/koha/catalogue/search.pl" , "got search on intranet"); > $agent->form_number(5); >-- >2.20.1
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 26031
:
108780
|
108798
|
113793
|
113796
|
113811
|
113812