mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-11 10:03:51 +00:00
Refactor and fix main app tests
This commit is contained in:
@@ -58,11 +58,11 @@ describe('<ManageServers />', () => {
|
||||
|
||||
expect(screen.getAllByRole('columnheader')).toHaveLength(expectedCols);
|
||||
if (server.autoConnect) {
|
||||
expect(screen.getByText(/\[YES\]/)).toBeInTheDocument();
|
||||
expect(screen.queryByText(/\[NO\]/)).not.toBeInTheDocument();
|
||||
expect(screen.getByText(/\[YES]/)).toBeInTheDocument();
|
||||
expect(screen.queryByText(/\[NO]/)).not.toBeInTheDocument();
|
||||
} else {
|
||||
expect(screen.queryByText(/\[YES\]/)).not.toBeInTheDocument();
|
||||
expect(screen.getByText(/\[NO\]/)).toBeInTheDocument();
|
||||
expect(screen.queryByText(/\[YES]/)).not.toBeInTheDocument();
|
||||
expect(screen.getByText(/\[NO]/)).toBeInTheDocument();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user