Skip to content

Commit cf6489b

Browse files
committed
test: 更新单元测试
1 parent d7735f5 commit cf6489b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/UnitTest/Components/TableTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5544,7 +5544,7 @@ public async Task OnAfterCancelSaveAsync_EditForm()
55445544
}
55455545

55465546
[Fact]
5547-
public async Task OnAfterCancelSaveAsync_InCell()
5547+
public async Task OnAfterCancelSaveAsync_EditForm()
55485548
{
55495549
var localizer = Context.Services.GetRequiredService<IStringLocalizer<Foo>>();
55505550
var items = Foo.GenerateFoo(localizer, 2);
@@ -5579,8 +5579,8 @@ public async Task OnAfterCancelSaveAsync_InCell()
55795579
await cut.InvokeAsync(() => button[0].Click());
55805580

55815581
// 取消按钮
5582-
button = cut.FindAll("tbody tr button");
5583-
await cut.InvokeAsync(() => button[1].Click());
5582+
button = cut.FindAll("tbody tr.is-editform button");
5583+
await cut.InvokeAsync(() => button[0].Click());
55845584
Assert.True(afterCancelSave);
55855585
}
55865586

0 commit comments

Comments
 (0)