Skip to content

Commit

Permalink
test: add DeleteModal test
Browse files Browse the repository at this point in the history
  • Loading branch information
adamviktora committed Oct 9, 2024
1 parent a95538c commit b0dd0b1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/module/src/DeleteModal/__tests__/DeleteModal.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from 'react';
import { render, screen } from '@testing-library/react';
import '@testing-library/jest-dom';
import { DeleteModal } from '../DeleteModal';

test('Renders with confirmation text input by default', () => {
render(
<DeleteModal title="Delete project?" deleteName="project-123" onDelete={() => {}} onClose={() => {}}>
Message
</DeleteModal>
);

expect(screen.getByRole('textbox')).toBeVisible();
});

0 comments on commit b0dd0b1

Please sign in to comment.