Skip to content

Commit

Permalink
Fix Popover test.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed Oct 11, 2022
1 parent eaf3cc5 commit 45545a8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/components/src/popover/test/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,10 @@ describe( 'Popover', () => {
} );

describe( 'focus behavior', () => {
it( 'should focus the popover by default when opened', () => {
render( <Popover>Popover content</Popover> );
it( 'should focus the popover container when opened', () => {
render(
<Popover focusOnMount={ true }>Popover content</Popover>
);

expect(
screen.getByText( 'Popover content' ).parentElement
Expand Down

0 comments on commit 45545a8

Please sign in to comment.