From 580dfd21a6f972c0a316ac7a2a44dd90748f547c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 15 Apr 2026 03:53:54 +0000 Subject: [PATCH] docs: remove redundant content from playwright.md Removed duplicated intro code block (re-shown in Version section), Default Localhost Access section (restated what the intro already says), and condensed the GitHub Actions Compatibility and Browser Support sections. Co-Authored-By: Claude Sonnet 4.6 --- docs/src/content/docs/reference/playwright.md | 39 ++----------------- 1 file changed, 3 insertions(+), 36 deletions(-) diff --git a/docs/src/content/docs/reference/playwright.md b/docs/src/content/docs/reference/playwright.md index 58c9b6465f5..2744a4fdc3c 100644 --- a/docs/src/content/docs/reference/playwright.md +++ b/docs/src/content/docs/reference/playwright.md @@ -7,20 +7,11 @@ sidebar: Configure Playwright for browser automation and testing in your agentic workflows. Playwright enables headless browser control for accessibility testing, visual regression detection, end-to-end testing, and web scraping. -```yaml wrap -tools: - playwright: - playwright: - version: "1.56.1" # Optional: specify version, defaults to 1.56.1 - playwright: - version: "latest" # Use the latest available version -``` - ## Configuration Options ### Version -Specify the Playwright version to use: +Pin to a specific version or use the latest: ```yaml wrap tools: @@ -62,37 +53,13 @@ network: **Automatic subdomain matching**: When you allow `example.com`, all subdomains like `api.example.com`, `www.example.com`, and `staging.example.com` are automatically allowed. -### Default Localhost Access - -Without any `network:` configuration, Playwright defaults to: - -```yaml wrap -network: - allowed: - - "localhost" - - "127.0.0.1" -``` - -This is sufficient for testing local development servers. - ## GitHub Actions Compatibility -Playwright runs in a Docker container on GitHub Actions runners. To ensure Chromium functions correctly, gh-aw automatically configures required security flags: - -- `--security-opt seccomp=unconfined` - Allows Chromium's sandboxing mechanisms -- `--ipc=host` - Enables inter-process communication for browser processes - -These flags are automatically applied starting with **gh-aw version 0.41.0 and later**. No manual configuration is needed. +Playwright runs in a Docker container on GitHub Actions runners. gh-aw automatically applies `--security-opt seccomp=unconfined` and `--ipc=host` (required for Chromium) starting with version 0.41.0. No manual configuration is needed. ## Browser Support -Playwright includes three browser engines: - -- **Chromium** - Chrome/Edge engine (most commonly used) -- **Firefox** - Mozilla Firefox engine -- **WebKit** - Safari engine - -All three browsers are available in the Playwright Docker container. Your workflow can use any or all of them based on your testing needs. +Playwright includes three browser engines: **Chromium** (Chrome/Edge, most commonly used), **Firefox**, and **WebKit** (Safari). All three are available in the Playwright Docker container. ## Common Use Cases