Skip to content

Commit e76b913

Browse files
committed
test: 更新单元测试
1 parent 438d0f7 commit e76b913

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/UnitTest/Components/TableTest.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -992,8 +992,9 @@ public async Task PageItemsSource_Ok()
992992
});
993993
});
994994

995-
var pager = cut.FindComponent<Pagination>();
996-
await cut.InvokeAsync(() => pager.Instance.OnPageLinkClick!.Invoke(2));
995+
var items = cut.FindAll(".page-link");
996+
await cut.InvokeAsync(() => items[2].Click());
997+
997998
var activePage = cut.Find(".page-item.active");
998999
Assert.Equal("2", activePage.TextContent);
9991000
}

0 commit comments

Comments
 (0)