@@ -153,8 +153,8 @@ describe('AnalysisDataView', () => {
153
153
154
154
const expirationGroup = mockedData . expirationGroups [ 1 ]
155
155
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 ) } ` )
158
158
} )
159
159
160
160
it ( 'should render properly not extrapolated data for ttl chart after switching off' , ( ) => {
@@ -173,8 +173,8 @@ describe('AnalysisDataView', () => {
173
173
174
174
const expirationGroup = mockedData . expirationGroups [ 1 ]
175
175
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 ) } ` )
178
178
} )
179
179
180
180
it ( 'should render properly extrapolated data for top namespaces table' , ( ) => {
@@ -240,8 +240,8 @@ describe('AnalysisDataView', () => {
240
240
241
241
const expirationGroup = mockedData . expirationGroups [ 1 ]
242
242
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 ) } ` )
245
245
246
246
const nspTopKeyItem = mockedData . topKeysNsp [ 0 ]
247
247
expect ( screen . getByTestId ( `nsp-usedMemory-value=${ nspTopKeyItem . memory } ` ) )
0 commit comments