1
0
Fork 0
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:
Chaim Lev-Ari 2024-02-14 17:25:37 +02:00 committed by GitHub
parent 2d25bf4afa
commit 4bf18b1d65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 232 additions and 15 deletions

View file

@ -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);
});