From 6cab93bc3e9542e4ce3f75a8e4106ae1d114ff71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Andr=C3=A9?= Date: Tue, 8 Sep 2026 20:08:21 +0200 Subject: [PATCH] Prepare release 0.7.0 --- CHANGELOG.md | 24 ++++++------------------ README.md | 1 + composer.json | 2 +- 3 files changed, 8 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ff051e..e358543 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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--.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. diff --git a/README.md b/README.md index cf0af1a..d5a69c4 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@   ![PHP Version](https://img.shields.io/badge/PHP-8.2+-05971B?labelColor=09161E&color=1D8D23&logoColor=FFFFFF)   ![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) +  ![Release](https://img.shields.io/github/v/release/playwright-php/playwright-behat?label=Stable&labelColor=09161E&color=1D8D23&logoColor=FFFFFF)   ![License](https://img.shields.io/github/license/playwright-php/playwright-behat?label=License&labelColor=09161E&color=1D8D23&logoColor=FFFFFF) diff --git a/composer.json b/composer.json index 97865e0..47511b8 100644 --- a/composer.json +++ b/composer.json @@ -48,7 +48,7 @@ }, "extra": { "branch-alias": { - "dev-main": "1.x-dev" + "dev-main": "0.7.x-dev" }, "thanks": { "name": "playwright-php/playwright",