Skip to content

Commit 5320900

Browse files
committed
Update browser-testing.md
1 parent 8fd7be1 commit 5320900

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

browser-testing.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,17 +200,17 @@ $page->assertSee('Bienvenue');
200200
#### Setting Timezone
201201

202202
```php
203-
$page = visit('/')->withUserAgent('Googlebot');
203+
$page = visit('/')->withTimezone('America/New_York');
204204

205-
$page->assertSee('Welcome, bot!');
205+
$page->assertSee('EST');
206206
```
207207

208208
#### Setting UserAgent
209209

210210
```php
211-
$page = visit('/')->withTimezone('America/New_York');
211+
$page = visit('/')->withUserAgent('Googlebot');
212212

213-
$page->assertSee('EST');
213+
$page->assertSee('Welcome, bot!');
214214
```
215215

216216
## Table of Contents

0 commit comments

Comments
 (0)