Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
abailly-akamai committed Mar 1, 2024
1 parent 210fa42 commit 877e206
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
8 changes: 1 addition & 7 deletions packages/manager/src/components/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,7 @@ import type { TooltipProps } from '@mui/material/Tooltip';
* Tooltips display informative text when users hover over, focus on, or tap an element.
*/
export const Tooltip = (props: TooltipProps) => {
return (
<_Tooltip
data-qa-tooltip={props.title}
{...props}
disableInteractive={false}
/>
);
return <_Tooltip data-qa-tooltip={props.title} {...props} />;
};
export { tooltipClasses };
export type { TooltipProps };
Original file line number Diff line number Diff line change
Expand Up @@ -94,21 +94,13 @@ describe('PlacementGroupsCreateDrawer', () => {
fireEvent.click(selectedRegionOption);
});

const affinityTypeSelect = getByPlaceholderText('Select an Affinity Type');
fireEvent.focus(affinityTypeSelect);
fireEvent.change(affinityTypeSelect, { target: { value: 'Affinity' } });
await waitFor(() => {
const selectedAffinityTypeOption = getByText('Affinity');
fireEvent.click(selectedAffinityTypeOption);
});

fireEvent.click(getByRole('button', { name: 'Create Placement Group' }));

await waitFor(() => {
expect(
queryMocks.useCreatePlacementGroup().mutateAsync
).toHaveBeenCalledWith({
affinity_type: 'affinity',
affinity_type: 'anti_affinity',
is_strict: true,
label: 'my-label',
region: 'us-east',
Expand Down

0 comments on commit 877e206

Please sign in to comment.