@@ -3870,12 +3870,12 @@ describe('AnalyticalTable', () => {
38703870 cy . get ( '[data-component-name="AnalyticalTableContainer"]' ) . should (
38713871 'have.css' ,
38723872 'width' ,
3873- withVertScrollbar ? '1293px ' : '1306px' ,
3873+ withVertScrollbar ? '1290px ' : '1306px' ,
38743874 ) ;
38753875 cy . get ( '[data-component-name="AnalyticalTableBody"]' ) . should (
38763876 'have.css' ,
38773877 'width' ,
3878- withVertScrollbar ? '1293px ' : '1306px' ,
3878+ withVertScrollbar ? '1290px ' : '1306px' ,
38793879 ) ;
38803880
38813881 const _data2 = [
@@ -3942,32 +3942,31 @@ describe('AnalyticalTable', () => {
39423942 cy . get ( '[data-component-name="AnalyticalTableContainer"]' ) . should (
39433943 'have.css' ,
39443944 'width' ,
3945- withVertScrollbar ? '1293px' : '1306px' ,
3946- ) ;
3947- cy . get ( '[data-component-name="AnalyticalTableBody"]' ) . should (
3948- 'have.css' ,
3949- 'width' ,
3950- withVertScrollbar ? '1293px' : '1306px' ,
3945+ withVertScrollbar ? '1290px' : '1306px' ,
39513946 ) ;
3947+ cy . get ( '[data-component-name="AnalyticalTableBody"]' ) . should ( ( $el ) => {
3948+ const width = Math . round ( parseFloat ( $el . css ( 'width' ) , 10 ) ) ;
3949+ expect ( width ) . to . equal ( withVertScrollbar ? 1290 : 1306 ) ;
3950+ } ) ;
39523951
39533952 cy . mount ( < AnalyticalTable data = { data } columns = { columns } visibleRows = { visibleRows } /> ) ;
39543953 cy . get ( '[data-component-name="AnalyticalTableContainer"]' ) . should (
39553954 'have.css' ,
39563955 'width' ,
3957- withVertScrollbar ? '1293px ' : '1306px' ,
3956+ withVertScrollbar ? '1290px ' : '1306px' ,
39583957 ) ;
39593958 cy . get ( '[data-component-name="AnalyticalTableBody"]' ) . should (
39603959 'have.css' ,
39613960 'width' ,
3962- withVertScrollbar ? '1293px ' : '1306px' ,
3961+ withVertScrollbar ? '1290px ' : '1306px' ,
39633962 ) ;
39643963
39653964 const _columns3 = [ ...columns , { id : 'long' , Header : 'Long' , width : 2000 , Cell : 'Long' } ] ;
39663965 cy . mount ( < AnalyticalTable data = { data } columns = { _columns3 } visibleRows = { visibleRows } /> ) ;
39673966 cy . get ( '[data-component-name="AnalyticalTableContainer"]' ) . should (
39683967 'have.css' ,
39693968 'width' ,
3970- withVertScrollbar ? '1293px ' : '1306px' ,
3969+ withVertScrollbar ? '1290px ' : '1306px' ,
39713970 ) ;
39723971 cy . get ( '[data-component-name="AnalyticalTableBody"]' ) . should ( 'have.css' , 'width' , '2240px' ) ; // 4 * 60 (minWidth) + 2000
39733972
@@ -3980,7 +3979,7 @@ describe('AnalyticalTable', () => {
39803979 cy . get ( '[data-component-name="AnalyticalTableContainer"]' ) . should (
39813980 'have.css' ,
39823981 'width' ,
3983- withVertScrollbar ? '1293px ' : '1306px' ,
3982+ withVertScrollbar ? '1290px ' : '1306px' ,
39843983 ) ;
39853984 cy . get ( '[data-component-name="AnalyticalTableBody"]' ) . should ( 'have.css' , 'width' , '1440px' ) ; // 4 * 60 (minWidth) + 1000 (maxWidth) + 200
39863985 } ) ;
0 commit comments