Skip to content

Commit

Permalink
test: Fix act errors in LanguagePicker test (#21395)
Browse files Browse the repository at this point in the history
  • Loading branch information
lyndsiWilliams committed Sep 9, 2022
1 parent ac7dcc3 commit a2ea5ef
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,23 @@ const mockedProps = {
},
};

test('should render', () => {
test('should render', async () => {
const { container } = render(
<Menu>
<LanguagePicker {...mockedProps} />
</Menu>,
);
expect(await screen.findByRole('button')).toBeInTheDocument();
expect(container).toBeInTheDocument();
});

test('should render the language picker', () => {
test('should render the language picker', async () => {
render(
<Menu>
<LanguagePicker {...mockedProps} />
</Menu>,
);
expect(screen.getByLabelText('Languages')).toBeInTheDocument();
expect(await screen.findByLabelText('Languages')).toBeInTheDocument();
});

test('should render the items', async () => {
Expand Down

0 comments on commit a2ea5ef

Please sign in to comment.