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

121
Views
Cypress never finish load url

After fill out a form and clicking the submit button the url stays loaded, I think it may be a problem with the cypress browser

test.spect.js

describe("Fly search test", () => {
  it("search a fly", () => {
    const date= "25032022"
    cy.visit(
      "https://www.iberia.com/es/?_gl=1*1ayp8fc*_up*MQ..&gclid=Cj0KCQiAmKiQBhClARIsAKtSj-neqDTv4PYhWOYpXRBEoBkm7XiUJxp7UVTNYyN9JTWIZbVH8RD05AcaAlt9EALw_wcB"
    );
    cy.findByText("Aceptar todas las cookies").click();
    cy.selectCity('flight_origin',"MAD",/\(MAD\)/i);
    cy.selectCity('flight_destiny',"BCN",/\(BCN\)/i);
    cy.get('[id="ticketops-seeker-button"]').click();
    cy.findByRole('option', {
        name: /solo ida/i
    }).click()
    cy.findByText(/fecha id/i).click().type(date);
    cy.get('[id="buttonSubmit1"]').click();


  });
});

cypress.json

{
  "ignoreTestFiles": "**/examples/*",
  "viewportHeight": 1080,
  "viewportWidth": 1920,
  "chromeWebSecurity": false

}

commands.js

import "@testing-library/cypress/add-commands";

Cypress.Commands.add("selectCity", (place,departureCity,regex)=>{
    cy.get(`[name='${place}']`).click({force:true}).type(departureCity)
    cy.get(`[title]`).contains(regex).click()
})

loading-image

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