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

249
Visualizações
Cypress JS, is there anyway to ignore some of the network Pending calls

Hi currently using cypress automation framework , when I visit the home page cy.visit('/'); some icons are missing and I pretty much don't care much about their existence since I am working in dev env. But cypress wont go to next step till either the status of those network calls changes to failed or cypress times out. Either way it fails. I was wondering if there is anyway to force cypress to ignore certain pending calls ?

these are the Pending network status

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You can use command cy.intercept() to stub a response for targeted calls.

cy.intercept('GET', '**/favicon.ico', { fixture: 'cat.png' });

So every calls to favicon.ico will immediately return anything you specify instead of waiting for the call to receive an answer. In my example, it will return a png of a cat I previously copied to my fixtures folder in cypress/integration/fixtures.

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