I am using Cypress to run a test, I sent one email to the other then sign into the second email to see if the email was sent. Unfortunately though at the bottom of the below code the webpage in Cypress turns to blank. Any idea why and what I can do to fix it?
it('Send email', function () {
cy.visit('https://login.yahoo.com/?.src=ym&pspid=159600001&activity=mail-direct&.lang=en-GB&.intl=uk&.done=https%3A%2F%2Fuk.mail.yahoo.com%2Fd');
cy.get('.phone-no').type('//password here{enter}');
cy.get('.password').type('//password here{enter}');
Cypress.on('uncaught:exception', (err, runnable) => {
return false
})
cy.get('.e_dRA').eq(0).click();
Cypress.Commands.add('typeTab', (shiftKey, ctrlKey) => {
cy.focused().trigger('keydown', {
keyCode: 9,
which: 9,
shiftKey: shiftKey,
ctrlKey: ctrlKey
})
})
cy.get('.select-input').eq(1).type('//email here');
cy.get('[role="textbox"]').type('Hi Second Email, the weather will be 10oc plus in the following destinations - Regards, First Email');
cy.get('[title="Send this email"]').click();
cy.get('[data-test-id="primary-btn"]').click();
cy.get('._yb_1golm').click();
cy.get('[data-soa="Sign out of all"]').click();
cy.get('[data-redirect-params="pspid=[[pspid]]&activity=ybar-signin"]').click();
cy.get('.pure-button').eq(1).click();
//Crashes here
});```