Add test to cover server dropdown UI for auto-connect

This commit is contained in:
Alejandro Celaya 2024-03-17 12:21:45 +01:00
parent 3192aa6981
commit 36e2ba59c9
2 changed files with 292 additions and 0 deletions

View file

@ -67,4 +67,9 @@ describe('<ManageServersRowDropdown />', () => {
expect(screen.getByText('DeleteServerModal [OPEN]')).toBeInTheDocument();
expect(screen.queryByText('DeleteServerModal [CLOSED]')).not.toBeInTheDocument();
});
it.each([[true], [false]])('renders expected size and icon', (autoConnect) => {
const { container } = setUp(autoConnect);
expect(container).toMatchSnapshot();
});
});