playwright/tests
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
..
android devops: do not upload test-results artifacts (#23168) 2023-05-19 13:06:42 -07:00
assets fix: React selectors should work after unmount (#22750) 2023-05-10 06:18:01 -07:00
components fix(ct): solid typecheck (#22799) 2023-05-03 13:53:46 -07:00
config chore: explicit server mode control (#23215) 2023-05-23 10:56:37 -07:00
electron devops: do not upload test-results artifacts (#23168) 2023-05-19 13:06:42 -07:00
image_tools chore: fix typos (#20473) 2023-01-30 09:53:28 +01:00
installation chore: ignore SIGINT inside driver process (#23028) 2023-05-17 01:44:17 +02:00
library test: skip connecting 20 times on non-linux (#23239) 2023-05-23 12:16:22 -07:00
page test: enable passing request type test (#23273) 2023-05-25 09:43:41 -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
stress chore: fix typos (#20473) 2023-01-30 09:53:28 +01:00
webview2 devops: do not upload test-results artifacts (#23168) 2023-05-19 13:06:42 -07:00
index.d.ts test: added tests for WebSocket over Socks proxy (#7235) 2021-06-24 18:50:16 +02:00
tsconfig.json chore: render test steps in the trace (#22837) 2023-05-05 15:12:18 -07:00