Skip to content

Commit be49065

Browse files
committed
Revert "test: 更新单元测试"
This reverts commit f574004.
1 parent 0a81340 commit be49065

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

test/UnitTest/Components/TableTest.cs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,7 @@ public async Task Items_EditForm_Add(InsertRowMode insertMode)
210210
var table = cut.FindComponent<Table<Foo>>();
211211
await cut.InvokeAsync(table.Instance.AddAsync);
212212
Assert.True(updated);
213-
214-
var rows = table.FindAll("tbody tr");
215-
Assert.Equal(2, rows.Count);
213+
Assert.Equal(2, table.Instance.Rows.Count);
216214
}
217215

218216
[Fact]
@@ -8931,11 +8929,8 @@ public async Task TestLoopQueryAsync()
89318929

89328930
public async Task TestDeleteAsync()
89338931
{
8934-
if (Items != null)
8935-
{
8936-
SelectedRows.Add(Items.First());
8937-
await DeleteAsync();
8938-
}
8932+
SelectedRows.Add(Rows[0]);
8933+
await DeleteAsync();
89398934
}
89408935

89418936
public string? TestGetCellClassString(ITableColumn col) => base.GetCellClassString(col, false, false);

0 commit comments

Comments
 (0)