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

Enable stubbing all kinds of HTTP requests (not just XHR) #192

Closed
shauvik opened this issue Jul 18, 2016 · 3 comments
Closed

Enable stubbing all kinds of HTTP requests (not just XHR) #192

shauvik opened this issue Jul 18, 2016 · 3 comments
Labels
type: duplicate This issue or pull request already exists

Comments

@shauvik
Copy link

shauvik commented Jul 18, 2016

Currently, cypress can only stub out XHRs but it would be great if it also did the same for static resources like js files.

In our case, we would like to stub a static js file URL that returns test content to check if our server-side code behaves well or fails in a reliable fashion if the js is an older/non-standard version.

@jennifer-shehane jennifer-shehane added the type: feature New feature that does not currently exist label Jul 19, 2016
@brian-mann
Copy link
Member

brian-mann commented Aug 31, 2016

We've laid the groundwork to now make this possible in 0.17.0. We need to now add the API's to control this behavior. It's on our radar.

@brian-mann brian-mann changed the title Update proxy to also stub non-XHR resources Enable stubbing all kinds of HTTP requests (not inclusive to XHR) Sep 21, 2016
@brian-mann brian-mann changed the title Enable stubbing all kinds of HTTP requests (not inclusive to XHR) Enable stubbing all kinds of HTTP requests (not exclusive to XHR) Sep 21, 2016
@brian-mann brian-mann changed the title Enable stubbing all kinds of HTTP requests (not exclusive to XHR) Enable stubbing all kinds of HTTP requests (not just XHR) Sep 21, 2016
@paulpruteanu
Copy link

Any update on this one?

@brian-mann
Copy link
Member

Closing this in favor of this proposal which goes into a lot more detail: #687

@jennifer-shehane jennifer-shehane added type: duplicate This issue or pull request already exists and removed type: feature New feature that does not currently exist labels Nov 1, 2017
@cypress-io cypress-io locked as resolved and limited conversation to collaborators Dec 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants