Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theme/token V2 demo の snapshot を更新 #683

Merged
merged 3 commits into from
Dec 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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')],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

img 要素すべてを mask する

})
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',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo があったので直しました

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
Loading