slackk0t0
10/25/2022, 4:38 AMYousaf Nabi (pactflow.io)
slackk0t0
10/25/2022, 10:34 PMYousaf Nabi (pactflow.io)
main branch has a working example as shown in the actions run here - https://github.com/YOU54F/pact-playwright-example/actions/runs/3325277851/jobs/5497793496
There does seem to be an issue showing failing verifications - https://github.com/YOU54F/pact-playwright-example/actions/runs/3325286761/jobs/5497811824
In the above test run, I changed the consumer to expect the provider to use the endpoint /order rather than /orders
It correctly fails but the error messaging isn't useful - it might just be an issue with my test setup, I'll have a look into that tomorrow
On the topic of Pact and the scope of your test, how does your client application that you are testing, interact with its provider?
In your example repo, you are using Playwright to issue the requests to the provider, in which to generate the pact file. Traditionally you would be testing the actual client that issues the requests in your application, to ensure that what you encode in the pact file, is what your client application is issuing. Otherwise you tie you provider in knots trying to verify scenarios which don't match reality.
Maybe providing some info on your use case would be useful 👍slackk0t0
10/26/2022, 12:47 AMYousaf Nabi (pactflow.io)
slackk0t0
10/26/2022, 1:28 AMslackk0t0
10/26/2022, 6:45 AMslackk0t0
10/27/2022, 8:41 AMslackk0t0
10/27/2022, 8:42 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
slackk0t0
10/31/2022, 3:15 PM