Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

139
Vistas
Cypress - How to handle basic auth pop-up after click

I'm working on the automation of a ticket sales page for soccer matches. The web is in pre-production and for this reason it asks me for a basic auth when accessing to the page.

That's why when accessing I do the following command:

cy.visit('https://user:pass@tickets.demo.com/')

But currently the client has added another basic auth that appears in the payment gateway after pressing the pay button with a simple click.

In the previous version of the project, he magically ignore the pop-up and kept going, but recently I migrate to the latest version of Cypress and now the project crashes when I reach that step with an Authentication error. How can I handle it?

Researching a bit I have seen the following code but it only works after a visit command, but I need after a click.

cy.visit('your url', {
 auth: {
  username: 'enter username',
  password: 'enter password,          
 },
})

Old Cypress: 9.5.1 New Cypress: 10.8.0 Node: 8.13.2

almost 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda