Cypress - mid test the framework randomly goes to Your Test are loading

Viewed 23

Cypress goes through half of my test script until it comes time to fill up a form and click the submit button then it randomly crashes and shows the initial loading screen "your tests are loading...". I have tried clicking on other buttons after filling out the form, and this doesn't happen. I was wondering if anyone has experienced this before or if there is a workaround. I have tried using different attributes and ways to click on the button (still the same result) and put a wait after filling up the form (the wait time gets executed and still crashes).

Sample code

cy.contains(‘Check availability’).click();

cy.getBySelTestID(‘submit-button’)

cy.getBySelTestID(‘address-inputbox’).type(‘Random Address’);

// where the crash happens after typing in the address
cy.contains(‘Check address’).click()
0 Answers
Related