Skip to content

Commit c431211

Browse files
committed
test: 更新单元测试
1 parent 7768a46 commit c431211

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/UnitTest/Components/AutoCompleteTest.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,7 @@ public async Task OnBlurAsync_Ok()
265265
return Task.CompletedTask;
266266
});
267267
});
268-
var input = cut.Find(".form-control");
269-
await cut.InvokeAsync(() => input.Blur());
268+
await cut.InvokeAsync(() => cut.Instance.TriggerBlur());
270269
Assert.Equal("test1", val);
271270
}
272271

0 commit comments

Comments
 (0)