File tree Expand file tree Collapse file tree
components/Chart/DrillDetail Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,6 +32,14 @@ jest.mock('react-router-dom', () => ({
3232 } ) ,
3333} ) ) ;
3434
35+ jest . mock ( 'src/explore/exploreUtils' , ( ) => ( {
36+ ...jest . requireActual ( 'src/explore/exploreUtils' ) ,
37+ getExploreUrl : jest . fn (
38+ ( { formData } ) =>
39+ `/explore/?dashboard_page_id=&slice_id=${ formData . slice_id } ` ,
40+ ) ,
41+ } ) ) ;
42+
3543const { id : chartId , form_data : formData } = chartQueries [ sliceId ] ;
3644const { slice_name : chartName } = formData ;
3745const store = getMockStoreWithNativeFilters ( ) ;
Original file line number Diff line number Diff line change @@ -119,9 +119,9 @@ describe('Footer', () => {
119119 const dropdownTrigger = screen . getByRole ( 'button' , { name : 'down' } ) ;
120120 userEvent . click ( dropdownTrigger ) ;
121121
122- // Check that the dropdown menu option is visible
122+ // Check that the dropdown menu option is in the document
123123 await waitFor ( ( ) => {
124- expect ( screen . getByText ( 'Create dataset' ) ) . toBeVisible ( ) ;
124+ expect ( screen . getByText ( 'Create dataset' ) ) . toBeInTheDocument ( ) ;
125125 } ) ;
126126 } ) ;
127127
You can’t perform that action at this time.
0 commit comments