You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tl;dr: app-vite 2.0.0-beta.14 broke my Cypress Component tests but I found the fix
Hi,
I upgraded to the @quasar/app-vite 2.0.0-beta.14, but unfortunately, it broke my Cypress components tests. (i'm using @quasar/quasar-app-extension-testing-e2e-cypress)
My problem was that my public folder wasn't properly served to my tests through de devServer
I really struggled finding the solution but in the end I managed to fix it. This issue was caused by a discrepancy between Cypress 13 and Vite 5.
Solution
You need to add devServerPublicPathRoute: '' to the component section of the cypress.config.ts.
Hey there, can you provide some more context on the problem and a way to reproduce it?
Cause I saw this kind of problems a couple times already, and every time we find a fix with Cypress team something breaks and we're forced to change our behavior
We need to discuss this with Cypress team again I guess
tl;dr:
app-vite 2.0.0-beta.14
broke my Cypress Component tests but I found the fixHi,
I upgraded to the
@quasar/app-vite 2.0.0-beta.14
, but unfortunately, it broke my Cypress components tests. (i'm using@quasar/quasar-app-extension-testing-e2e-cypress
)My problem was that my
public
folder wasn't properly served to my tests through dedevServer
I really struggled finding the solution but in the end I managed to fix it. This issue was caused by a discrepancy between Cypress 13 and Vite 5.
Solution
You need to add
devServerPublicPathRoute: ''
to thecomponent
section of thecypress.config.ts
.I found the solution in this Cypress README:
https://github.com/cypress-io/cypress/tree/develop/npm/vite-dev-server#devserverpublicpathroute-for-vite-v5
The documentation should probably mention this.
Here is my new
cypress.config.ts
I also mentionned this in the
app-vite-beta
discussion hereThe text was updated successfully, but these errors were encountered: