Skip to content

Commit e1f019b

Browse files
authored
Update pest-v4-is-here-now-with-browser-testing.md
Fix assertion name assertScreenshotsMatches > assertScreenshotMatches
1 parent 5d817b7 commit e1f019b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pest-v4-is-here-now-with-browser-testing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ visit($routes)->assertNoSmoke();
8585

8686
## Visual Regression Testing
8787

88-
Want to ensure your pages look exactly as expected over time? Pest v4 introduces visual regression testing with the `assertScreenshotsMatches()` assertion. This allows you to take screenshots of your pages and compare them against baseline images, ensuring that your UI remains consistent across changes.
88+
Want to ensure your pages look exactly as expected over time? Pest v4 introduces visual regression testing with the `assertScreenshotMatches()` assertion. This allows you to take screenshots of your pages and compare them against baseline images, ensuring that your UI remains consistent across changes.
8989

9090
```php
9191
$pages = visit(['/', '/about', '/contact']);
9292

93-
$pages->assertScreenshotsMatches();
93+
$pages->assertScreenshotMatches();
9494
```
9595

9696
This is just a glimpse of what Browser Testing in Pest v4 can do. Find out more about the new features below, and check out the [Browser Testing documentation](/docs/browser-testing) for a complete guide on how to get started.

0 commit comments

Comments
 (0)