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

Cypress tests failing in action #654

Closed
dkonieczek opened this issue Sep 23, 2022 · 2 comments
Closed

Cypress tests failing in action #654

dkonieczek opened this issue Sep 23, 2022 · 2 comments
Labels
type: bug Something isn't working

Comments

@dkonieczek
Copy link
Contributor

dkonieczek commented Sep 23, 2022

In some cases cypress tests will pass locally but fail when running in the cloud. After some debugging I came across this familiar error:

Automatic publicPath is not supported in this browser

This occurs when code splitting is enabled and the browser cannot determine the host of where to fetch the chunk files. This can be confirmed by disabling code splitting for bundle.js in webpack.dev.js and then the tests pass in the cloud.
The root cause seems to be due to using webpack 5 with this version of cypress but we have other sites that are working so something else may be causing this. Creating this issue to further investigate or how we want to handle this. Cypress just a few days ago released the fix to this and it looks like they're disabling code splitting so that may be an option we could consider (just for the modern bundle.js in webpack.dev.js)

Related links with some workarounds I couldn't get to work:
cypress-io/cypress#8900
cypress-io/cypress#18435 (comment)

@dkonieczek dkonieczek added the type: bug Something isn't working label Sep 23, 2022
@korgon
Copy link
Contributor

korgon commented Oct 21, 2022

First thing to do should be to test updating Cypress on site in question.

@korgon
Copy link
Contributor

korgon commented Apr 19, 2023

No longer an issue.

@korgon korgon closed this as completed Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants