From 07d493173edeb32b37d271ed30549ed6356dba96 Mon Sep 17 00:00:00 2001 From: jonniebigodes Date: Tue, 14 May 2024 14:23:52 +0100 Subject: [PATCH] Merge pull request #27051 from hakshu25/patch-1 Docs: Fix typo of sample code for image snapshot tests with the test-runner in the storyshots migration guide (cherry picked from commit 56b17c6683fc15732acae95538bda8110f891bd6) --- docs/snippets/common/test-runner-image-snapshot-testing.js.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/snippets/common/test-runner-image-snapshot-testing.js.mdx b/docs/snippets/common/test-runner-image-snapshot-testing.js.mdx index d3fd40334eb1..4056d2a3cded 100644 --- a/docs/snippets/common/test-runner-image-snapshot-testing.js.mdx +++ b/docs/snippets/common/test-runner-image-snapshot-testing.js.mdx @@ -16,7 +16,7 @@ module.exports = { // Waits for the page to be ready before taking a screenshot to ensure consistent results await waitForPageReady(page); - // To capture a screenshot for for different browsers, add page.context().browser().browserType().name() to get the browser name to prefix the file name + // To capture a screenshot for different browsers, add page.context().browser().browserType().name() to get the browser name to prefix the file name const image = await page.screenshot(); expect(image).toMatchImageSnapshot({ customSnapshotsDir,