Giter Club home page Giter Club logo

Comments (5)

jagregory avatar jagregory commented on May 18, 2024

Interestingly, all the failures also report that they timed out after waiting only 4000ms despite my tests specifying custom timeouts for them all.

Screen Shot 2019-09-28 at 2 45 45 pm

Screen Shot 2019-09-28 at 2 45 39 pm

Screen Shot 2019-09-28 at 2 45 32 pm

Each one of those failed with a CypressError: cy.then() timed out after waiting '4000ms'. message.

from cypress-testing-library.

jagregory avatar jagregory commented on May 18, 2024

After a bit of digging, it looks like maybe ab5263d introduced a bug.

Previously there was this code:

.window({log: false})
.then({timeout: waitOptions.timeout + 100}, thenHandler)

but the then has been replaced and doesn't retain the timeout option.

Tentative testing with the timeout re-added seems to have fixed the issue of timeouts not being respected (see: jagregory@d7fe43e). I'm unsure whether this also fixes the incorrect failure messages (I assume that's what the + 100 is for)

from cypress-testing-library.

jagregory avatar jagregory commented on May 18, 2024

I can confirm that with the above mentioned change, if a legitimate timeout occurs I now get the expected message. For example: CypressError: Timed out retrying: Expected to find element: '#option-1', but never found it.

from cypress-testing-library.

kentcdodds avatar kentcdodds commented on May 18, 2024

🎉 This issue has been resolved in version 5.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

from cypress-testing-library.

Jmaharman avatar Jmaharman commented on May 18, 2024

We did have tests to check the timeouts were adhered to, I imagine a scenario was being missed.

@jagregory would you be able to add a test which shows the initial failure? It would be good to have a test in the suite to confirm this doesn't get broken again.

from cypress-testing-library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.