@@ -153,8 +153,8 @@ describe('AnalysisDataView', () => {
153153
154154 const expirationGroup = mockedData . expirationGroups [ 1 ]
155155
156- fireEvent . mouseEnter ( screen . getByTestId ( `circle -${ expirationGroup . threshold } -${ expirationGroup . total * 2 } ` ) )
157- expect ( screen . getByTestId ( 'area -tooltip-circle ' ) ) . toHaveTextContent ( `~${ formatBytes ( expirationGroup . total * 2 , 3 ) } ` )
156+ fireEvent . mouseEnter ( screen . getByTestId ( `bar -${ expirationGroup . threshold } -${ expirationGroup . total * 2 } ` ) )
157+ expect ( screen . getByTestId ( 'bar -tooltip' ) ) . toHaveTextContent ( `~${ formatBytes ( expirationGroup . total * 2 , 3 ) } ` )
158158 } )
159159
160160 it ( 'should render properly not extrapolated data for ttl chart after switching off' , ( ) => {
@@ -173,8 +173,8 @@ describe('AnalysisDataView', () => {
173173
174174 const expirationGroup = mockedData . expirationGroups [ 1 ]
175175
176- fireEvent . mouseEnter ( screen . getByTestId ( `circle -${ expirationGroup . threshold } -${ expirationGroup . total } ` ) )
177- expect ( screen . getByTestId ( 'area -tooltip-circle ' ) ) . toHaveTextContent ( `${ formatBytes ( expirationGroup . total , 3 ) } ` )
176+ fireEvent . mouseEnter ( screen . getByTestId ( `bar -${ expirationGroup . threshold } -${ expirationGroup . total } ` ) )
177+ expect ( screen . getByTestId ( 'bar -tooltip' ) ) . toHaveTextContent ( `${ formatBytes ( expirationGroup . total , 3 ) } ` )
178178 } )
179179
180180 it ( 'should render properly extrapolated data for top namespaces table' , ( ) => {
@@ -240,8 +240,8 @@ describe('AnalysisDataView', () => {
240240
241241 const expirationGroup = mockedData . expirationGroups [ 1 ]
242242
243- fireEvent . mouseEnter ( screen . getByTestId ( `circle -${ expirationGroup . threshold } -${ expirationGroup . total } ` ) )
244- expect ( screen . getByTestId ( 'area -tooltip-circle ' ) ) . toHaveTextContent ( `${ formatBytes ( expirationGroup . total , 3 ) } ` )
243+ fireEvent . mouseEnter ( screen . getByTestId ( `bar -${ expirationGroup . threshold } -${ expirationGroup . total } ` ) )
244+ expect ( screen . getByTestId ( 'bar -tooltip' ) ) . toHaveTextContent ( `${ formatBytes ( expirationGroup . total , 3 ) } ` )
245245
246246 const nspTopKeyItem = mockedData . topKeysNsp [ 0 ]
247247 expect ( screen . getByTestId ( `nsp-usedMemory-value=${ nspTopKeyItem . memory } ` ) )
0 commit comments