]> git.koha-community.org Git - koha.git/commit
Bug 19185: Fix regressions.t
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 26 Oct 2021 10:20:54 +0000 (12:20 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 26 Oct 2021 14:46:02 +0000 (16:46 +0200)
commit54a1c5433bb89f714cba5061ae33eb94851a0260
tree62b9c3c481e13bb291567618a80fdfaa3ae92b75
parentfacc13f6f08c223b8e89ff28e3a4da14e3f53d1b
Bug 19185: Fix regressions.t

The following test is failing:
| #   Failed test 'OPAC - Remove from cart'
| #   at t/db_dependent/selenium/regressions.t line 132.
| Can't call method "get_value" on an undefined value at t/db_dependent/selenium/regressions.t line 110.
| # Looks like your test exited with 2 just after 3.
| [12:14:08] t/db_dependent/selenium/regressions.t

We are dependind on the search engine and the records in the DB but the
installer is not inserting any records.

This patch is suggesting to reuse the code from search_utf8
(and so make it reusable first) for remove_from_cart test.
This code is mocking the Zebra index with some MARC data and so the
search will return results. We will finally be able to click on the
add to/remove from cart links.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/selenium/regressions.t
t/db_dependent/selenium/remove_from_cart.t [new file with mode: 0755]
t/db_dependent/www/search_utf8.t
t/lib/Mocks/Zebra.pm [new file with mode: 0644]