Skip to content

Commit

Permalink
delete irrelevant test
Browse files Browse the repository at this point in the history
  • Loading branch information
sirineJ committed Nov 29, 2024
1 parent f0d2abd commit 0e0b1f0
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/circuit-ui/components/Dialog/Dialog.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,6 @@ describe('Dialog', () => {
expect(props.onClose).not.toHaveBeenCalledOnce();
});

it('should close the dialog when pressing the Escape key if modal', async () => {
render(<Dialog {...props} open isModal />);
await userEvent.keyboard('{Escape}');
act(() => {
vi.advanceTimersByTime(animationDuration);
});
expect(props.onClose).toHaveBeenCalledOnce();
});

it('should close the dialog when modal and pressing the backdrop', async () => {
render(<Dialog {...props} open isModal />);
await userEvent.click(screen.getByRole('dialog', { hidden: true }));
Expand Down

0 comments on commit 0e0b1f0

Please sign in to comment.