Cy.visit() fails to load data from any web address, local or otherwise #21296
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I did find a solution. As it turns out, To sidestep this, I set up a new make command to run Further, for anyone who's app runs in Tauri, you'll have to expect an exception to be thrown about Adding this to the top of the integration test file or a helper file should keep the test from failing outright to the uncaught exception:
|
Beta Was this translation helpful? Give feedback.
I did find a solution. As it turns out,
cy.visit()
does not work in my app's current test suite configuration. Our command runsyarn run test:unit:cy
which opens cypress in unit testing mode?To sidestep this, I set up a new make command to run
yarn run cypress open
, where none of the unit test will run apparently, butcy.visit()
runs quite happily.Further, for anyone who's app runs in Tauri, you'll have to expect an exception to be thrown about
window.__TAURI_IPC__ is not a function
.Adding this to the top of the integration test file or a helper file should keep the test from failing outright to the uncaught exception: