diff --git a/integration-test/src/step_definitions/receipt_pdf_datastore_step.js b/integration-test/src/step_definitions/receipt_pdf_datastore_step.js index 8e0a0ed7..2085c290 100644 --- a/integration-test/src/step_definitions/receipt_pdf_datastore_step.js +++ b/integration-test/src/step_definitions/receipt_pdf_datastore_step.js @@ -61,7 +61,8 @@ Then('the receipt has not the status {string}', function (targetStatus) { Given('a random receipt with id {string} stored with status FAILED', async function (id) { this.eventId = id; // prior cancellation to avoid dirty cases - await updateReceiptToFailed(this.eventId); + document = await getDocumentByIdFromReceiptsDatastore(eventId); + await updateReceiptToFailed(document.resources[0].id, this.eventId); }); When('HTTP recovery request is called', async function () {