Problem: You’re testing via @testling_lib, and you want to debug what you’re...


Problem: You’re testing via @testling_lib, and you want to debug what you’re testing in a browser.

Solution: screen.logTestingPlaygroundURL()

This logs a Testing Playground URL to the console that you can use to open your test in a browser.

It suggests queries on click too.

Note: There's a downside to this: It doesn't include your app's CSS, so the preview in the top-righthand box isn't styled.

View original on X