screen.openTestingPlayground()? 🤔
See original GitHub issueOk ok, get here’s my idea… Often I tell people: “Add a screen.debug() and copy/paste the HTML output into testing-playground.com”
What if…
screen.openTestingPlayground()
And it just opened a testing playground with all their HTML set in there automatically??? Thoughts on this idea? Good/bad? I’m sure it could be improved… Just a random thought I had.
cc @smeijer
Issue Analytics
- State:
- Created 3 years ago
- Reactions:14
- Comments:14 (10 by maintainers)
Top Results From Across the Web
Testing Playground
Simple and complete DOM testing playground that encourage good testing practices.
Read more >About Queries | Testing Library
About Queries. Overview. Queries are the methods that Testing Library gives you to find elements on the page. There are several types of ......
Read more >react-testing-library: some portion of debug's output is not visible
The second argument of the debug() function can be used to set maxLengthToPrint . ... import {render, screen} from '@testing-library/react' ...
Read more >Getting started with React Testing Library - Diogo Redin
Sometimes it might be useful to see what elements are present in the DOM. To do so we can use the screen.debug() instruction...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I started to use logPlaygroundUrl and i quickly found that im copying and pasting the url to see whats what. Immediately i tried to write a helper to open (npm package open) the url automatically in the browser.
Any chance of exposing the URL under some method, or maybe even better, passing
{ open: true }intoscreen.logTestingPlaygroundURL()to save a lot of time and clicks?has anyone picked this up? If not, I can pick it up 😃