Skip to content

Commit

Permalink
hm
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahgm committed Dec 7, 2022
1 parent a82b93a commit c1139dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/components/src/Overlay/overlay.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ test('forwards ref', async () => {

render(<TestPopover open={true} ref={ref} />);

// eslint-disable-next-line testing-library/await-async-utils
waitFor(() => {
expect(ref.current).toBeInstanceOf(HTMLDivElement);
});
Expand All @@ -150,6 +151,7 @@ test('minWidth is set', async () => {

const popover = screen.getByRole('presentation');

// eslint-disable-next-line testing-library/await-async-utils
waitFor(() => {
expect(popover).toHaveStyle(
`min-width: ${(ref.current as HTMLElement).offsetWidth}`
Expand Down

0 comments on commit c1139dd

Please sign in to comment.