Koha/t/db_dependent/selenium
Jonathan Druart 757ca57bfd
Bug 23463: Fix selenium tests (highlight a bug in date management)
There is something wrong, and a regression has been caught by those
tests:
If an invalid date is passed from the add item form, the app now
crashes.
Before:
 * if the date was completely invalid, the field was blanked
silently
 * DateTime::Format::MySQL was used to convert dates, and it's not
 strict at all. For instance, what happened in the selenium tests for
 dateaccessionned: %Y-%m-%d was prefilled by the framework plugin, then
 the biblionumber was added, we ended with something like (eg for today)
 2020-03-234242 (with biblionumber=4242). DateTime::Format::MySQL
 converts that to 2020-03-23

We must deal with invalid dates, but I do not think it is good to add it
back to Koha::Item->store, we will prefer to raise the error to the end
user, saying that something went wrong (and more specifically the
dates).

The (ugly) trick was in C4::Items::_mod_item_dates

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-03-23 12:23:16 +00:00
..
administration_tasks.t Bug 24801: Display all the categories - Selenium fix 2020-03-04 14:56:19 +00:00
authentication.t Bug 22860: Remove 1 remaining patron after authentication.t is ran 2020-02-10 09:21:30 +00:00
basic_workflow.t Bug 23463: Fix selenium tests (highlight a bug in date management) 2020-03-23 12:23:16 +00:00
patrons_search.t Bug 17374: (follow-up) Unit tests 2020-03-10 15:18:29 +00:00
regressions.t
update_child_to_adult.t