Skip to content

Commit ebbfca0

Browse files
unit test fix in settings
1 parent 7114687 commit ebbfca0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/compass-settings/src/components/settings/general.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ describe('GeneralSettings', function () {
6060
});
6161

6262
it('changes defaultSortOrder value when selecting an option', function () {
63-
const select = within(container).getByTestId('defaultSortOrder');
64-
userEvent.selectOptions(select, '_id: 1 (in ascending order by creation)');
63+
const select = within(container).getByTestId('defaultSortOrder').click();
64+
within(container).getByText('_id: 1').click();
6565
expect(getSettings()).to.have.property('defaultSortOrder', '{ _id: 1 }');
6666
});
6767

0 commit comments

Comments
 (0)