Repository navigation
feat: migrate playwright workflows to CLI mode, deprecate MCP mode #29860
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,6 +18,7 @@ network: | |
| tools: | ||
| cli-proxy: true | ||
| playwright: | ||
| mode: cli | ||
| bash: | ||
| - "date *" | ||
| - "echo *" | ||
|
|
@@ -54,8 +55,8 @@ Verify that the GitHub Next Agentic Workflows blog page is available, accessible | |
|
|
||
| Use Playwright to navigate to the target URL and capture the accessibility snapshot: | ||
|
|
||
| 1. **Navigate to URL**: Use `browser_navigate` to load https://githubnext.com/projects/agentic-workflows/ | ||
| 2. **Capture Accessibility Snapshot**: Use `browser_snapshot` to get the accessibility tree representation of the page | ||
| 1. **Navigate to URL**: Run `playwright-cli browser_navigate --url https://githubnext.com/projects/agentic-workflows/` to load the page | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated to use |
||
| 2. **Capture Accessibility Snapshot**: Run `playwright-cli browser_snapshot` to get the accessibility tree representation of the page | ||
| - This provides a text-only version of the page as screen readers would see it | ||
| - Captures the semantic structure and content without styling | ||
| 3. **Extract Metrics**: From the navigation and snapshot, capture: | ||
|
|
@@ -95,7 +96,7 @@ Perform the following validations: | |
|
|
||
| Extract code snippets from the blog page and validate them against the latest agentic workflow schema: | ||
|
|
||
| 1. **Extract Code Snippets**: Use Playwright's `browser_evaluate` to extract all code blocks from the page | ||
| 1. **Extract Code Snippets**: Use `playwright-cli browser_evaluate` to extract all code blocks from the page | ||
| - Look for `<code>` elements with language hints for YAML or markdown | ||
| - Extract the text content of each code block | ||
| - Filter to only workflow-related snippets (those containing frontmatter with `---` markers AND at least one of these workflow fields: `on:`, `engine:`, `tools:`, `permissions:`, `safe-outputs:`) | ||
|
|
||
Large diffs are not rendered by default.
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Good addition of
mode: clito the playwright config. This switches from the Docker-based MCP server to the lightweight CLI approach, reducing container overhead.