https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36607 --- Comment #6 from Jonathan Druart <jonathan.druart@gmail.com> --- (In reply to Matt Blenkinsop from comment #5)
The patch above allows us to use an object builder directly in the test - the alternative would be to just write a perl data generation script and call that directly at the start and end of each test to generate/tidy up data.
Ideally the command could also return the newly created value but that is a future step as we can retrieve it with cypress mysql for now
Let me know any concerns/feedback
We need to cleanup behind us. So for instance if you create a patron you need to remove it AND what has been auto-generated: library + patron's category. So yes, we should retrieve the id of the resource we have created. The "delete the last X entries" approach is not robust enough IMO. See t/db_dependent/selenium/regressions.t: push @cleanup, $patron, $patron->category, $patron->library; -- You are receiving this mail because: You are watching all bug changes.