chore: Upgrade antd@4.10.3 (#22007)

This commit is contained in:
Geido
2022-11-17 22:48:54 +02:00
committed by GitHub
parent 83d990db4f
commit d352b74ff4
8 changed files with 534 additions and 543 deletions

View File

@@ -216,12 +216,8 @@ test('table multi select retain all the values selected', async () => {
userEvent.click(tableSelect);
expect(
await screen.findByRole('option', { name: 'table_a' }),
).toBeInTheDocument();
act(() => {
const item = screen.getAllByText('table_a');
const item = screen.getAllByText('table_b');
userEvent.click(item[item.length - 1]);
});
@@ -230,17 +226,13 @@ test('table multi select retain all the values selected', async () => {
userEvent.click(item[item.length - 1]);
});
const selectedValueContainer = getSelectItemContainer(tableSelect);
expect(screen.getByRole('option', { name: 'table_b' })).toHaveAttribute(
'aria-selected',
'true',
);
expect(selectedValueContainer).toHaveLength(2);
expect(
await within(selectedValueContainer?.[0] as HTMLElement).findByText(
'table_a',
),
).toBeInTheDocument();
expect(
await within(selectedValueContainer?.[1] as HTMLElement).findByText(
'table_c',
),
).toBeInTheDocument();
expect(screen.getByRole('option', { name: 'table_c' })).toHaveAttribute(
'aria-selected',
'true',
);
});