Skip to content

Commit

Permalink
fix(1081): open help message on hover
Browse files Browse the repository at this point in the history
  • Loading branch information
tplevko authored and lordrip committed Jun 25, 2024
1 parent 0e273cf commit e828ee6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/FieldDeprecatedPopover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const FieldDeprecatedPopover: FunctionComponent<FieldDeprecatedPopoverProps> = (
bodyContent="Deprecated"
data-testid="property-deprecated-popover"
className="pf-v5-u-my-0"
triggerAction="hover"
>
<Button
variant="plain"
Expand Down
1 change: 1 addition & 0 deletions src/FieldHintPopover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const FieldHintPopover: FunctionComponent<FieldHintPopoverProps> = (props) => {
data-testid="property-description-popover"
footerContent={<Text component={TextVariants.small}>Default: {props.default ?? <i>No default value</i>}</Text>}
className="pf-v5-u-my-0"
triggerAction="hover"
>
<Button
variant="plain"
Expand Down
5 changes: 2 additions & 3 deletions src/__tests__/FieldHintPopover.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ test('<FieldHintPopover> - renders hint icon', async () => {
expect(element).toBeInTheDocument();

await act(async () => {
fireEvent.click(element);
fireEvent.mouseOver(element);
waitFor(() => expect(screen.getByTestId('property-description-popover')).toBeInTheDocument());
});

await waitFor(() => expect(screen.getByTestId('property-description-popover')).toBeInTheDocument());
});

0 comments on commit e828ee6

Please sign in to comment.