Closed farisT closed 3 years ago
apimock uses a cookie to make sure that parallel tests don't intervene with each other. Therefor a page needs to be opened before you select a scenario.
Here you navigate after the selection of the scenario.
This issue has been resolved in the new version of ngapimock.
@mdasberg Thank you for this. We have updated to the new ngapimock and that did the trick 👍
Hi,
I am having trouble changing scenarios in a test. At the moment I have these e2e tests:
In the
Error Scenario
describe I change the scenario of the api-mock tointernalServerError
however the scenario does not change and therefore the tests in that describe fail. What is interesting is that when Ifdescribe
the error scenario (aka only run those tests) it does successfully change the scenario and the tests pass. Not sure what is going wrong.Node version: 12.13.1 Angular: 7.2.0 ng-apimock: 1.4.9 protractor: 5.4.9 (have also tried with 7.0.0)