From 2e2a9738c14260b048f4ea54b247401c1eace14a Mon Sep 17 00:00:00 2001 From: sonali-dudhia Date: Wed, 6 May 2026 10:44:56 +0530 Subject: [PATCH 1/3] Remove example of passing options to the click method in browser-testing.md --- browser-testing.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/browser-testing.md b/browser-testing.md index 7a72a47..1b09a0e 100644 --- a/browser-testing.md +++ b/browser-testing.md @@ -917,12 +917,6 @@ The `click` method clicks the link with the given text: $page->click('Login'); ``` -You may also pass options: - -```php -$page->click('#button', options: ['clickCount' => 2]); -``` - ### text From a591e6d1bd8c2670f7e52135af0b886c14930413 Mon Sep 17 00:00:00 2001 From: sonali-dudhia Date: Wed, 6 May 2026 10:46:57 +0530 Subject: [PATCH 2/3] Revert "Remove example of passing options to the click method in browser-testing.md" This reverts commit 2e2a9738c14260b048f4ea54b247401c1eace14a. --- browser-testing.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/browser-testing.md b/browser-testing.md index 1b09a0e..7a72a47 100644 --- a/browser-testing.md +++ b/browser-testing.md @@ -917,6 +917,12 @@ The `click` method clicks the link with the given text: $page->click('Login'); ``` +You may also pass options: + +```php +$page->click('#button', options: ['clickCount' => 2]); +``` + ### text From 2c578b65617773d2cb4198ec614af17d39a9e8f8 Mon Sep 17 00:00:00 2001 From: sonali-dudhia Date: Fri, 26 Jun 2026 18:06:21 +0530 Subject: [PATCH 3/3] docs: add toBeEmail() expectation Co-Authored-By: Claude Sonnet 4.6 --- expectations.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/expectations.md b/expectations.md index 8a9d182..1201a1f 100644 --- a/expectations.md +++ b/expectations.md @@ -105,6 +105,7 @@ With the Pest expectation API, you have access to an extensive collection of ind - [`toHaveCamelCaseKeys()`](#expect-toHaveCamelCaseKeys) - [`toHaveStudlyCaseKeys()`](#expect-toHaveStudlyCaseKeys) - [`toHaveSameSize()`](#expect-toHaveSameSize) +- [`toBeEmail()`](#expect-toBeEmail) - [`toBeUrl()`](#expect-toBeUrl) - [`toBeUuid()`](#expect-toBeUuid) @@ -821,6 +822,15 @@ This expectation ensures that the size of `$value` and the provided iterable are expect(['foo', 'bar'])->toHaveSameSize(['baz', 'bazz']); ``` + +### `toBeEmail()` + +This expectation ensures that `$value` is a valid email address. + +```php +expect('user@example.com')->toBeEmail(); +``` + ### `toBeUrl()`