Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

237
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!