From e1f019bf9a5e9355ec7bd767659c0fba68674679 Mon Sep 17 00:00:00 2001 From: Jason Millis <14942820+Jas-n@users.noreply.github.com> Date: Tue, 26 Aug 2025 09:15:45 +0100 Subject: [PATCH] Update pest-v4-is-here-now-with-browser-testing.md Fix assertion name assertScreenshotsMatches > assertScreenshotMatches --- pest-v4-is-here-now-with-browser-testing.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pest-v4-is-here-now-with-browser-testing.md b/pest-v4-is-here-now-with-browser-testing.md index b685e03..45f5d11 100644 --- a/pest-v4-is-here-now-with-browser-testing.md +++ b/pest-v4-is-here-now-with-browser-testing.md @@ -85,12 +85,12 @@ visit($routes)->assertNoSmoke(); ## Visual Regression Testing -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. +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. ```php $pages = visit(['/', '/about', '/contact']); -$pages->assertScreenshotsMatches(); +$pages->assertScreenshotMatches(); ``` 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.