Skip to content

Commit

Permalink
use first item in karma
Browse files Browse the repository at this point in the history
  • Loading branch information
m4theushw committed Mar 9, 2022
1 parent 1628ce6 commit 8956bdd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@ describe('<DataGridPro /> - Filter', () => {

// The first combo is hidden and we include hidden elements to make the query faster
// https://github.com/testing-library/dom-testing-library/issues/820#issuecomment-726936225
const select = screen.queryAllByRole('combobox', { name: 'Logic operator', hidden: true })[1];
const select = screen.queryAllByRole('combobox', { name: 'Logic operator', hidden: true })[
isJSDOM ? 1 : 0 // https://github.com/testing-library/dom-testing-library/issues/846
];
fireEvent.change(select, { target: { value: 'or' } });
expect(onFilterModelChange.callCount).to.equal(1);
expect(getColumnValues()).to.deep.equal([]);
Expand Down

0 comments on commit 8956bdd

Please sign in to comment.