Skip to content

Commit

Permalink
Add fixme comment for the picker test
Browse files Browse the repository at this point in the history
  • Loading branch information
arminmeh committed Nov 8, 2024
1 parent 30582d1 commit b2f092b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ describe('<MobileDateRangePicker /> - Describes', () => {
}

fireEvent.click(
screen.getAllByRole('gridcell', {
screen.getByRole('gridcell', {
name: adapterToUse.getDate(newValue[setEndDate ? 1 : 0]).toString(),
})[0],
}),
);

// Close the picker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ export const testPickerOpenCloseLifeCycle: DescribeValueTestSuite<any, 'picker'>
const newValue = setNewValue(values[0], { isOpened: true, selectSection, pressKey });

// Dismiss the picker
// FIXME: document.activeElement is not modal with React 19 for MobileDateRangePicker
fireEvent.keyDown(document.activeElement!, { key: 'Escape' });
expect(onChange.callCount).to.equal(getExpectedOnChangeCount(componentFamily, pickerParams));
expect(onAccept.callCount).to.equal(1);
Expand Down

0 comments on commit b2f092b

Please sign in to comment.