Skip to content

Commit

Permalink
chore: mask image test-runner
Browse files Browse the repository at this point in the history
  • Loading branch information
naporin0624 committed Dec 25, 2024
1 parent 26d6709 commit b62161a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .storybook/test-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ const vrtTestConfig: TestRunnerConfig = {
await waitForPageReady(page)
await page.waitForTimeout(200)

const image = await page.screenshot()
const image = await page.screenshot({
animations: 'disabled',
mask: [page.locator('img')],
})
expect(image).toMatchImageSnapshot({
customSnapshotIdentifier: context.id,
customDiffDir: `${process.cwd()}/__diff_output__`,
Expand Down

0 comments on commit b62161a

Please sign in to comment.