Skip to content

Commit 8dc42bc

Browse files
authored
Merge pull request #333 from flap152/patch-1
Specify that debug() includes the only() method behavior
2 parents 7609cf6 + 3990bff commit 8dc42bc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

browser-testing.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1130,12 +1130,13 @@ Sometimes you may want to debug your browser tests. Pest provides a convenient w
11301130
./vendor/bin/pest --debug
11311131
```
11321132

1133-
Optionally, you can also use the `debug()` method in your test to pause the execution and open the browser window:
1133+
Optionally, you can also use the `debug()` method in your test. It will limit execution to this test (like using [`only()`](filtering-tests.md#only)), pause the execution and open the browser window:
11341134

11351135
```php
11361136
$page->debug();
11371137
```
11381138

1139+
11391140
<a name="screenshot"></a>
11401141
You can also take a screenshot of the current page using the `screenshot()` method. This is useful for visual debugging:
11411142

0 commit comments

Comments
 (0)