From 3cb7938ac0eb008983f620e67168f5b322c09290 Mon Sep 17 00:00:00 2001 From: cosa65 Date: Thu, 4 Jan 2024 10:09:30 -0300 Subject: [PATCH 1/3] Update prop name to correct one Signed-off-by: cosa65 --- .../data-exploration/generic-gene-table/ComponentActions.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/data-exploration/generic-gene-table/ComponentActions.jsx b/src/components/data-exploration/generic-gene-table/ComponentActions.jsx index 8ae922eac8..17c5f573e7 100644 --- a/src/components/data-exploration/generic-gene-table/ComponentActions.jsx +++ b/src/components/data-exploration/generic-gene-table/ComponentActions.jsx @@ -60,7 +60,7 @@ const ComponentActions = (props) => { } return ( - + From e433fe0aa69c9dc3c5e8121419c791f097783458 Mon Sep 17 00:00:00 2001 From: cosa65 Date: Thu, 4 Jan 2024 10:12:40 -0300 Subject: [PATCH 2/3] Replace dropdown prop menu to overlay instead Signed-off-by: cosa65 --- src/pages/experiments/[experimentId]/data-exploration/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/experiments/[experimentId]/data-exploration/index.jsx b/src/pages/experiments/[experimentId]/data-exploration/index.jsx index 97b8c38b4e..f099138d85 100644 --- a/src/pages/experiments/[experimentId]/data-exploration/index.jsx +++ b/src/pages/experiments/[experimentId]/data-exploration/index.jsx @@ -183,7 +183,7 @@ const ExplorationViewPage = ({ setAddMenuVisible(visible)} > From a171181ed21279b99e00963b87dd0139bad34024 Mon Sep 17 00:00:00 2001 From: cosa65 Date: Thu, 4 Jan 2024 11:27:18 -0300 Subject: [PATCH 3/3] Udate tests Signed-off-by: cosa65 --- .../generic-gene-table/ComponentActions.test.jsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/__test__/components/data-exploration/generic-gene-table/ComponentActions.test.jsx b/src/__test__/components/data-exploration/generic-gene-table/ComponentActions.test.jsx index 6151878f2a..cc7ec90b37 100644 --- a/src/__test__/components/data-exploration/generic-gene-table/ComponentActions.test.jsx +++ b/src/__test__/components/data-exploration/generic-gene-table/ComponentActions.test.jsx @@ -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', () => { @@ -114,7 +114,7 @@ describe('ComponentActions', () => { , ); - 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). @@ -154,7 +154,7 @@ describe('ComponentActions', () => { , ); - 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). @@ -182,7 +182,7 @@ describe('ComponentActions', () => { , ); - 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).