What does a passing mocked price test prove about the provider?

Instruction: Design complementary checks and show the concrete provider contract assertions.

Context:

A UI test stubs GET /quotes/SKU1 with {"amount_cents": 999, "currency": "USD"} and correctly shows $9.99. The agreed contract requires a nonnegative safe-integer amount_cents, currency USD and HTTP 200; extra fields are allowed. A real provider candidate instead returns {"amount": "9.99", "currency": "USD"}, while the mocked UI suite remains green. A provider fixture independently seeds SKU1 at 999 cents.

Updated

Official answer available

Read the opening below, then unlock the full answer and practical guidance.

The mocked test proves how the consumer behaves when it receives the stubbed response. It has not exercised this provider candidate, so it cannot detect the missing amount_cents field...

Related Questions