Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ playwright-cli video-start [filename] # start video recording
playwright-cli video-chapter <title> # add a chapter marker to the video
playwright-cli video-stop # stop video recording
playwright-cli show # open the visual dashboard
playwright-cli annotate # launch dashboard for UI review / design feedback
playwright-cli show --annotate # launch dashboard with annotation prompt
playwright-cli generate-locator <ref> # generate a playwright locator for an element
playwright-cli highlight <ref> # show a persistent highlight overlay
playwright-cli highlight <ref> --style= # highlight with a custom CSS style
Expand Down
26 changes: 13 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"test": "playwright test"
},
"devDependencies": {
"@playwright/test": "1.60.0-alpha-1777566615000",
"@playwright/test": "1.60.0-alpha-1777575331000",
"@types/node": "^25.2.1"
},
"dependencies": {
"playwright": "1.60.0-alpha-1777566615000"
"playwright": "1.60.0-alpha-1777575331000"
},
"bin": {
"playwright-cli": "playwright-cli.js"
Expand Down
8 changes: 4 additions & 4 deletions skills/playwright-cli/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ playwright-cli video-start video.webm
playwright-cli video-chapter "Chapter Title" --description="Details" --duration=2000
playwright-cli video-stop

# launch the dashboard for UI review / design feedback — user annotates the page, you receive the annotated screenshot, snapshot, and notes
playwright-cli annotate
# launch the dashboard with annotation prompt to ask the user for input
playwright-cli show --annotate

# generate a Playwright locator for an element from its ref or selector
playwright-cli generate-locator e5 --raw
Expand Down Expand Up @@ -367,11 +367,11 @@ playwright-cli close

## Example: Interactive session

Ask the user for UI review or design feedback. The user draws boxes on the live page and types comments; you receive the annotated screenshot, the snapshot of the marked region, and the user's notes. Use this whenever the user asks for "UI review", "design feedback", or to "ask the user what they think / want / mean":
Ask the user to annotate the UI. User can provide contextual tasks or ask contextual questions using annotations:

```bash
playwright-cli open https://example.com
playwright-cli annotate
playwright-cli show --annotate
```

## Specific tasks
Expand Down
4 changes: 2 additions & 2 deletions skills/playwright-cli/references/spec-driven-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ playwright-cli resume # resume so that seed test runs fully
playwright-cli snapshot # inventory of interactive elements
playwright-cli click e5 # follow a flow
playwright-cli eval "location.href" # read URL / state
playwright-cli annotate # ask the user to point at something
playwright-cli show --annotate # ask the user to point at something
```

Map out:
Expand Down Expand Up @@ -262,7 +262,7 @@ The test is paused at the start. Step forward or run to until just before the fa
playwright-cli snapshot # did the element change / move / rename?
playwright-cli console # app-side errors?
playwright-cli network # failed request? wrong payload?
playwright-cli annotate # ask the user to point somewhere
playwright-cli show --annotate # ask the user to point somewhere
```

Common causes: selector drift, new wrapper element, label/ARIA rename, timing (transition, async load), assertion text updated in the app, test data leaking between runs.
Expand Down
Loading