From 9f18c16872e0258a919247ac3d05219d46215eac Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 2 May 2016 15:47:03 -0300 Subject: [PATCH] Bug 10171: (QA followup) Make search tests use the right form This bug removed the search tab from the main search box, so the tests that use /cgi-bin/koha/catalogue/search.pl for searching, should use the advanced search box instead. To test: - Run $ prove t/db_dependent/www/search_utf8.t => FAIL: Several tests related to searching on the intranet interface fail. - Apply the patch - Run $ prove t/db_dependent/www/search_utf8.t => SUCCESS: Tests pass - Be happy Signed-off-by: Tomas Cohen Arazi Signed-off-by: Marcel de Rooy Signed-off-by: Kyle M Hall --- t/db_dependent/www/search_utf8.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/www/search_utf8.t b/t/db_dependent/www/search_utf8.t index 851850c55a..7a10888f8f 100644 --- a/t/db_dependent/www/search_utf8.t +++ b/t/db_dependent/www/search_utf8.t @@ -233,7 +233,7 @@ sub test_search{ $agent->get_ok( "$intranet/cgi-bin/koha/catalogue/search.pl" , "got search on intranet"); - $agent->form_number(1); + $agent->form_number(5); $agent->field('idx', 'kw'); $agent->field('q', $search_key); $agent->click(); @@ -241,7 +241,7 @@ sub test_search{ like( $intra_text, qr|Publisher: $publisher|, ); $agent->get_ok( "$intranet/cgi-bin/koha/catalogue/search.pl" , "got search on intranet"); - $agent->form_number(1); + $agent->form_number(5); $agent->field('idx', 'kw'); $agent->field('q', $publisher); $agent->click(); -- 2.39.5