mirror of
https://github.com/strapi/strapi.git
synced 2025-09-22 14:59:07 +00:00
Fix skipped test (#18206)
This commit is contained in:
parent
96a7112e3d
commit
e7e82d57df
@ -268,23 +268,24 @@ describe('useBlocksStore', () => {
|
|||||||
expect(quote).toBeInTheDocument();
|
expect(quote).toBeInTheDocument();
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO fix this test
|
it('renders an unordered list block properly', () => {
|
||||||
it.skip('renders a list block properly', () => {
|
|
||||||
const { result } = renderHook(useBlocksStore, { wrapper: Wrapper });
|
const { result } = renderHook(useBlocksStore, { wrapper: Wrapper });
|
||||||
|
|
||||||
render(
|
render(
|
||||||
result.current.list.renderElement({
|
result.current['list-unordered'].renderElement({
|
||||||
children: 'list item',
|
children: 'list unordered',
|
||||||
element: {
|
element: {
|
||||||
format: 'unordered',
|
format: 'unordered',
|
||||||
},
|
},
|
||||||
attributes: {},
|
attributes: {},
|
||||||
})
|
}),
|
||||||
|
{
|
||||||
|
wrapper: Wrapper,
|
||||||
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
const list = screen.getByRole('list', 'list item');
|
const list = screen.getByRole('list');
|
||||||
expect(list).toBeInTheDocument();
|
expect(list).toBeInTheDocument();
|
||||||
expect(list.tagName).toBe('ul');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('renders a list item block properly', () => {
|
it('renders a list item block properly', () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user