Skip to content

Commit

Permalink
fix: flaky test (#3744)
Browse files Browse the repository at this point in the history
  • Loading branch information
sashuk authored Jul 26, 2023
1 parent 3e78a2a commit 32fba4c
Showing 1 changed file with 25 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from 'react'
import { Grid } from '@toptal/picasso'
import { Grid, Container } from '@toptal/picasso'
import {
ImagePlugin,
RichText,
Expand All @@ -14,26 +14,30 @@ const Example = () => {
const [html, setHtml] = useState('')

return (
<Grid>
<Grid.Item sm={12} lg={6}>
<RichTextEditor
defaultValue={defaultValue}
onChange={setHtml}
id='editor'
plugins={[
'link',
'emoji',
<ImagePlugin
onUpload={() => new Promise(resolve => setTimeout(resolve, 2000))}
/>,
]}
customEmojis={customEmojis}
/>
</Grid.Item>
<Grid.Item sm={12} lg={6}>
<RichText value={htmlToHast(html)} />
</Grid.Item>
</Grid>
<Container style={{ minHeight: '800px' }}>
<Grid>
<Grid.Item sm={12} lg={6}>
<RichTextEditor
defaultValue={defaultValue}
onChange={setHtml}
id='editor'
plugins={[
'link',
'emoji',
<ImagePlugin
onUpload={() =>
new Promise(resolve => setTimeout(resolve, 2000))
}
/>,
]}
customEmojis={customEmojis}
/>
</Grid.Item>
<Grid.Item sm={12} lg={6}>
<RichText value={htmlToHast(html)} />
</Grid.Item>
</Grid>
</Container>
)
}

Expand Down

0 comments on commit 32fba4c

Please sign in to comment.