From a171181ed21279b99e00963b87dd0139bad34024 Mon Sep 17 00:00:00 2001 From: cosa65 Date: Thu, 4 Jan 2024 11:27:18 -0300 Subject: [PATCH] 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).