< Return to Summary | File Generated: Tue Apr 16 2024 12:05:53 GMT+0000 (Coordinated Universal Time)

free-opportunities >> opportunity-free-must-not-include-prepayment (OpenBookingSimpleFlow >> ScheduledSession)

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.

Running only this test

npm start -- --runInBand test/features/payment/free-opportunities/implemented/opportunity-free-must-not-include-prepayment-test.js

Is this test failing?

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


✅ TestOpportunityBookableFreePrepaymentOptional opportunity feed items

Assert Unmatched Criteria 'TestOpportunityBookableFreePrepaymentOptional' for 'ScheduledSession' Request

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 33.818173ms.

Specs

✅ TestOpportunityBookableFreePrepaymentRequired opportunity feed items

Assert Unmatched Criteria 'TestOpportunityBookableFreePrepaymentRequired' for 'ScheduledSession' Request

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 25.317152ms.

Specs