'how to handle in cypress "Checking your browser before accessing app.hubspot.com"

When I run the following cypress script:

describe('Handle Service Unavailable and Uncaught Exception', ()=>{
it('handle the hubspot login test', ()=>{
    cy.visit('https://app.hubspot.com/login', { failOnStatusCode: false})
    cy.wait(5000)
    cy.get('#username').should('be.visible').type('[email protected]')
    cy.get('#password').should('be.visible').type('xxxxx@g123')
    cy.get('#loginBtn').should('be.visible').click()

})

})

https://app.hubspot.com/login URL stuck at message enter image description here

Hence not able to get the #username field and type the username details.



Solution 1:[1]

You cant directly got to login page and try below.

it('handle the hubspot login test', ()=>{
    cy.visit('https://www.hubspot.com/');
    cy.get('.homepage-nav-login').click();
})

This worked for me.

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Umesh Sulakude