Skip to content

test(cli): cover the session options before the command - #521

Merged
Pavel Feldman (pavelfeldman) merged 1 commit into
mainfrom
triage/505/42092152959-1
Nov 5, 2026
Merged

Pavel Feldman (pavelfeldman) merged 1 commit into
mainfrom
triage/505/42092152959-1

Conversation

@microsoft-playwright-automation

@microsoft-playwright-automation microsoft-playwright-automation Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • The update and skill checks took the first non-option token as the command, so -s foo list skipped them and -s list snapshot ran them. Since chore: roll Playwright to 1.66.0-alpha-1793916328000 #523 the command comes from the arguments parsed with the core's parseArgs(), which fixes this.
  • Document the -s name and --session name forms, and extend the update-check and skill-warning tests: a session before the command warns about a stale skill and checks for updates, -s list snapshot makes no registry request and writes no cache, and --session list install --skills keeps the install exemption.

Fixes #505

@pavelfeldman
Pavel Feldman (pavelfeldman) marked this pull request as ready for review November 5, 2026 22:40
The update and skill checks took the first non-option token as the
command, so `-s foo list` skipped them and `-s list snapshot` ran them.
Since #523 the command comes from the parsed arguments. Document the
space-separated session forms and extend the update-check and
skill-warning tests.

Fixes: #505
@pavelfeldman Pavel Feldman (pavelfeldman) changed the title fix(cli): parse session options before checking for updates test(cli): cover the session options before the command Nov 5, 2026
@pavelfeldman
Pavel Feldman (pavelfeldman) merged commit 4bc00fb into main Nov 5, 2026
7 checks passed
@pavelfeldman
Pavel Feldman (pavelfeldman) deleted the triage/505/42092152959-1 branch November 5, 2026 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update/skill check misdetects the command when the session is passed as -s <name> or --session <name>

1 participant