Skip to content

Commit

Permalink
fix: add test skip tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mimokmt committed Feb 14, 2024
1 parent 405fd30 commit e162257
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .storybook/test-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,16 @@ const config: TestRunnerConfig = {
expect.extend({ toMatchImageSnapshot })
},
async postVisit(page, context) {
// use the test-runner utility to wait for fonts to load, etc.
await waitForPageReady(page)

// If you want to take screenshot of multiple browsers, use
// page.context().browser().browserType().name() to get the browser name to prefix the file name
const image = await page.screenshot()

expect(image).toMatchImageSnapshot({
customSnapshotIdentifier: context.id,
failureThreshold: 0.001,
})
},
tags: {
skip: ['skip-test'],
},
}

export default config
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default {
args: {
once: false,
},
tags: ['skip-test'],
} as Meta<typeof LoadingSpinnerIcon>

export const Icon: StoryObj<typeof LoadingSpinnerIcon> = {}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default {
transparent: false,
className: 'basic',
},
tags: ['skip-test'],
} as Meta<typeof LoadingSpinner>

export const Default: StoryObj<typeof LoadingSpinner> = {}

0 comments on commit e162257

Please sign in to comment.