Rayrun
← 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.

image.png

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

image.png

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')

too!

Probably regression, file an issue on github

Related Discord Threads

TwitterGitHubLinkedIn
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 [email protected].