Skip to content

Commit

Permalink
chore: update receipt_pdf_helpdesk.feature
Browse files Browse the repository at this point in the history
  • Loading branch information
alessio-cialini committed Jan 15, 2024
1 parent 561256f commit ef8d064
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions integration-test/src/features/receipt_pdf_helpdesk.feature
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,15 @@ Feature: All about payment events to recover managed by Azure functions receipt-
Then the api response has a 200 Http status
And the list of receipt is recovered from datastore and no receipt in the list has status "IO_ERROR_TO_NOTIFY"

Scenario: regenerateReceiptPdf API retrieve the receipt with the given eventId and regenerate its pdf updating receipt's metadata
Given a receipt with eventId "receipt-helpdesk-int-test-id-10" and status "IO_NOTIFIED" stored into receipt datastore
And a biz event with id "receipt-helpdesk-int-test-id-10" and status "DONE" stored on biz-events datastore
When regenerateReceiptPdf API is called with bizEventId "receipt-helpdesk-int-test-id-10" as query param
Then the api response has a 200 Http status
And the receipt with eventId "receipt-helpdesk-int-test-id-10" is recovered from datastore
And the receipt has attachment metadata
And the PDF is present on blob storage

Scenario: recoverFailedCart API retrieve a cart in status FAILED and updates its status
Given a biz event with transactionId "receipt-helpdesk-int-test-id-11" and status "DONE" stored on biz-events datastore
And a biz event with transactionId "receipt-helpdesk-int-test-id-11" and status "DONE" stored on biz-events datastore
Expand Down

0 comments on commit ef8d064

Please sign in to comment.