If a pact has "a request for an order" given "an order exists" and, "a request for an order", given "an order does not exist", the first successful response will always be returned, meaning that you can't use the stub server to test error flows. The stub server could provide an endpoint to allow the response to the next request to be pre-selected by the provider state name.
If a pact has "a request for an order" given "an order exists" and, "a request for an order", given "an order does not exist", the first successful response will always be returned, meaning that you can't use the stub server to test error flows. The stub server could provide an endpoint to allow the response to the next request to be pre-selected by the provider state name.
https://pact.canny.io/admin/board/feature-requests/p/allow-the-interaction-for-a-particular-provider-state-to-be-selected-where-multi