diff --git a/packages/material-ui-lab/src/DesktopDateRangePicker/DesktopDateRangePicker.test.tsx b/packages/material-ui-lab/src/DesktopDateRangePicker/DesktopDateRangePicker.test.tsx index aaaa9742502a50..a1029ce3372b2e 100644 --- a/packages/material-ui-lab/src/DesktopDateRangePicker/DesktopDateRangePicker.test.tsx +++ b/packages/material-ui-lab/src/DesktopDateRangePicker/DesktopDateRangePicker.test.tsx @@ -176,7 +176,7 @@ describe('', () => { expect(getAllByMuiTest('DateRangeHighlight')).to.have.length(31); }); - it('selects the range from the next month', () => { + it('selects the range from the next month', function test() { const onChangeMock = spy(); render( ', () => { ); fireEvent.click(screen.getByLabelText('Jan 1, 2019')); - fireEvent.click( - screen.getByLabelText('Next month', { selector: ':not([aria-hidden="true"])' }), - ); + // FIXME use `getByRole(role, {hidden: false})` and skip JSDOM once this suite can run in JSDOM + const [visibleButton] = screen.getAllByRole('button', { + hidden: true, + name: 'Next month', + }); + fireEvent.click(visibleButton); fireEvent.click(screen.getByLabelText('Mar 19, 2019')); expect(onChangeMock.callCount).to.equal(2); diff --git a/packages/material-ui-lab/src/PickersDay/PickersDay.tsx b/packages/material-ui-lab/src/PickersDay/PickersDay.tsx index 524af4c9ec7c14..8e6314a0752c13 100644 --- a/packages/material-ui-lab/src/PickersDay/PickersDay.tsx +++ b/packages/material-ui-lab/src/PickersDay/PickersDay.tsx @@ -260,7 +260,7 @@ const PickersDay = React.forwardRef(function PickersDay( ); if (outsideCurrentMonth && !showDaysOutsideCurrentMonth) { - return
; + return
; } return ( diff --git a/packages/material-ui-lab/src/internal/pickers/PickersArrowSwitcher.tsx b/packages/material-ui-lab/src/internal/pickers/PickersArrowSwitcher.tsx index 134d214418ed6b..0287313c00d085 100644 --- a/packages/material-ui-lab/src/internal/pickers/PickersArrowSwitcher.tsx +++ b/packages/material-ui-lab/src/internal/pickers/PickersArrowSwitcher.tsx @@ -96,7 +96,6 @@ const PickersArrowSwitcher = React.forwardRef(function PickersArrowSwitcher(