Skip to content

Commit

Permalink
chore: removes unnecessary tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bsunderhus committed Oct 13, 2022
1 parent 41973e7 commit 6b090e0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 117 deletions.
103 changes: 0 additions & 103 deletions packages/react-components/react-dialog/e2e/DialogTrigger.e2e.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -95,20 +95,6 @@ describe('DialogTrigger', () => {
`);
});

it('should not open dialog when aria-disabled is true', () => {
const requestOpenChange = jest.fn();
mockUseDialogContext({ requestOpenChange });

const { getByRole } = render(
<DialogTrigger disableButtonEnhancement>
<button aria-disabled>trigger</button>
</DialogTrigger>,
);
fireEvent.click(getByRole('button'));

expect(requestOpenChange).toBeCalledTimes(0);
});

it('should open dialog when aria-disabled is false', () => {
const requestOpenChange = jest.fn();
mockUseDialogContext({ requestOpenChange });
Expand Down

0 comments on commit 6b090e0

Please sign in to comment.