Skip to content

Commit

Permalink
setup user event in test
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeeshanTamboli committed Apr 23, 2024
1 parent 9f807c0 commit 632af7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/mui-material/src/Autocomplete/Autocomplete.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1529,9 +1529,9 @@ describe('<Autocomplete />', () => {
// <button> since it has "pointer-events: none"
const popupIndicator = container.querySelector(`.${classes.endAdornment}`);

// TODO v6: refactor using userEvent.setup() which doesn't work until we drop
// iOS Safari 12.x support, see: https://github.com/mui/material-ui/pull/38325
await userEvent.pointer([
const user = userEvent.setup();

await user.pointer([
// this sequence does not work with fireEvent
// 1. point the cursor somewhere in the textbox and hold down MouseLeft
{ keys: '[MouseLeft>]', target: textbox },
Expand Down

0 comments on commit 632af7b

Please sign in to comment.