Hi! I'm newbye in cypress.
I'm starting to make simple test like visit pages and click buttons.
My app is made ionic/vue3, when i cy.visit('/login') the page load but cypress is still waiting and the UI is freeze, i must close and re run.
The same happend in various scenario, like click a button.
Maybe Cypress are waiting something?
Thanks
wooden-helmet-43105
03/21/2023, 4:43 PM
This seem to work randomly without errors...
wooden-helmet-43105
03/22/2023, 9:00 AM
If there aren't errors seem to work, but if there are warnings or errors in js the UI freeze and i can't know if something wrong :/ i can't see the console
e
enough-truck-68085
03/22/2023, 10:34 PM
Hi @wooden-helmet-43105
Can you please provide some code/screenshot examples of exactly your problem? Your query is a bit generic and additional details would help.
Additionally, you can always open up DevTools in the test runner and look for any application errors or network calls to grab additional information too.
@nutritious-restaurant-91514 has a wonderful (and timely) article about waiting on a page that could also help. So shoutout there.
https://filiphric.com/how-to-wait-for-page-to-load-in-cypress
w
wooden-helmet-43105
03/23/2023, 8:19 AM
Thank you for the reply @enough-truck-68085 , you are right i should provide you some code examples to reproduce the issue. My app is bit complex so i can't share the code. However now i solve the issue fixing some warning and rebooting several times cypress. When i was the issue i was unable to start devTools, the window was completely blocked. Cypress was waiting to events but the warnings blocked the mechanism is some way.
e
enough-truck-68085
03/23/2023, 2:52 PM
Although I don't fully understand what your issue or problem was, I'm happy you got it resolved.