Skip to content

Commit

Permalink
Merge pull request #27051 from hakshu25/patch-1
Browse files Browse the repository at this point in the history
Docs: Fix typo of sample code for image snapshot tests with the test-runner in the storyshots migration guide
(cherry picked from commit 56b17c6)
  • Loading branch information
jonniebigodes authored and storybook-bot committed May 14, 2024
1 parent 884e4b2 commit 62d5c89
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 62d5c89

Please sign in to comment.