← Back to Discord Forum

Using .only causes no tests to be run in 1.37

Does anyone else have the same problem? I updated to 1.37 and now if I mark a test or a describe block with .only then the runner executes 0 tests. I've downgraded back to 1.36.2 for now to get around it.


This thread is trying to answer question "Why does marking a `test` or a `describe` block with `.only` result in no tests being run after updating to 1.37?"

4 replies

I am not having that issue, I am still using the old playwright.config.ts in this project not defineConfig


For me, this error occurs when using test.only with 1.37.

Uncaught TypeError: Cannot read properties of undefined (reading '_hasTests')

I try to reproduce minimally, but can't reproduce.

I get:

TypeError: Cannot read properties of undefined (reading '_hasTests')


Probably regression, file an issue on github

Related Discord Threads

AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

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 luc@ray.run.