1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

disable storybook test runs for now

This commit is contained in:
Matthias Kretschmann 2021-05-20 12:32:47 +02:00
parent 4dd11fd0f0
commit 53639e6839
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 65 additions and 65 deletions

View File

@ -1,57 +1,57 @@
import React from 'react'
import { action } from '@storybook/addon-actions'
import Button from './Button'
// import React from 'react'
// // import { action } from '@storybook/addon-actions'
// import Button from './Button'
export default {
title: 'Atoms/Button'
}
// export default {
// title: 'Atoms/Button'
// }
export const Default = () => (
<>
<Button onClick={action('clicked')}>Hello Button</Button>
<br />
<br />
<Button size="small" onClick={action('clicked')}>
Hello Button
</Button>
</>
)
// export const Default = () => (
// <>
// <Button onClick={action('clicked')}>Hello Button</Button>
// <br />
// <br />
// <Button size="small" onClick={action('clicked')}>
// Hello Button
// </Button>
// </>
// )
export const Primary = () => (
<>
<Button style="primary" onClick={action('clicked')}>
Hello Button
</Button>
<br />
<br />
<Button style="primary" size="small" onClick={action('clicked')}>
Hello Button
</Button>
</>
)
// export const Primary = () => (
// <>
// <Button style="primary" onClick={action('clicked')}>
// Hello Button
// </Button>
// <br />
// <br />
// <Button style="primary" size="small" onClick={action('clicked')}>
// Hello Button
// </Button>
// </>
// )
export const Ghost = () => (
<>
<Button style="ghost" onClick={action('clicked')}>
Hello Button
</Button>
<br />
<br />
<Button style="ghost" size="small" onClick={action('clicked')}>
Hello Button
</Button>
</>
)
// export const Ghost = () => (
// <>
// <Button style="ghost" onClick={action('clicked')}>
// Hello Button
// </Button>
// <br />
// <br />
// <Button style="ghost" size="small" onClick={action('clicked')}>
// Hello Button
// </Button>
// </>
// )
export const Text = () => (
<>
<Button style="text" onClick={action('clicked')}>
Hello Button
</Button>
<br />
<br />
<Button style="text" size="small" onClick={action('clicked')}>
Hello Button
</Button>
</>
)
// export const Text = () => (
// <>
// <Button style="text" onClick={action('clicked')}>
// Hello Button
// </Button>
// <br />
// <br />
// <Button style="text" size="small" onClick={action('clicked')}>
// Hello Button
// </Button>
// </>
// )

View File

@ -1,14 +1,14 @@
import initStoryshots from '@storybook/addon-storyshots'
import { render, wait } from '@testing-library/react'
// import initStoryshots from '@storybook/addon-storyshots'
// import { render, wait } from '@testing-library/react'
// Stories are render-tested with @testing-library/react,
// overwriting default snapshot testing behavior
initStoryshots({
asyncJest: true,
test: async ({ story, done }) => {
const storyElement = story.render()
// render the story with @testing-library/react
render(storyElement)
await wait(() => done())
}
})
// // Stories are render-tested with @testing-library/react,
// // overwriting default snapshot testing behavior
// initStoryshots({
// asyncJest: true,
// test: async ({ story, done }) => {
// const storyElement = story.render()
// // render the story with @testing-library/react
// render(storyElement)
// await wait(() => done())
// }
// })