Skip to content

chore: track microsoft/playwright-cli - #26

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
track-playwright-cli_c872a33
Open

github-actions[bot] wants to merge 1 commit into
mainfrom
track-playwright-cli_c872a33

Conversation

@github-actions

Copy link
Copy Markdown

microsoft/playwright-cli 4bc00fb -> c872a33

Verdict: review

  • upstream changed files we rewrote (read the patches): CLAUDE.md, README.md, package.json

Commits

Mapped files (three-way merge)

file result
tests/integration/core.spec.ts unchanged

Files we rewrote (upstream patch, for reading)

CLAUDE.md (removed)

@@ -1,65 +0,0 @@
-## Build and test
-
-The CLI source lives in `microsoft/playwright`, in `packages/playwright-core/src/tools/`. This repo
-ships `@playwright/cli`: `playwright-cli.js` runs the CLI of the `playwright-core` alpha that
-`package.json` pins, and adds the update check, with `skillCheck.js`. `skills/playwright-cli/` is a
-copy of the skill that `playwright-cli install --skills` writes, and `node scripts/update.js`
-refreshes it.
-
-```bash
-npm ci
-npm test                                 # tests/integration.spec.ts
-npx playwright test -g "open data URL"
-```
-
-There is no build step and no lint. Tests are in `tests/integration.spec.ts`. They run
-`playwright-cli.js` with `runCli()` in the output directory of the test, and the `npmRegistry`
-fixture serves a fake registry for the update check. Add a case to the test whose setup is closest
-instead of a new test.
-
-## Commit Convention
-
-Semantic commit messages: `label(scope): description`
-
-Labels: `fix`, `feat`, `chore`, `docs`, `test`, `devops`
-
-```bash
-git checkout -b fix-39562
-# ... make changes ...
-git add <changed-files>
-git commit -m "$(cat <<'EOF'
-fix(proxy): handle SOCKS proxy authentication
-
-Fixes: https://github.com/microsoft/playwright/issues/39562
-EOF
-)"
-git push origin fix-39562
-gh pr create --repo microsoft/playwright --head username:fix-39562 \
-  --title "fix(proxy): handle SOCKS proxy authentication" \
-  --body "$(cat <<'EOF'
-## Summary
-- <describe the change very! briefly>
-
-Fixes https://github.com/microsoft/playwright/issues/39562
-EOF
-)"
-```
-
-Never add Co-Authored-By agents in commit message.
-Branch naming for issue fixes: `fix-<issue-number>`
-
-## Rolling Playwright and preparing a release
-
-See [.claude/skills/dev/roll.md](.claude/skills/dev/roll.md) and [.claude/skills/dev/release.md](.claude/skills/dev/release.md).
-
-## Bots
-
-Labels start GitHub Actions workflows that run the Copilot CLI and open pull requests as the
-`microsoft-playwright-automation` app:
-
-- `needs-triage`, `needs-triage-mac`, `needs-triage-win` on an issue: [triage.yml](.github/workflows/triage.yml) reproduces and fixes it, with the skill in [.claude/skills/playwright-triage/](.claude/skills/playwright-triage/SKILL.md). A fix in `microsoft/playwright` opens as a draft PR there.
-- `needs-revision`, `needs-revision-mac`, `needs-revision-win` on a PR that triage opened here: [revision.yml](.github/workflows/revision.yml) addresses the maintainers' review comments.
-- `needs-roll` on an issue: [roll.yml](.github/workflows/roll.yml) rolls Playwright to `playwright@next`, as the roll skill says.
-- `needs-release` on an issue: [release.yml](.github/workflows/release.yml) opens the `chore: mark v<version>` PR with the release notes as its description, as the release skill says. Copy the notes into the release draft.
-
-Apply a label again to start another run. [bots.md](https://github.com/microsoft/playwright/blob/main/.github/workflows/bots.md) in `microsoft/playwright` describes triage and revision.

README.md (modified)

@@ -15,7 +15,7 @@ This package provides CLI interface into Playwright. If you are using **coding a
 - **Token-efficient**. Does not force page data into LLM.
 
 ### Requirements
-- Node.js 18 or newer
+- Node.js 20 or newer
 - Claude Code, GitHub Copilot, or any other coding agent.
 
 ## Getting Started
@@ -334,6 +334,24 @@ playwright-cli close                    # close the browser
 playwright-cli delete-data              # delete user data for default session

+When attaching via the Playwright Extension, the session controls only the tabs selected by the
+user and the tabs it opens. These tabs form a group named after the session. Use --session-color
+to choose its color, or --no-tab-group to leave the tabs ungrouped:
+
+bash +playwright-cli attach --extension=chrome --session=finance --session-color=blue +playwright-cli -s=finance goto https://example.com +playwright-cli -s=finance detach # leave the tabs open; the group turns gray +
+
+Without --session, the session takes the browser name (chrome, msedge). To close all tabs
+of an extension session, including tabs selected by the user, use detach --close-tabs instead.
+Other tabs and the browser remain open:
+
+bash +playwright-cli -s=finance detach --close-tabs +
+

Snapshots

After each command, playwright-cli provides a snapshot of the current browser state.
@@ -422,7 +440,7 @@ playwright-cli kill-all # forcefully kill all browser processes

Local installation

-If global playwright-cli command is not available, try a local version via npx playwright cli:
+If global playwright-cli command is not available, try a local version via npx playwright cli. It needs Playwright 1.59 or newer:

npx --no-install playwright --version
@@ -634,7 +652,7 @@ The installed skill includes detailed reference guides for common tasks:
* **Running and Debugging Playwright tests** — run, debug and manage Playwright test suites
* **Request mocking** — intercept and mock network requests
* **Running Playwright code** — execute arbitrary Playwright scripts
-* **Browser session management** — manage multiple browser sessions
+* **Browser session management** — manage multiple browser sessions and attach to the user's browser
* **Storage state (cookies, localStorage)** — persist and restore browser state
* **Test generation (plan / generate / heal)** — generate Playwright tests from a spec or interactions
* **Tracing** — record and inspect execution traces

package.json (modified)

@@ -1,14 +1,14 @@
 {
   "name": "@playwright/cli",
-  "version": "0.1.23",
+  "version": "0.1.25",
   "description": "Playwright CLI",
   "repository": {
     "type": "git",
     "url": "git+https://github.com/microsoft/playwright-cli.git"
   },
   "homepage": "https://playwright.dev",
   "engines": {
-    "node": ">=18"
+    "node": ">=20"
   },
   "author": {
     "name": "Microsoft Corporation"
@@ -18,12 +18,12 @@
     "test": "playwright test"
   },
   "devDependencies": {
-    "@playwright/test": "1.66.0-alpha-1793916328000",
+    "@playwright/test": "1.66.0-alpha-2026-11-18",
     "@types/node": "^25.2.1"
   },
   "dependencies": {
-    "playwright": "1.66.0-alpha-1793916328000",
-    "playwright-core": "1.66.0-alpha-1793916328000"
+    "playwright": "1.66.0-alpha-2026-11-18",
+    "playwright-core": "1.66.0-alpha-2026-11-18"
   },
   "bin": {
     "playwright-cli": "playwright-cli.js"

Other upstream files

  • .claude/skills/playwright-triage/SKILL.md (removed)
  • .github/actions/setup-triage-runner/action.yml (removed)
  • .github/workflows/agent-release.yml (added)
  • .github/workflows/agent-review.yml (added)
  • .github/workflows/agent-roll.yml (added)
  • .github/workflows/agent-task.yml (added)
  • .github/workflows/agent-triage.yml (added)
  • .github/workflows/release.yml (removed)
  • .github/workflows/revision.yml (removed)
  • .github/workflows/roll.yml (removed)
  • .github/workflows/triage.yml (removed)
  • AGENTS.md (added)
  • package-lock.json (modified)
  • skills/playwright-cli/SKILL.md (modified)
  • skills/playwright-cli/references/session-management.md (modified)

CI on this branch: failure (run)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants