Commit 69942472 authored by Samantha Ming's avatar Samantha Ming

Add spec to cover collapsible section render

App FE spec to ensure collapsible section template is rendered properly.
parent b3b8ae6c
......@@ -134,6 +134,14 @@ describe('Markdown field header component', () => {
);
});
it('renders collapsible section template', () => {
const detailsBlockButton = findToolbarButtonByProp('icon', 'details-block');
expect(detailsBlockButton.props('tag')).toEqual(
'<details><summary>Click to expand</summary>\n{text}\n</details>',
);
});
it('does not render suggestion button if `canSuggest` is set to false', () => {
createWrapper({
canSuggest: false,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment