From 731c8999af66b949b898aa0e358ac47d90730761 Mon Sep 17 00:00:00 2001 From: Alessio Cialini Date: Fri, 12 Jan 2024 17:55:23 +0100 Subject: [PATCH] chore: receipt_pdf_helpdesk.feature --- .../src/features/receipt_pdf_helpdesk.feature | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/integration-test/src/features/receipt_pdf_helpdesk.feature b/integration-test/src/features/receipt_pdf_helpdesk.feature index 01784a8..1dc08b4 100644 --- a/integration-test/src/features/receipt_pdf_helpdesk.feature +++ b/integration-test/src/features/receipt_pdf_helpdesk.feature @@ -30,4 +30,11 @@ Feature: All about payment events to recover managed by Azure functions receipt- When getReceiptMessage API is called with messageId "receipt-helpdesk-int-test-message-id-3" Then the api response has a 200 Http status And the receipt-message has messageId "receipt-helpdesk-int-test-message-id-3" - And the receipt-message has eventId "receipt-helpdesk-int-test-id-3" \ No newline at end of file + And the receipt-message has eventId "receipt-helpdesk-int-test-id-3" + + Scenario: receiptToReviewed API retrieve a receipt error and updates its status to REVIEWED + Given a receipt-error with bizEventId "receipt-helpdesk-int-test-id-5" and status "TO_REVIEW" stored into receipt-error datastore + When receiptToReviewed API is called with bizEventId "receipt-helpdesk-int-test-id-5" + Then the api response has a 200 Http status + And the receipt-error with bizEventId "receipt-helpdesk-int-test-id-5" is recovered from datastore + And the receipt-error has not status "TO_REVIEW"