Skip to content

feat(e2e): Add Playwright subprocess executor and script fix command#458

Merged
koichimurakami merged 1 commit into
mainfrom
feature/e2e-playwright-refactor
Jun 19, 2026
Merged

feat(e2e): Add Playwright subprocess executor and script fix command#458
koichimurakami merged 1 commit into
mainfrom
feature/e2e-playwright-refactor

Conversation

@koichimurakami

Copy link
Copy Markdown
Contributor

Summary

  • Add playwright-subprocess-executor that runs Playwright tests in an isolated child process via playwright test, independent of the shared browser session. This avoids interference with the agent's live browser session.
  • Add e2e-script-fix-executor command handler that implements an AI-assisted E2E script fix flow for the new e2e_script_fix command type.
  • Wire executionMethod: 'playwright' in e2e-test-executor to dispatch to the new subprocess executor before falling back to the existing in-process script path.
  • Add playwright.subprocess.config.ts as the Playwright configuration used by the subprocess runner.
  • Register e2e_script_fix in AgentCommandType and CommandDispatch union types.
  • Add @playwright/test as an optional dependency.

Test plan

  • npm test passes with full coverage (Statements ≥ 95%, Branches ≥ 90%, Functions ≥ 95%, Lines ≥ 95%)
  • New unit tests cover playwright-subprocess-executor (success, failure, timeout paths)
  • New unit tests cover e2e-script-fix-executor command handler
  • Extended e2e-test-executor tests cover executionMethod: 'playwright' routing, step reporting, screenshot path handling, and subprocess error propagation

🤖 Generated with Claude Code

- Add `playwright-subprocess-executor` that runs Playwright tests in an
  isolated child process via `playwright test`, independent of the shared
  browser session
- Add `e2e-script-fix-executor` command handler for AI-assisted E2E
  script fix flow (`e2e_script_fix` command type)
- Wire `executionMethod: 'playwright'` in `e2e-test-executor` to use the
  new subprocess executor instead of the in-process browser script path
- Add `playwright.subprocess.config.ts` for the subprocess test runner
- Register `e2e_script_fix` in `AgentCommandType` and `CommandDispatch`
- Add `@playwright/test` as optional dependency
- Add full test coverage for all new code paths

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@koichimurakami koichimurakami merged commit c97815c into main Jun 19, 2026
7 checks passed
@github-actions

Copy link
Copy Markdown

Dependency Update Test Results

Check Status
Build ✅ Passed
Tests ✅ Passed
Matrix Test ✅ Passed

Note: This PR contains major version updates. Please review carefully.


This comment was automatically generated by the Dependency Update Test workflow.

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.

1 participant