File tree Expand file tree Collapse file tree
packages/components/table/__tests__ Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2063,11 +2063,18 @@ describe('Table.vue', () => {
20632063 childRows = wrapper . findAll ( '.el-table__row--level-1' )
20642064 childRows . forEach ( ( item , index ) => {
20652065 if ( index < 2 ) {
2066- expect ( item . attributes ( 'style' ) ) . toBe ( ' ')
2066+ expect ( item . attributes ( 'style' ) ) . not . toContain ( 'display: none ')
20672067 } else {
20682068 expect ( item . attributes ( 'style' ) ) . toContain ( 'display: none' )
20692069 }
20702070 } )
2071+
2072+ wrapper . vm . expandRowKeys . push ( '1999-3-31' )
2073+ await doubleWait ( )
2074+ childRows = wrapper . findAll ( '.el-table__row--level-1' )
2075+ childRows . forEach ( ( item ) => {
2076+ expect ( item . attributes ( 'style' ) ) . not . toContain ( 'display: none' )
2077+ } )
20712078 } )
20722079
20732080 it ( 'expand-row-keys & toggleRowExpansion' , async ( ) => {
You can’t perform that action at this time.
0 commit comments