Skip to content

Commit

Permalink
chore(TimePicker): re-enabled unit test (#10810)
Browse files Browse the repository at this point in the history
  • Loading branch information
thatblindgeye authored Aug 12, 2024
1 parent 19631bb commit a010c74
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ describe('TimePicker', () => {
test('Renders in strict mode', () => {
const validateTime = (_time: string) => true;

// const consoleError = jest.spyOn(console, 'error');
const consoleError = jest.spyOn(console, 'error');
render(
<React.StrictMode>
<TimePicker value={'00:00'} validateTime={validateTime} aria-label="time picker" />
</React.StrictMode>
);
// TODO: investigate why this assertion is failing with issue #10482
// expect(consoleError).not.toHaveBeenCalled();

expect(consoleError).not.toHaveBeenCalled();
expect(screen.getByLabelText('time picker')).not.toHaveClass('pf-m-error');
});

Expand Down

0 comments on commit a010c74

Please sign in to comment.