Skip to content

Add playwright routes support#235

Open
Jonathan-384481 wants to merge 1 commit into
pestphp:4.xfrom
Jonathan-384481:routes
Open

Add playwright routes support#235
Jonathan-384481 wants to merge 1 commit into
pestphp:4.xfrom
Jonathan-384481:routes

Conversation

@Jonathan-384481

Copy link
Copy Markdown

This pull request adds routes to pest-plugin-browser with minimal changes to the current code. Use with

visit('/')->withRoute('**/message', fn (PlaywrightRoute $route) => $route->continue());

or

$page->route('**/*', fn (PlaywrightRoute $route) => $route->abort());

Currently supported methods are continue, abort and fulfill

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