Skip to content

Commit

Permalink
within
Browse files Browse the repository at this point in the history
  • Loading branch information
scurker committed Jan 19, 2024
1 parent 76a9538 commit a546934
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/react/src/components/Combobox/Combobox.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -894,9 +894,7 @@ test('should support portal element for combobox listbox', () => {
<ComboboxOption>Cantaloupe</ComboboxOption>
</Combobox>
);
expect(
element.contains(element.querySelector('[role="listbox"]'))
).toBeTruthy();
expect(within(element).getByRole('listbox')).toBeTruthy();
});

test('should support portal element ref for combobox listbox', () => {
Expand Down

0 comments on commit a546934

Please sign in to comment.