playwright/packages
Tomáš Hübelbauer e550df060e
Enhance the forbidOnly mode message to guide the user towards the configuration option (#23146)
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>
2023-05-25 13:32:49 -07:00
..
html-reporter fix(html): fix the filter to respect status (#23208) 2023-05-22 15:35:19 -07:00
playwright chore: cut v1.34.0 (#23121) 2023-05-17 19:05:38 -07:00
playwright-chromium chore: cut v1.34.0 (#23121) 2023-05-17 19:05:38 -07:00
playwright-core feat(chromium): roll to r1065 (#23281) 2023-05-25 13:04:36 -07:00
playwright-ct-core chore: move transform to its own folder (for loader worker) (#23247) 2023-05-23 21:05:33 -07:00
playwright-ct-react chore: cut v1.34.0 (#23121) 2023-05-17 19:05:38 -07:00
playwright-ct-react17 chore: cut v1.34.0 (#23121) 2023-05-17 19:05:38 -07:00
playwright-ct-solid chore: cut v1.34.0 (#23121) 2023-05-17 19:05:38 -07:00
playwright-ct-svelte feat(ct): svelte partial update (#23193) 2023-05-22 13:18:56 -07:00
playwright-ct-vue chore: cut v1.34.0 (#23121) 2023-05-17 19:05:38 -07:00
playwright-ct-vue2 chore: cut v1.34.0 (#23121) 2023-05-17 19:05:38 -07:00
playwright-firefox chore: cut v1.34.0 (#23121) 2023-05-17 19:05:38 -07:00
playwright-test Enhance the forbidOnly mode message to guide the user towards the configuration option (#23146) 2023-05-25 13:32:49 -07:00
playwright-webkit chore: cut v1.34.0 (#23121) 2023-05-17 19:05:38 -07:00
protocol/src feat(screenshot): Add customizable color option for masked elements (#23185) 2023-05-22 18:44:44 -07:00
recorder chore(internal): generate code in jsonl (#23124) 2023-05-20 10:15:33 -07:00
trace/src chore: add string attachments to trace (#22921) 2023-05-11 16:32:32 -07:00
trace-viewer feat(trace): instantiate consoleAPI in popout with correct testIdAttribute (#23238) 2023-05-23 12:17:26 -07:00
web chore(internal): generate code in jsonl (#23124) 2023-05-20 10:15:33 -07:00
.eslintrc-with-ts-config.js lint: prevent object string concatenation (#23172) 2023-05-19 15:17:43 -07:00
.eslintrc.js lint: prevent object string concatenation (#23172) 2023-05-19 15:17:43 -07:00