From dcd3ec609e69d94abe80c855e55cfe1e0244b51c Mon Sep 17 00:00:00 2001 From: JT Smith Date: Wed, 10 Sep 2025 16:50:03 -0600 Subject: [PATCH] Adding details about from() method --- browser-testing.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/browser-testing.md b/browser-testing.md index 7a72a47..8ad560b 100644 --- a/browser-testing.md +++ b/browser-testing.md @@ -203,6 +203,19 @@ Sometimes, you need to define where the browser believes it is physically on the ```php $page = visit('/') ->geolocation(39.399872, -8.224454); + +$page->assertSee('Portugal'); +``` + +You may also define one of several specific preset cities which will configure the browser's geolocation, timezone and locale: + +```php +$page = visit('/') + ->from()->losAngeles(); + +$page->assertSee('Los Angeles'); +$page->assertSee('America/Los_Angeles'); +$page->assertSee('en-US'); ``` ### Configuring Locale