Open kand opened 2 months ago
I think the interface would make intuitive sense if the formattedAlias
was included in testCaseTitle
here:
Which would match the behavior of using cy.usePactWait
with an array of aliases.
I am facing the same issue. Did you manage to resolve this?
Because of the issue in the adapter code I referenced in my last comment, I think the only way to resolve this is to separate the tests. So instead of
Test
- setup scenario A
- test result A
- setup scenario B now that we're in A
- test result B
I split it into two tests:
Test A
- setup scenario A
- test result A
Test B
- setup scenario A
- setup scenario B now that we're in A
- test result B
Kind of a bummer since this is not how Cypress works. Probably better test design though.
Hello! I have a test that's something like this:
At this point, I have a pact file that only includes the last interaction for
thing-two
and not the interaction forthing-one
. I believe this is becauseconstructPactFile
is excluding "duplicate" interactions based on the test title, which in this case, the test has two interactions under the same test title, so the first one gets excluded/overwritten.Am I using the Cypress adapter correctly? If so, is there a reason I can only write one interaction per test? Or is this a bug in the adapter?
Thanks!