diff --git a/src/plugins/unified_search/public/query_string_input/no_data_popover.test.tsx b/src/plugins/unified_search/public/query_string_input/no_data_popover.test.tsx index f80fc68494091..8d41fac7ad29e 100644 --- a/src/plugins/unified_search/public/query_string_input/no_data_popover.test.tsx +++ b/src/plugins/unified_search/public/query_string_input/no_data_popover.test.tsx @@ -75,7 +75,7 @@ describe('NoDataPopover', () => { }; const instance = mount(); act(() => { - instance.find(EuiTourStep).prop('footerAction')!.props.onClick(); + instance.find('button[data-test-subj="noDataPopoverDismissButton"]').simulate('click'); }); instance.setProps({ ...props }); expect(props.storage.set).toHaveBeenCalledWith(expect.any(String), true);