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

104
Views
Cypress atascado en la promesa y se agota el tiempo

Aquí hay una versión simplificada de lo que estoy haciendo:

 it.only("replicate issue", () => { cy.wrap(1).then((num) => { return new Cypress.Promise((resolve) => { expect(num).to.equal(1); cy.wrap(num) .then(() => { // THIS DOES NOT GET LOGGED console.info("...well... then..."); return 2; }) .then(resolve); }); }); //.then(... I want to do more stuff with the value resolved by the promise) });

Todo parece ir bien hasta cy.wrap(num) donde la devolución de llamada del método encadenado .then() nunca se llama. cy.then() timed out after waiting 4000ms .

¿Cómo es que sucede esto y qué puedo hacer para que Cypress continúe con la ejecución?

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!