Fix skipped test (#18206)

This commit is contained in:
markkaylor 2023-09-29 14:12:35 +02:00 committed by GitHub
parent 96a7112e3d
commit e7e82d57df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -268,23 +268,24 @@ describe('useBlocksStore', () => {
expect(quote).toBeInTheDocument();
});
// TODO fix this test
it.skip('renders a list block properly', () => {
it('renders an unordered list block properly', () => {
const { result } = renderHook(useBlocksStore, { wrapper: Wrapper });
render(
result.current.list.renderElement({
children: 'list item',
result.current['list-unordered'].renderElement({
children: 'list unordered',
element: {
format: 'unordered',
},
attributes: {},
})
}),
{
wrapper: Wrapper,
}
);
const list = screen.getByRole('list', 'list item');
const list = screen.getByRole('list');
expect(list).toBeInTheDocument();
expect(list.tagName).toBe('ul');
});
it('renders a list item block properly', () => {