@cold-van-45410 I would use one of these
cy.get('yourSpinner', {timeout: 30000}).should('not.be.visible');
cy.get('yourSpinner', {timeout: 30000}).should('not.exist');
As "timeout" set as many milliseconds as you are willing to wait for the spinner to disappear before Cypress throws error