Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks committed Nov 14, 2024
1 parent 5d01cd3 commit 14657b6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ describe('<Popover.Positioner />', () => {
}));

describe('prop: keepMounted', () => {
it('has inert attribute when closed', async () => {
it('has hidden attribute when closed', async () => {
await render(
<Popover.Root animated={false}>
<Popover.Positioner keepMounted data-testid="positioner" />
</Popover.Root>,
);

expect(screen.getByTestId('positioner')).to.have.attribute('inert');
expect(screen.getByTestId('positioner')).to.have.attribute('hidden');
});

it('does not have inert attribute when open', async () => {
Expand Down

0 comments on commit 14657b6

Please sign in to comment.