Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 6 additions & 18 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
# CHANGELOG

## [Unreleased]
## [0.7.0] - 2026-09-08

### Added
First release. A Behat extension that runs scenarios in a Playwright-controlled
browser: one browser per run, one isolated page per scenario, five built-in
steps, a screenshot on failure, and `RawPlaywrightContext` for custom steps.

- `PlaywrightExtension` registers a `PlaywrightManager` shared by the whole run, a context initializer for every `PlaywrightAwareContext`, and a listener that closes the scenario page after each scenario and the browser after the run.
- `RawPlaywrightContext::getPage()` opens one isolated page per scenario, in its own browser context.
- `ExpectationFailedException`, thrown by assertion steps.
- A screenshot named `failed-<scenario>-<line>.png` is saved when a scenario fails (`auto_screenshot_on_failure`).
- Support for Behat 4.0.0-alpha1 and Symfony 8 components.
Runs on PHP 8.2 to 8.4, Behat 3.23 and later, and Behat 4.0.0-alpha1.

### Changed

- Requires PHP 8.2 or later and `playwright-php/playwright` 1.4 or later.
- Relative URLs resolve through Playwright's `baseURL` context option.
- `slow_mo` is an integer (milliseconds) instead of `slow_mo.delay`.

### Removed

- `browser_options`, which was accepted and never read.
- `BrowserNotStartedException`: a page is always available inside a scenario.
- The `@BeforeScenario` / `@AfterScenario` hooks on `PlaywrightContext`; the extension manages the lifecycle.
Before 1.0, a minor version may break backward compatibility.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

&nbsp; ![PHP Version](https://img.shields.io/badge/PHP-8.2+-05971B?labelColor=09161E&color=1D8D23&logoColor=FFFFFF)
&nbsp; ![CI](https://img.shields.io/github/actions/workflow/status/playwright-php/playwright-behat/CI.yml?branch=main&label=Tests&color=1D8D23&labelColor=09161E&logoColor=FFFFFF)
&nbsp; ![Release](https://img.shields.io/github/v/release/playwright-php/playwright-behat?label=Stable&labelColor=09161E&color=1D8D23&logoColor=FFFFFF)
&nbsp; ![License](https://img.shields.io/github/license/playwright-php/playwright-behat?label=License&labelColor=09161E&color=1D8D23&logoColor=FFFFFF)

</div>
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "1.x-dev"
"dev-main": "0.7.x-dev"
},
"thanks": {
"name": "playwright-php/playwright",
Expand Down
Loading