Skip to content

Commit 9ebb58f

Browse files
authored
Fix timeout example
The timeout() method expects milliseconds, not seconds. So the current example would timeout after 10ms. 🙃
1 parent 5d817b7 commit 9ebb58f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

browser-testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ $page->click('#submit-button');
182182
Sometimes, elements may take time to appear on the page. By default, Pest waits for `5` seconds before timing out. You can configure the default timeout for browser tests in your `Pest.php` configuration file:
183183

184184
```php
185-
pest()->browser()->timeout(10);
185+
pest()->browser()->timeout(10000);
186186
```
187187

188188
## Table of Contents

0 commit comments

Comments
 (0)