Skip to content

Commit

Permalink
Merge branch 'master' into bug-fixes-2024
Browse files Browse the repository at this point in the history
  • Loading branch information
cosa65 authored Jan 4, 2024
2 parents 7dd2724 + 1a3082b commit ecf54fa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ describe('ComponentActions', () => {

const dropdown = component.find(Dropdown);
expect(dropdown.length).toEqual(1);
expect(dropdown.props().menu.type.name).toEqual('Menu');
expect(dropdown.props().menu.props.children.length).toEqual(3);
expect(dropdown.props().overlay.type.name).toEqual('Menu');
expect(dropdown.props().overlay.props.children.length).toEqual(3);
});

it('Renders correctly when there are no selected genes', () => {
Expand Down Expand Up @@ -114,7 +114,7 @@ describe('ComponentActions', () => {
</Provider>,
);

const menuButtons = component.find(Dropdown).props().menu;
const menuButtons = component.find(Dropdown).props().overlay;
menuButtons.props.children[0].props.onClick();

// Wait for side-effect to propagate (properties loading and loaded).
Expand Down Expand Up @@ -154,7 +154,7 @@ describe('ComponentActions', () => {
</Provider>,
);

const menuButtons = component.find(Dropdown).props().menu;
const menuButtons = component.find(Dropdown).props().overlay;
menuButtons.props.children[1].props.onClick();

// Wait for side-effect to propagate (genes loaded).
Expand Down Expand Up @@ -182,7 +182,7 @@ describe('ComponentActions', () => {
</Provider>,
);

const menuButtons = component.find(Dropdown).props().menu;
const menuButtons = component.find(Dropdown).props().overlay;
menuButtons.props.children[2].props.onClick();

// Wait for side-effect to propagate (properties loading and loaded).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const ComponentActions = (props) => {
}

return (
<Dropdown arrow type='link' size='small' menu={menu} trigger={['click']}>
<Dropdown arrow type='link' size='small' overlay={menu} trigger={['click']}>
<Button type='link' size='small'>
{name}
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ const ExplorationViewPage = ({
<Dropdown
trigger={['click']}
key='search-menu-dropdown'
menu={searchMenu}
overlay={searchMenu}
open={addMenuVisible}
onOpenChange={(visible) => setAddMenuVisible(visible)}
>
Expand Down

0 comments on commit ecf54fa

Please sign in to comment.