vendredi 25 mai 2018

How do you reliably wait for page idle in cypress.io test

When using cypress.io to test an angular web page, whats the best / most reliable way to detect when the page is fully loaded and idle. Not just the onload event. Needs to include all xhr requests, angular digest cycles complete and all rendering complete.

The reason is that at this point I want to test that the page does NOT contain an element and cant test that until all the above is fully complete.

Aucun commentaire:

Enregistrer un commentaire