Skip to content

Commit 5df3396

Browse files
committed
!3773 feat(#I6B34R): add unit test for table
* test: update PageItems unit test Co-authored-by: alex chow <zhouchuanglin@gmail.com>
1 parent b02a373 commit 5df3396

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

test/UnitTest/Components/TableTest.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,13 @@ public void PageItems_Ok()
792792

793793
var table = cut.FindComponent<Table<Foo>>();
794794
Assert.Equal(20, table.Instance.PageItems);
795+
796+
// change page items
797+
var select = cut.FindAll(".table-page-info .select .dropdown-item");
798+
Assert.Equal(6, select.Count);
799+
800+
var item = select.ElementAt(1);
801+
cut.InvokeAsync(() => item.Click());
795802
}
796803

797804
[Fact]

0 commit comments

Comments
 (0)