Skip to content
Prev Previous commit
Next Next commit
[base-ui][Switch] fixed failing test
  • Loading branch information
KirankumarAmbati committed Feb 3, 2024
commit 354030ffab265b75b6905df431cccbb571c40a95
4 changes: 2 additions & 2 deletions packages/mui-base/src/useSwitch/useSwitch.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ describe('useSwitch', () => {
render(<Switch />);

act(() => {
screen.getByRole('checkbox').click();
screen.getByRole('switch').click();
});

expect(handleChange.callCount).to.equal(1);
Expand All @@ -85,7 +85,7 @@ describe('useSwitch', () => {
return <input {...getInputProps()} />;
}
render(<Switch />);
const checkbox = screen.getByRole('checkbox');
const checkbox = screen.getByRole('switch');

simulatePointerDevice();
act(() => {
Expand Down