https://cypress.io logo
what are the common problems I should check when m...
# e2e-testing
j
what are the common problems I should check when my e2e UI of Cypress is freezing after app login:
Copy code
Cypress.Commands.add('loginViaUI', (
    email = Cypress.env('userEmail'),
    password = Cypress.env('userPassword')
  ) => {
    cy.visit(`/login`)
    cy.get('input[type="text"]').type(Cypress.env('userEmail'))
    cy.get('input[type="password"]').type(Cypress.env('userPassword'))
    cy.get('button.bg-primary').click()
  })
then in page test I do
Copy code
describe('Orders page', () => {
    beforeEach(() => {
         cy.loginViaUI()
         ...
login passes and then UI of Cypress is freezing
2 Views