Skip to content

Commit 91f32ec

Browse files
committed
test: apply coderabbit suggest
1 parent 19fbe19 commit 91f32ec

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

packages/components/table/__tests__/table.test.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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 () => {

0 commit comments

Comments
 (0)