0👍
✅
Nothing worked, so I contacted our developers and they finally found another solution for the Search form. Now it works fine in Cypress.
Thanks to all of you!
0👍
Make sure your form isn’t reloading or doing something right before you click the search button. I had a similar issue when I couldn’t click a checkbox unless I waited a second or 2 for the form to load. I am using angular and haven’t found a better way to wait for observables and the like using Cypress so I used a simple cy.wait(1000)
.
Source:stackexchange.com