Bugzilla – Attachment 49654 Details for
Bug 16160
t/db_dependent/www/search_utf8.t fails due to layout change
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16160: Fix t/../www/search_utf8.t for layout change
Bug-16160-Fix-twwwsearchutf8t-for-layout-change.patch (text/plain), 2.14 KB, created by
Tomás Cohen Arazi
on 2016-03-29 20:12:04 UTC
(
hide
)
Description:
Bug 16160: Fix t/../www/search_utf8.t for layout change
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi
Created:
2016-03-29 20:12:04 UTC
Size:
2.14 KB
patch
obsolete
>From f907eb62f42f1699fcbed764b7eb62df4d85f1b8 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Tue, 29 Mar 2016 17:00:59 -0300 >Subject: [PATCH] Bug 16160: Fix t/../www/search_utf8.t for layout change > >Some of the include files in tools/manage-marc-import.tt introduced a new form object >so the form index for the tests needed to be changed to match the new layout. > >While testing this I also found that due to the new record_type input in stage-marc-import.tt >the tests would fail if run on an instance with already imported stuff (i.e. the import id >was defaulting to zero). This might have been the cause of some random failures in jenkins >befire we started to DROP / re-CREATE the DB. > >To test: >- Run (on kohadevbox:ansible) > $ sudo koha-shell kohadev > $ cd kohaclone > $ prove t/db_dependent/www/search_utf8.t >=> FAIL: mainsubmitform is not found, and the tests hang >- Apply the patch >- re-run the tests: > $ prove t/db_dependent/www/search_utf8.t >=> SUCCESS: Tests now pass! >- Sign off > >Regards >--- > t/db_dependent/www/search_utf8.t | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/www/search_utf8.t b/t/db_dependent/www/search_utf8.t >index 9eb66b9..5ac31d6 100644 >--- a/t/db_dependent/www/search_utf8.t >+++ b/t/db_dependent/www/search_utf8.t >@@ -153,6 +153,7 @@ sub test_search{ > 'encoding' => 'utf8', > 'parse_items' => '1', > 'runinbackground' => '1', >+ 'record_type' => 'biblio' > } > }, > 'stage MARC' >@@ -207,6 +208,7 @@ sub test_search{ > 'parse_items' => '1', > 'runinbackground' => '1', > 'completedJobID' => $jobID, >+ 'record_type' => 'biblio' > } > }, > 'stage MARC' >@@ -215,7 +217,7 @@ sub test_search{ > $agent->follow_link_ok( { text => 'Manage staged records' }, 'view batch' ); > > >- $agent->form_number(5); >+ $agent->form_number(6); > $agent->field( 'framework', '' ); > $agent->click_ok( 'mainformsubmit', "imported records into catalog" ); > my $webpage = $agent->{content}; >-- >2.7.4
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 16160
:
49654
|
49675