Hi, I am putting this PR out as a feeler to see if there's interested in improving this error message, but the copy is by no means final and I am open to improvement suggestions. My intention here is to: - Explain what a "focused item" is - that we're talking about a test and it being focused is most likely down it using `only` Are there other types of "items"? Are there other ways to make them focused other than `only`? - Explain why we're even in focused mode and how to control it The default scaffolded Playwright config file includes a forbidMode expression driven by whether `CI=1` is set. I ran into this when trying to reproduce a CI issue locally so I had it set and unknowingly entered focus only mode. I wasn't aware this mode was a thing because I was using the default configuration from `npm init` and did not familiarize myself with all the options in it. Is there a way to tell if we're in a TypeScript or JavaScript project in this function? I would use that to display the configuration file name with the right extension. --------- Signed-off-by: Tomáš Hübelbauer <tomas@hubelbauer.net> |
||
|---|---|---|
| .. | ||
| android | ||
| assets | ||
| components | ||
| config | ||
| electron | ||
| image_tools | ||
| installation | ||
| library | ||
| page | ||
| playwright-test | ||
| stress | ||
| webview2 | ||
| index.d.ts | ||
| tsconfig.json | ||