Playwright | additional constructor for page testing - #3418
Conversation
1dddb07 to
8bfe560Comparethomhurst
commented
Oct 17, 2025
You need to update the public API snapshots too please |
AdemCatamak
commented
Oct 17, 2025
Thanks for the feedback! Could you please clarify how I should update the public API snapshots? Is there a specific command or step I should follow? |
thomhurst
commented
Oct 18, 2025
You just need to run the PublicAPI test project, and then you'll get failures due to snapshots needing updating. Then you can install this: |
…' into playwright-pagetest-constructors
AdemCatamak
commented
Oct 18, 2025
Thank you for the information. The necessary action has been taken. |
Uh oh!
There was an error while loading. Please reload this page.
This PR introduces changes that address the question under discussion.
With this update, users can now pass browser launch settings through the constructor when creating their own test classes by inheriting from the PageTest class.
For example, users can set Headless = false via the constructor to control the browser launch behavior according to their needs.
Motivation
The goal of this change is to provide more flexibility and configurability during browser initialization, improving the overall developer experience when working with PageTest-based tests.