I can use test.only for debugging api tests, but when I try to use it for ui tests I get the following error
[email protected] test npx playwright test dashboard.ui.spec.js
TypeError: Cannot read properties of undefined (reading '_hasTests')
Is there something i need to update in the playwright config?
This thread is trying to answer question "Why does 'test.only' only work with API tests and not UI tests, and how can this issue be resolved?"
nothing to be updated in config for .only
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].