Skip to content

Make API requests work - #163

Merged
smnandre merged 1 commit into
playwright-php:mainfrom
smnandre:sa/api-request-context
Aug 25, 2026
Merged

Make API requests work#163
smnandre merged 1 commit into
playwright-php:mainfrom
smnandre:sa/api-request-context

Conversation

@smnandre

Copy link
Copy Markdown
Member
  • Route API request commands through the Playwright server
  • Preserve response status, headers, repeated headers, and binary-safe bodies
  • Share cookies with browser contexts and support storage state, disposal, and tracing
  • Add focused unit and real-browser functional coverage

Tests:

  • PHP CS Fixer
  • PHPStan
  • PHPUnit: 1697 tests, 3740 assertions, 3 skipped

@smnandre
smnandre marked this pull request as ready for review August 25, 2026 00:54
@smnandre
smnandre merged commit c461010 into playwright-php:main Aug 25, 2026
10 checks passed
@codecov

codecov Bot commented Aug 25, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.62500% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/API/APIResponse.php 87.50% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

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