Skip to content

Commit dcd3ec6

Browse files
committed
Adding details about from() method
1 parent ffce7f1 commit dcd3ec6

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

browser-testing.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,19 @@ Sometimes, you need to define where the browser believes it is physically on the
203203
```php
204204
$page = visit('/')
205205
->geolocation(39.399872, -8.224454);
206+
207+
$page->assertSee('Portugal');
208+
```
209+
210+
You may also define one of several specific preset cities which will configure the browser's geolocation, timezone and locale:
211+
212+
```php
213+
$page = visit('/')
214+
->from()->losAngeles();
215+
216+
$page->assertSee('Los Angeles');
217+
$page->assertSee('America/Los_Angeles');
218+
$page->assertSee('en-US');
206219
```
207220

208221
### Configuring Locale

0 commit comments

Comments
 (0)