Skip to content

Commit

Permalink
Merge pull request #683 from pixiv/chore/update-snapshot-test
Browse files Browse the repository at this point in the history
Theme/token V2 demo の snapshot を更新
  • Loading branch information
naporin0624 authored Dec 25, 2024
2 parents 435d86d + b62161a commit 7659229
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
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
2 changes: 1 addition & 1 deletion packages/react/docs/TokenV2Demo.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import TokenV2Styled from './TokenV2DemoStyled'
import TokenV2Tailwind from './TokenV2DemoTailwind'

export default {
title: 'theme/Toke v2 Demo',
title: 'theme/Token v2 Demo',
component: TokenV2Styled,
} as Meta<typeof TokenV2Styled>

Expand Down
16 changes: 8 additions & 8 deletions packages/react/docs/__snapshots__/TokenV2Demo.story.storyshot
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Storybook Tests > theme/Toke v2 Demo > Styled 1`] = `
exports[`Storybook Tests > theme/Token v2 Demo > Styled 1`] = `
.c0 {
-webkit-transition: 0.3s color ease-in-out;
transition: 0.3s color ease-in-out;
Expand Down Expand Up @@ -265,7 +265,7 @@ exports[`Storybook Tests > theme/Toke v2 Demo > Styled 1`] = `
<img
alt="Title"
className="c10"
src="https://loremflickr.com/150/100/animals?random=0"
src="https://loremflickr.com/150/100/animals?random=0&lock=0"
/>
<h3
className="c11"
Expand All @@ -286,7 +286,7 @@ exports[`Storybook Tests > theme/Toke v2 Demo > Styled 1`] = `
<img
alt="Title"
className="c10"
src="https://loremflickr.com/150/100/animals?random=1"
src="https://loremflickr.com/150/100/animals?random=1&lock=1"
/>
<h3
className="c11"
Expand All @@ -307,7 +307,7 @@ exports[`Storybook Tests > theme/Toke v2 Demo > Styled 1`] = `
<img
alt="Title"
className="c10"
src="https://loremflickr.com/150/100/animals?random=2"
src="https://loremflickr.com/150/100/animals?random=2&lock=2"
/>
<h3
className="c11"
Expand All @@ -327,7 +327,7 @@ exports[`Storybook Tests > theme/Toke v2 Demo > Styled 1`] = `
</div>
`;

exports[`Storybook Tests > theme/Toke v2 Demo > Tailwind 1`] = `
exports[`Storybook Tests > theme/Token v2 Demo > Tailwind 1`] = `
<div
data-dark={false}
>
Expand Down Expand Up @@ -441,7 +441,7 @@ exports[`Storybook Tests > theme/Toke v2 Demo > Tailwind 1`] = `
<img
alt="Title"
className="rounded-m aspect-[3/2] w-[100%]"
src="https://loremflickr.com/150/100/animals?random=0"
src="https://loremflickr.com/150/100/animals?random=0&lock=0"
/>
<h3
className="text-text text-caption-m m-0"
Expand All @@ -462,7 +462,7 @@ exports[`Storybook Tests > theme/Toke v2 Demo > Tailwind 1`] = `
<img
alt="Title"
className="rounded-m aspect-[3/2] w-[100%]"
src="https://loremflickr.com/150/100/animals?random=1"
src="https://loremflickr.com/150/100/animals?random=1&lock=1"
/>
<h3
className="text-text text-caption-m m-0"
Expand All @@ -483,7 +483,7 @@ exports[`Storybook Tests > theme/Toke v2 Demo > Tailwind 1`] = `
<img
alt="Title"
className="rounded-m aspect-[3/2] w-[100%]"
src="https://loremflickr.com/150/100/animals?random=2"
src="https://loremflickr.com/150/100/animals?random=2&lock=2"
/>
<h3
className="text-text text-caption-m m-0"
Expand Down

0 comments on commit 7659229

Please sign in to comment.