Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 23, 2026

Adds integration test suite validating Playwright browser automation works correctly through the firewall with domain whitelisting.

Changes

  • Test suite (tests/integration/playwright-testing.test.ts): 6 test cases covering:

    • Allowed/blocked domain enforcement for browser navigation
    • Page interaction, multi-page navigation, screenshot capture
    • Uses heredoc pattern to avoid shell escaping issues with inline Node.js code
  • Example script (examples/playwright-automation.sh): Demonstrates real-world usage with GitHub navigation and screenshot capture

  • Dependencies: Added playwright and @playwright/test to dev dependencies

Key Implementation Detail

Playwright requires infrastructure domains for operation:

  • registry.npmjs.org, npmjs.com - npm package downloads
  • playwright.azureedge.net - Chromium browser binary downloads

Tests use 180-240s timeouts to account for browser download and installation on first run.

sudo -E awf \
  --allow-domains github.com,registry.npmjs.org,playwright.azureedge.net,npmjs.com \
  -- npx -y playwright@latest install chromium && node test.js

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • 8.8.4.4
    • Triggering command: REDACTED, pid is -1 (packet block)
  • 8.8.8.8
    • Triggering command: REDACTED, pid is -1 (packet block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Playwright testing</issue_title>
<issue_description>Add local agentic workflow test for playwright.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 4 commits January 23, 2026 22:03
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Copilot AI changed the title [WIP] Add local agentic workflow test for Playwright feat: add playwright integration tests for browser automation through firewall Jan 23, 2026
Copilot AI requested a review from Mossaka January 23, 2026 22:11
@Mossaka
Copy link
Collaborator

Mossaka commented Jan 26, 2026

Closing PR to reduce backlog. The work is tracked in issues #102 and #85 (Playwright testing). Will fix it later.

@Mossaka Mossaka closed this Jan 26, 2026
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.

Playwright testing

2 participants