Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token request not stubbed when running tests on production environment #16

Open
stephane-dereppe opened this issue Jun 27, 2020 · 0 comments

Comments

@stephane-dereppe
Copy link

Hi,

Thanks a lot for your lib. Using the kcFakeLogin , we have speeded up our test execution.

When I run the tests against a local running application (ng serve). It works like a charm. (See stubbing of the /token request)

image

But if I run the tests against the production runtime (build with ng build --prod), the token request is not stubbed.

image

image

I though it was related to the fact that Cypress cannot stub fetchrequest. See this issue.

The Cypress team recently added an experimental feature to allow fetch request stubbing. (see doc here) but it doesn't seem to change anything. My fetch request is still not stubbed.

Do you have any idea why it doesn't work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant