implement tests, Tatort List , ComponentEmptyList refactoring
This commit is contained in:
@@ -72,7 +72,7 @@ describe('Button-Anzeige mit Icons', () => {
|
||||
});
|
||||
|
||||
it('zeigt Commit/Cancel Buttons nach Klick auf Edit', async () => {
|
||||
const { getByTestId } = render(NameItemEditor, {
|
||||
const { getByTestId, queryByTestId } = render(NameItemEditor, {
|
||||
props: baseProps
|
||||
});
|
||||
|
||||
@@ -80,5 +80,9 @@ describe('Button-Anzeige mit Icons', () => {
|
||||
|
||||
expect(getByTestId('commit-button')).toBeInTheDocument();
|
||||
expect(getByTestId('cancel-button')).toBeInTheDocument();
|
||||
expect(queryByTestId('edit-button')).toBeNull();
|
||||
expect(queryByTestId('delete-button')).toBeNull();
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user