Skip to content

Commit f92e281

Browse files
test: 更新单元测试
Co-Authored-By: Diego2098 <[email protected]>
1 parent 6a1f2da commit f92e281

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/UnitTest/Components/EditorFormTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ public async Task LookupServiceKey_Ok()
438438
builder.CloseComponent();
439439
});
440440
});
441+
cut.WaitForAssertion(() => cut.Contains("LookupService-Test-1"));
441442
var select = cut.FindComponent<Select<string>>();
442443
var lookupService = Context.Services.GetRequiredService<ILookupService>();
443444
var lookup = await lookupService.GetItemsAsync("FooLookup", "");
@@ -471,7 +472,7 @@ public async Task LookupService_Ok()
471472
builder.CloseComponent();
472473
});
473474
});
474-
cut.WaitForElements(".select");
475+
cut.WaitForAssertion(() => cut.Contains("LookupService-Test-1-async"));
475476
var select = cut.FindComponent<Select<string>>();
476477
var lookup = await lookupService.GetItemsAsync("FooLookup", "");
477478
Assert.NotNull(lookup);

0 commit comments

Comments
 (0)