OK, I’ve got page transitions/animations going on, and when I take out the transition, the test passes. Strange though, because all my other tests involve page transitions, and work fine because Cypress waits for Dom elements to come into view.
Whats strange with this particular one, is that the animation from one page to the next doesn’t run during the test, while all others do.
So this has sent me in the direction of adding a new user feature…
Each change from one page to another involves a page transition, which I like, but might not be everyone’s cup of tea. So I’m going to add the option of turning transitions off and store the selection in local storage, which I can set in a before hook in my cypress tests so that they run without the transitions.
It is strange though, because the test should run fine with the transitions running…