Skip to content

Commit

Permalink
dropdown fixes
Browse files Browse the repository at this point in the history
Signed-off-by: armen5 <[email protected]>
  • Loading branch information
armen5 committed Oct 21, 2020
1 parent 6bed892 commit 758ef6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/DropdownCard/Dropdown/__tests__/Dropdown.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ import MenuItem from '@material-ui/core/MenuItem';

describe('Dropdown Component', () => {
it('Renders', () => {
const { getByTestId } = render(
const { getByText } = render(
<KuberaThemeProvider platform="kubera-chaos">
<Dropdown anchorEl={null} data-id="dropdownElement">
<Dropdown anchorEl={null}>
<MenuItem>View PVC</MenuItem>
<MenuItem>Edit PVC</MenuItem>
<MenuItem>Delete PVC</MenuItem>
</Dropdown>
</KuberaThemeProvider>
);

expect(getByTestId('dropdownElement')).toBeTruthy();
expect(getByText('Open Menu')).toBeTruthy();
});
});

0 comments on commit 758ef6e

Please sign in to comment.