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

Sometimes CSS interception works, sometimes does not #573

Merged
merged 2 commits into from
Sep 29, 2020

Conversation

bahmutov
Copy link
Contributor

using cy.route2 in file examples/stubbing-spying__route2/cypress/integration/stub-fetch-spec.js
to add CSS to styles.css used by the app

Sometimes it works

Screen Shot 2020-09-29 at 3 28 27 PM

but other times it does not

Screen Shot 2020-09-29 at 3 38 53 PM

seems the response body is empty? Maybe caching in the browser?

@bahmutov bahmutov requested a review from flotwig September 29, 2020 19:51
@bahmutov
Copy link
Contributor Author

Also cypress-io/cypress#8694

@bahmutov
Copy link
Contributor Author

made it work by removing caching headers when forwarding the request to the server

@bahmutov bahmutov marked this pull request as ready for review September 29, 2020 20:14
@bahmutov bahmutov merged commit 47deaff into master Sep 29, 2020
@emilyrohrbough emilyrohrbough deleted the intercept-css-using-route2 branch November 22, 2022 20:04
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

Successfully merging this pull request may close these issues.

1 participant