< Return to Summary | File Generated: Thu Nov 21 2024 17:50:53 GMT+0000 (Coordinated Universal Time)
Booking Flow: OpenBookingSimpleFlow
Opportunity Type: ScheduledSession
Feature: Payment / Free opportunities (Implemented)
Test: Free opportunities must have either a openBookingPrepayment
value of Unspecified, or have no openBookingPrepayment
specified
Assert that no opportunities that match criteria 'TestOpportunityBookableFreePrepaymentOptional' or 'TestOpportunityBookableFreePrepaymentRequired' are available in the opportunity feeds.
npm start -- --runInBand test/features/payment/free-opportunities/implemented/opportunity-free-must-not-include-prepayment-test.js
The OpenActive Reference Implementation test result for this test can be used as a reference to help with debugging.
✅ 3 passed with 0 failures, 0 warnings and 0 suggestions
POST http://localhost:3000/assert-unmatched-criteria
{
"@type": "ScheduledSession",
"superEvent": {
"@type": "SessionSeries"
},
"@context": [
"https://openactive.io/",
"https://openactive.io/test-interface"
],
"test:testOpportunityCriteria": "https://openactive.io/test-interface#TestOpportunityBookableFreePrepaymentOptional",
"test:testOpenBookingFlow": "https://openactive.io/test-interface#OpenBookingSimpleFlow"
}
Response status code: 204 No Content. Responded in 64.738044ms.
POST http://localhost:3000/assert-unmatched-criteria
{
"@type": "ScheduledSession",
"superEvent": {
"@type": "SessionSeries"
},
"@context": [
"https://openactive.io/",
"https://openactive.io/test-interface"
],
"test:testOpportunityCriteria": "https://openactive.io/test-interface#TestOpportunityBookableFreePrepaymentRequired",
"test:testOpenBookingFlow": "https://openactive.io/test-interface#OpenBookingSimpleFlow"
}
Response status code: 204 No Content. Responded in 7.909593ms.