Skip to content
Open
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
13 changes: 13 additions & 0 deletions browser-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down