Skip to content

Latest commit

 

History

History
47 lines (28 loc) · 2.82 KB

File metadata and controls

47 lines (28 loc) · 2.82 KB

< Return to Overview

Proposal Amendment - Amend an opportunity using an OrderProposal (proposal-amendment)

Test approval flows with Proposal Amendment.

https://openactive.io/open-booking-api/EditorsDraft/#proposal-amendment

Coverage Status: complete

See also:

Test prerequisites - Opportunities

Opportunities that match the following criteria must exist in the booking system (for each configured bookableOpportunityTypesInScope) for the configured primary Seller in order to use useRandomOpportunities: true. Alternatively the following testOpportunityCriteria values must be supported by the test interface of the booking system for useRandomOpportunities: false.

TestOpportunityBookableWithNegotiation x3, TestOpportunityBookable x1

Test prerequisites - Test Interface Actions

The following Test Interface Actions must be implemented by the test interface of the booking system in order to test this feature (see the Developer Docs guide for implementing Test Interface Actions):

SellerAcceptOrderProposalSimulateAction, SellerAmendOrderProposalSimulateAction

Running tests for only this feature

npm start -- --runInBand test/features/approval/proposal-amendment/

'Implemented' tests

Update default.json within packages/openactive-integration-tests/config/ as follows to enable 'Implemented' testing for this feature:

"implementedFeatures": {
  ...
  "proposal-amendment": true,
  ...
}
Identifier Name Description Prerequisites per Opportunity Type Required Test Interface Actions
proposal-amendment-book Successful booking using the Booking Flow with Approval, creating an amendment A successful end to end booking, via Booking Flow with Approval, of an opportunity, creating an amendment. TestOpportunityBookableWithNegotiation x3, TestOpportunityBookable x1 SellerAcceptOrderProposalSimulateAction, SellerAmendOrderProposalSimulateAction