Skip to content

Commit 01e7c51

Browse files
author
huangshuwei
committed
update virtual scroll unit test
1 parent f7ba867 commit 01e7c51

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/unit/specs/__snapshots__/ve-table-virtual-scroll.spec.js.snap

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
exports[`veTable virtual scroll render same row height 1`] = `
44
<div class="ve-table">
55
<div class="ve-table-container ve-table-border-around ve-table-virtual-scroll" style="max-height: 500px; height: 500px;">
6-
<div class="ve-table-virtual-phantom"></div>
6+
<div class="ve-table-virtual-phantom">
7+
<div style="width: 100%;"></div>
8+
</div>
79
<table class="ve-table-content ve-table-border-x">
810
<colgroup>
911
<col style="width: 200px;">

tests/unit/specs/ve-table-virtual-scroll.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ describe("veTable virtual scroll", () => {
396396

397397
await later();
398398

399-
expect(wrapper.find(".ve-table-expand-tr").exists()).toBe(true);
399+
expect(wrapper.find(".ve-table-row-expand-icon").exists()).toBe(true);
400400

401401
// default buffer=1
402402
expect(wrapper.findAll(".ve-table-body-tr").length).toBeGreaterThan(

0 commit comments

Comments
 (0)