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

Plugin seems to be interfering with cypress cy.request #270

Open
nishant-shah-social opened this issue Dec 1, 2024 · 1 comment
Open

Comments

@nishant-shah-social
Copy link

I started using this plugin in my tests. But, seems like the plugin is interfering with tests where I am using cy.request.
I have a very simple test, where it makes cy.request and inside then block it verifies whether response header has specific content-type.
However, when I have this plugin enabled, I get following error in the test

CypressError: Cypress detected that you returned a promise from a command while also invoking one or more cy commands in that promise.

The command that returned the promise was:

  > `cy.request()`

The cy command you invoked inside the promise was:

  > `cy.wait()`

Any pointers why this could be happening?

Thanks!

@archfz
Copy link
Owner

archfz commented Dec 1, 2024

@nishant-shah-social There are automated tests for this so I expect simple case to work. You might have some particular case. Could you provide a reproducible example?

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

No branches or pull requests

2 participants