mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
feat(ui): write tests [EE-6685] (#11081)
This commit is contained in:
parent
2d25bf4afa
commit
4bf18b1d65
10 changed files with 232 additions and 15 deletions
|
@ -42,7 +42,7 @@ test('should call onSelect when clicked with id', async () => {
|
|||
const { findByText } = renderComponent(options, options[1].id, onSelect);
|
||||
|
||||
const heading = await findByText(options[0].label);
|
||||
userEvent.click(heading);
|
||||
await userEvent.click(heading);
|
||||
|
||||
expect(onSelect).toHaveBeenCalledWith(options[0].id);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue