question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

automatically call screen.debug() if there's a timeout in waitFor

See original GitHub issue

This would be particularly nice for waitForElementToBeRemoved (which would benefit from this being added to waitFor) because then people could easily see what the DOM looks like and maybe why the element has not been removed.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
kentcdoddscommented, Jun 22, 2020

Maybe we can have an onTimeout option that defaults to call screen.debug() 😃

0reactions
kentcdoddscommented, Jun 24, 2020

🎉 This issue has been resolved in version 7.18.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

About Queries | Testing Library
As elements appear and disappear in response to actions, Async APIs like waitFor or findBy queries can be used to await the changes...
Read more >
React Testing Library's waitFor not working - Stack Overflow
I found the answer here: React Testing Library - using 'await wait()' after fireEvent. TLDR: "You can not use wait with getBy*.
Read more >
How to use React Testing library to wait for async elements, a ...
A guide on how to use React Testing Library's to wait for and test asynchronously loaded elements. Contains code examples and a step-by-step ......
Read more >
Common mistakes with React Testing Library - Kent C. Dodds
Hi there I created React Testing Library because I wasn't satisfied with the testing ... You can also call screen.debug instead of debug....
Read more >
Xcode 11 hangs while attaching debugger to ios process
If I launch the app on the phone and attempt to attach the debugger from ... screen to the main screen but nowhere...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found