Change from bug 38102 must be covered by tests.
Created attachment 183974 [details] [review] Bug 40345: Pass a patron to insertSampleCheckout So we won't generate a new patron per checkout
Created attachment 183975 [details] [review] Bug 40345: Add insertSamplePatron So it's easier to build and insert a new patron
Created attachment 183976 [details] [review] Bug 40345: Force checkout Pass the confirmation token to force the checkout
Created attachment 183977 [details] [review] Bug 40345: Add tests for bug 38102 Test plan: yarn cypress run --spec t/cypress/integration/KohaTable/OPACCirculationHistory_spec.ts must return green Revert commits from bug 38102 Run again the Cypress tests => They fail
Created attachment 183979 [details] [review] Bug 40345: Properly cleanup old checkouts
Created attachment 183983 [details] [review] Bug 40345: Pass a patron to insertSampleCheckout So we won't generate a new patron per checkout
Created attachment 183984 [details] [review] Bug 40345: Add insertSamplePatron So it's easier to build and insert a new patron
Created attachment 183985 [details] [review] Bug 40345: Force checkout Pass the confirmation token to force the checkout
Created attachment 183986 [details] [review] Bug 40345: Add tests for bug 38102 Test plan: yarn cypress run --spec t/cypress/integration/KohaTable/OPACCirculationHistory_spec.ts must return green Revert commits from bug 38102 Run again the Cypress tests => They fail
Created attachment 183987 [details] [review] Bug 40345: Properly cleanup old checkouts
Created attachment 183988 [details] [review] Bug 40345: Use then to prevent async issues