File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -665,8 +665,7 @@ public async Task IsVirtualize_Items_Clearable_Ok()
665665 // 覆盖有搜索条件时,点击清空按钮
666666 // 期望 UI 显示值为默认值
667667 // 期望 下拉框为全数据
668- var input = cut . Find ( ".search-text" ) ;
669- await cut . InvokeAsync ( ( ) => input . Input ( "2" ) ) ;
668+ await cut . InvokeAsync ( ( ) => cut . Instance . TriggerOnSearch ( "2" ) ) ;
670669
671670 // 下拉框仅显示一个选项 Test2
672671 var items = cut . FindAll ( ".dropdown-item" ) ;
@@ -723,8 +722,7 @@ public async Task IsVirtualize_OnQueryAsync_Clearable_Ok()
723722 // 覆盖有搜索条件时,点击清空按钮
724723 // 期望 UI 显示值为默认值
725724 // 期望 下拉框为全数据
726- var input = cut . Find ( ".search-text" ) ;
727- await cut . InvokeAsync ( ( ) => input . Input ( "2" ) ) ;
725+ await cut . InvokeAsync ( ( ) => cut . Instance . TriggerOnSearch ( "2" ) ) ;
728726
729727 // 下拉框仅显示一个选项 Test2
730728 var items = cut . FindAll ( ".dropdown-item" ) ;
You can’t perform that action at this time.
0 commit comments