Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks committed Nov 12, 2024
1 parent c1e163f commit b11927a
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 b11927a

Please sign in to comment.