Skip to content

Commit

Permalink
Remove test
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks committed Dec 26, 2024
1 parent d48852e commit 3162228
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions packages/react/src/popover/trigger/PopoverTrigger.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,29 +126,6 @@ describe('<Popover.Trigger />', () => {
expect(trigger).not.to.have.attribute('data-popup-open');
});

it('sticks if the user clicks impatiently', async () => {
await renderFakeTimers(
<Popover.Root delay={0} openOnHover>
<Popover.Trigger />
</Popover.Root>,
);

const trigger = screen.getByRole('button');

fireEvent.mouseEnter(trigger);

clock.tick(PATIENT_CLICK_THRESHOLD - 1);

fireEvent.click(trigger);
fireEvent.mouseLeave(trigger);

expect(trigger).to.have.attribute('data-popup-open');

clock.tick(1);

expect(trigger).to.have.attribute('data-popup-open');
});

it('does not stick if the user clicks patiently', async () => {
await renderFakeTimers(
<Popover.Root delay={0} openOnHover>
Expand Down

0 comments on commit 3162228

Please sign in to comment.