File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
packages/main/src/components/AnalyticalTable Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -381,17 +381,14 @@ describe('AnalyticalTable', () => {
381381 function doubleClickResizer ( selector : string , columnName : string , outerWidth : number ) {
382382 cy . get ( selector )
383383 . realHover ( )
384- . should ( ( ) => {
385- const color = getComputedStyle ( document . documentElement )
386- . getPropertyValue ( '--sapContent_DragAndDropActiveColor' )
387- . trim ( ) ;
388- // eslint-disable-next-line @typescript-eslint/no-unused-expressions
389- expect ( color ) . to . not . be . empty ;
384+ . should ( ( $el ) => {
385+ const color = getComputedStyle ( $el [ 0 ] ) . getPropertyValue ( 'background-color' ) ;
386+ expect ( color ) . to . equal ( cssVarToRgb ( '--sapContent_DragAndDropActiveColor' ) ) ;
390387 } )
391- . should ( 'have.css' , 'background-color' , cssVarToRgb ( '--sapContent_DragAndDropActiveColor' ) )
392388 . dblclick ( )
393389 // fallback
394390 . realClick ( { clickCount : 2 } ) ;
391+
395392 cy . get ( `[data-column-id="${ columnName } "]` )
396393 . invoke ( 'outerWidth' )
397394 . should ( ( $width : number ) => {
You can’t perform that action at this time.
0 commit comments