fix(theming): fix TimeTable chart issues (#34868)

This commit is contained in:
Gabriel Torres Ruiz
2025-09-02 07:48:13 -03:00
committed by GitHub
parent 4695be5cc5
commit d183969744
64 changed files with 3995 additions and 709 deletions

View File

@@ -119,11 +119,12 @@ test('Should have remove button', async () => {
const props = createProps();
render(<CollectionControl {...props} />);
expect(
await screen.findByRole('button', { name: 'Show info tooltip' }),
).toBeInTheDocument();
const removeButton = await screen.findByRole('img', { name: 'close' });
expect(removeButton).toBeInTheDocument();
expect(props.onChange).toHaveBeenCalledTimes(0);
userEvent.click(screen.getByRole('button', { name: 'Show info tooltip' }));
const buttonElement = removeButton.closest('button');
expect(buttonElement).not.toBeNull();
userEvent.click(buttonElement!);
expect(props.onChange).toHaveBeenCalledWith([]);
});