mirror of
https://github.com/strapi/strapi.git
synced 2025-09-22 06:50:51 +00:00
Fix skipped test (#18206)
This commit is contained in:
parent
96a7112e3d
commit
e7e82d57df
@ -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', () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user