https://cypress.io logo
Cypress continue to load or wait for events, UI fr...
# i-need-help
w
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
This seem to work randomly without errors...
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
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
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
Although I don't fully understand what your issue or problem was, I'm happy you got it resolved.
3 Views