Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs(cli): replace toBeUnchecked() with not.toBeChecked() in the skill (#43465)

Pablo De Chiaro Rosa95b14e262198
diff --git a/packages/playwright-core/src/tools/skills/playwright-cli/references/test-generation.md b/packages/playwright-core/src/tools/skills/playwright-cli/references/test-generation.md
index 33ae38be7b..49c76d2991 100644
--- a/packages/playwright-core/src/tools/skills/playwright-cli/references/test-generation.md
+++ b/packages/playwright-core/src/tools/skills/playwright-cli/references/test-generation.md
@@ -86,7 +86,7 @@ Generated code captures actions but not assertions. Add expectations in your tes
- `toBeVisible()` — element is rendered and visible
- `toHaveText(text)` — element text content matches
- `toHaveValue(value) / toBeEmpty()` — input/select value matches
-- `toBeChecked() / toBeUnchecked()` — checkbox state matches
+- `toBeChecked() / not.toBeChecked()` — checkbox state matches
- `toMatchAriaSnapshot(snapshot)` — page (or locator) matches a partial accessibility snapshot
Use `playwright-cli generate-locator <target>` to produce the locator expression for the assertion, and the snapshot/eval commands to capture the expected value.