Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 2.83 KB

File metadata and controls

44 lines (27 loc) · 2.83 KB

< Return to Overview

Additional Details capture (additional-details-capture)

Support for capturing additional details with required set to true

Note the test suite does not yet support testing of optional additional details

https://www.openactive.io/open-booking-api/EditorsDraft/#additional-details-capture

Coverage Status: complete

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.

TestOpportunityBookableAdditionalDetails x9, TestOpportunityBookable x3

Running tests for only this feature

npm start -- --runInBand test/features/details-capture/additional-details-capture/

'Implemented' tests

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

"implementedFeatures": {
  ...
  "additional-details-capture": true,
  ...
}
Identifier Name Description Prerequisites per Opportunity Type Required Test Interface Actions
additional-details-required-and-supplied Booking opportunity with additional details supplied Should pass TestOpportunityBookableAdditionalDetails x3, TestOpportunityBookable x1
additional-details-required-but-not-supplied Booking opportunity with additional details required but not supplied Should error TestOpportunityBookableAdditionalDetails x3, TestOpportunityBookable x1
additional-details-required-invalid-details-supplied Booking opportunity with additional details supplied but invalid details supplied Should error TestOpportunityBookableAdditionalDetails x3, TestOpportunityBookable x1