Skip to content

Commit 8fd7be1

Browse files
committed
just page
1 parent 6e63427 commit 8fd7be1

1 file changed

Lines changed: 6 additions & 12 deletions

File tree

browser-testing.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -193,30 +193,24 @@ In addition to configuring defaults globally, you can override settings per test
193193
#### Setting Locale
194194

195195
```php
196-
it('shows the page in French', function () {
197-
$page = visit('/')->withLocale('fr-FR');
196+
$page = visit('/')->withLocale('fr-FR');
198197

199-
$page->assertSee('Bienvenue');
200-
});
198+
$page->assertSee('Bienvenue');
201199
```
202200
#### Setting Timezone
203201

204202
```php
205-
it('visits with user agent', function () {
206-
$page = visit('/')->withUserAgent('Googlebot');
203+
$page = visit('/')->withUserAgent('Googlebot');
207204

208-
$page->assertSee('Welcome, bot!');
209-
});
205+
$page->assertSee('Welcome, bot!');
210206
```
211207

212208
#### Setting UserAgent
213209

214210
```php
215-
it('shows New York time', function () {
216-
$page = visit('/')->withTimezone('America/New_York');
211+
$page = visit('/')->withTimezone('America/New_York');
217212

218-
$page->assertSee('EST');
219-
});
213+
$page->assertSee('EST');
220214
```
221215

222216
## Table of Contents

0 commit comments

Comments
 (0)