mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-05-06 11:43:03 +03:00
Add test to cover server dropdown UI for auto-connect
This commit is contained in:
parent
3192aa6981
commit
36e2ba59c9
2 changed files with 292 additions and 0 deletions
test/servers
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue