Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

103
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda