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

102
Vistas
header not visible issue

oWhen i scroll a page, the main menu header is visible. cy.get('.myclass').scrollIntoView().within(() => { cy.get('.scroll').scrollTo('bottom') cy.get('.header-nav').should('not.exist') cy.get('.scroll').scrollTo('top') cy.get('.header-nav', {withinSubject: null}) })

Instead of , {withinSubject: null}) i want to use should('exist') but the test is failing when i use exist but pass when i use , {withinSubject: null})..Even with should be visible its failing.

First the header is showing like this in cypress: enter image description here - Its overlapping on the top This is my html for the header: enter image description here

What am i doing wrong or why is {withinSubject: null}) working and not others. When the site opens the header is present so when i use exist it works but once i check on the scroll the header does not work with exist. Also when i am scrolling down the header should not be visible but it is still visible even though when i do the same thing manually it works. Only having this behavior in cypress. Thank you

about 4 years ago · Juan Pablo Isaza
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