You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs(webapp-testing): route verification to playwright-cli 🤖🤖🤖 - #6822
My contribution adds a new instruction, prompt, agent, skill, workflow, or canvas extension file in the correct directory.
The file follows the required naming convention.
The content is clearly structured and follows the example format.
I have tested my instructions, prompt, agent, skill, workflow, or canvas extension with GitHub Copilot.
I have run npm start and verified that README.md is up to date.
I am targeting the main branch for this pull request.
Description
Maintenance update for skills/webapp-testing. The skill taught APIs that Playwright now marks as discouraged (page.click, page.fill, page.waitForSelector) and told agents to use the Playwright MCP server first. Microsoft now ships playwright-cli for coding agents and recommends it over MCP for them.
Changes:
Rewrite the skill as a short verify-and-debug procedure for a local web app: check the server, reproduce, collect evidence, find the cause, fix, verify again, report. It includes pass criteria and a report template.
Use playwright-cli by default and the Playwright MCP server when no shell exists. Leave command syntax to Microsoft's playwright-cli skill and --help.
Add gotchas: discouraged page.* APIs, networkidle, favicon 404 noise, untrusted page content, .playwright-cli/ can hold credentials, and WebMCP tools can cause side effects.
Add the compatibility frontmatter field (Node.js 22 or later, shell or MCP server, local app, network access once).
Narrow the description to verifying changes and diagnosing broken or blank pages, so it does not compete with Microsoft's broad "test web pages" skill.
Remove assets/test-helper.js. Nothing in the repo referenced it and Playwright provides the same features.
The skill name and folder are unchanged, so existing links keep working.
Type of Contribution
New instruction file.
New prompt file.
New agent file.
New plugin.
New skill file.
New agentic workflow.
New canvas extension.
Update to existing instruction, prompt, agent, plugin, skill, workflow, or canvas extension.
Other (please specify):
Additional Notes
This PR was prepared with an AI agent (Claude Code), so the title carries 🤖🤖🤖 as described in CONTRIBUTING.md. The author still needs to confirm the unchecked boxes above.
Verified:
npm run skill:validate reports webapp-testing as valid, and npm run build passes.
One real playwright-cli 0.1.25 run in a temporary directory confirmed that console error lists uncaught page errors, requests lists [404] and [FAILED] entries, and the ### Page header shows the console error count.
The MCP and WebMCP claims come from reading the microsoft/playwright source and docs. They were not run.
Not done:
The trigger rate of the new description was not measured.
The CLI was run once, on one macOS machine, against one test page.
The skill states Node.js 22 or later because Playwright 1.65 no longer tests Node 20. The @playwright/cli and @playwright/mcp packages declare >=20.
No agent in this repository was changed. Related agents such as playwright-tester do not reference this skill.
GitHub Copilot CLI validation
I ran this skill with GitHub Copilot CLI 1.0.121 (gpt-6-luna), Node.js v26.14.0, and @playwright/cli 0.1.25 on this repo's local Astro site (http://127.0.0.1:4321/skills/). I seeded a known bug at website/src/components/brand/SkillsCatalog.tsx:85 (reading missing bundledAssets.length instead of skill.assetCount), gave Copilot only the symptom ("Includes assets" blanks the catalog), and reverted the edit afterward.
## Result: PASS- Steps: Reproduced the crash by enabling "Includes assets," fixed the field mismatch, and verified the filter works in a fresh browser session. `npm --prefix website run build` passed.
- Evidence: Before: `before.png`; after: `after.png`- Console: Before: `TypeError` reading `length` from undefined. After: none.
- Network: No failed requests or responses with status 400 or higher.
- Cause and fix: `website/src/components/brand/SkillsCatalog.tsx:85` read `bundledAssets.length`, but skill records expose `assetCount`. The filter now uses the typed `assetCount` field.
Rewrite the skill as a short verify-and-debug procedure for a local web
app. Use playwright-cli by default and the Playwright MCP server when no
shell exists. Leave command syntax to Microsoft's playwright-cli skill.
- Add pass criteria, a report template, and gotchas (discouraged page.*
APIs, favicon 404, WebMCP tools can cause side effects).
- Add the compatibility field (Node.js 22 or later, shell or MCP).
- Remove assets/test-helper.js. Nothing referenced it and Playwright
provides the same features.
Risk tier:merge-risk:medium — New or substantially changed resource without privileged execution Required to merge: passing submission-gate checks plus 1 approval from reviewers with write access.
✓ [spec-compliance] All 1 skill(s) are spec-compliant.
ℹ️
✓ spec-compliance: All spec checks passed.
ℹ️
✓ [valid-refs] All file references across 1 skill(s) are valid.
ℹ️
✓ valid-refs: All file references resolve to existing files within the skill directory.
ℹ️
1 skill(s) linted, 1 passed
Full linter output
### Linting skills/webapp-testing
✅ webapp-testing (2/2 checks passed)
✓ [spec-compliance] All 1 skill(s) are spec-compliant.
✓ spec-compliance: All spec checks passed.
✓ [valid-refs] All file references across 1 skill(s) are valid.
✓ valid-refs: All file references resolve to existing files within the skill directory.
1 skill(s) linted, 1 passed
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Several unresolved moderate issues remain in the skill, including missing-browser handling, unbounded startup retries, incorrect favicon exception logic, and overly broad session cleanup.
This unconditionally tells the agent to find a cause and fix source code even when the requested UI change already works. That can cause an unnecessary edit merely to reach the pass criteria. Branch here: diagnose and fix only when reproduction/evidence shows a failure; otherwise leave the source unchanged and continue to cleanup/reporting.
Define an MCP-compatible status check
skills/webapp-testing/SKILL.md:49
The first pass criterion above is CLI-specific: the Playwright MCP tools listed here do not produce a ### Page header. Saying that the same criteria apply leaves the MCP path unable to evaluate a required condition and can make every MCP verification indeterminate. Define an MCP-specific status check, or explicitly omit this CLI-only check.
Make cause and fix fields conditional on failure
skills/webapp-testing/SKILL.md:75
The report template requires a file:line cause and a fix even for the normal PASS path, where no defect was found and no code was changed. This encourages inventing a cause/fix or producing an incomplete report; make this field explicitly conditional for successful verification.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The change retains three active documentation issues: a HEAD-only health probe may reject GET-only servers, the favicon 404 exception conflicts with the failure rule, and the required real-repository Copilot validation evidence is missing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Checklist
npm startand verified thatREADME.mdis up to date.mainbranch for this pull request.Description
Maintenance update for
skills/webapp-testing. The skill taught APIs that Playwright now marks as discouraged (page.click,page.fill,page.waitForSelector) and told agents to use the Playwright MCP server first. Microsoft now shipsplaywright-clifor coding agents and recommends it over MCP for them.Changes:
playwright-cliby default and the Playwright MCP server when no shell exists. Leave command syntax to Microsoft'splaywright-cliskill and--help.page.*APIs,networkidle, favicon 404 noise, untrusted page content,.playwright-cli/can hold credentials, and WebMCP tools can cause side effects.compatibilityfrontmatter field (Node.js 22 or later, shell or MCP server, local app, network access once).descriptionto verifying changes and diagnosing broken or blank pages, so it does not compete with Microsoft's broad "test web pages" skill.assets/test-helper.js. Nothing in the repo referenced it and Playwright provides the same features.The skill name and folder are unchanged, so existing links keep working.
Type of Contribution
Additional Notes
This PR was prepared with an AI agent (Claude Code), so the title carries
🤖🤖🤖as described in CONTRIBUTING.md. The author still needs to confirm the unchecked boxes above.Verified:
npm run skill:validatereportswebapp-testingas valid, andnpm run buildpasses.playwright-cli0.1.25 run in a temporary directory confirmed thatconsole errorlists uncaught page errors,requestslists[404]and[FAILED]entries, and the### Pageheader shows the console error count.microsoft/playwrightsource and docs. They were not run.Not done:
descriptionwas not measured.@playwright/cliand@playwright/mcppackages declare>=20.playwright-testerdo not reference this skill.GitHub Copilot CLI validation
I ran this skill with GitHub Copilot CLI 1.0.121 (
gpt-6-luna), Node.js v26.14.0, and@playwright/cli0.1.25 on this repo's local Astro site (http://127.0.0.1:4321/skills/). I seeded a known bug atwebsite/src/components/brand/SkillsCatalog.tsx:85(reading missingbundledAssets.lengthinstead ofskill.assetCount), gave Copilot only the symptom ("Includes assets" blanks the catalog), and reverted the edit afterward.Browser evidence and Copilot report
Before fix (
open,snapshot,click e59,console error,requests,screenshot --filename=before.png):### Page:Console: 1 errors, 1 warningsconsole error:TypeError: Cannot read properties of undefined (reading 'length') at resourceOf (SkillsCatalog.tsx:44:51)requests: no failed or 400+ responsesbefore.png: 5.9 KB (blank catalog)After fix (
website/src/components/brand/SkillsCatalog.tsx:85restored toskill.assetCount > 0, fresh browser session,playwright-cli close,npm --prefix website run build):console error: 0 errors (Total messages: 3 (Errors: 0, Warnings: 0))requests: no failed or 400+ responsesafter.png: 76 KB (filtered catalog rendered)