2
0

chore(bubbles): Add e2e tests

This commit is contained in:
Baptiste Arnaud
2022-01-07 07:33:01 +01:00
parent 6fe27bd8ea
commit 2a040308db
6 changed files with 107 additions and 18 deletions

View File

@ -87,6 +87,7 @@ export const TextEditor = ({
edge: 'end',
})
},
'aria-label': 'Text editor',
}}
initialValue={
initialValue.length === 0

View File

@ -22,18 +22,24 @@ export const ToolBar = (props: StackProps) => {
{...props}
>
<Button size="sm">Variables</Button>
<MarkToolbarButton
type={getPluginType(editor, MARK_BOLD)}
icon={<BoldIcon />}
/>
<MarkToolbarButton
type={getPluginType(editor, MARK_ITALIC)}
icon={<ItalicIcon />}
/>
<MarkToolbarButton
type={getPluginType(editor, MARK_UNDERLINE)}
icon={<UnderlineIcon />}
/>
<span data-testid="bold-button">
<MarkToolbarButton
type={getPluginType(editor, MARK_BOLD)}
icon={<BoldIcon />}
/>
</span>
<span data-testid="italic-button">
<MarkToolbarButton
type={getPluginType(editor, MARK_ITALIC)}
icon={<ItalicIcon />}
/>
</span>
<span data-testid="underline-button">
<MarkToolbarButton
type={getPluginType(editor, MARK_UNDERLINE)}
icon={<UnderlineIcon />}
/>
</span>
<LinkToolbarButton icon={<LinkIcon />} />
</HStack>
)