Skip to content

Commit 40babca

Browse files
committed
Replace 'LifecycleEvent' with 'WaitUntilState'
1 parent 5e16983 commit 40babca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ProjectTemplates/BlazorTemplates.Tests/BlazorWasmTemplateTest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -441,12 +441,12 @@ await Task.WhenAll(
441441
if (usesAuth)
442442
{
443443
await Task.WhenAll(
444-
page.WaitForNavigationAsync(new() { UrlString = "**/Identity/Account/Login**", WaitUntil = LifecycleEvent.Networkidle }),
444+
page.WaitForNavigationAsync(new() { UrlString = "**/Identity/Account/Login**", WaitUntil = WaitUntilState.NetworkIdle }),
445445
page.ClickAsync("text=Log in"));
446446

447447
await Task.WhenAll(
448448
page.WaitForSelectorAsync("[name=\"Input.Email\"]"),
449-
page.WaitForNavigationAsync(new() { UrlString = "**/Identity/Account/Register**", WaitUntil = LifecycleEvent.Networkidle }),
449+
page.WaitForNavigationAsync(new() { UrlString = "**/Identity/Account/Register**", WaitUntil = WaitUntilState.NetworkIdle }),
450450
page.ClickAsync("text=Register as a new user"));
451451

452452
var userName = $"{Guid.NewGuid()}@example.com";
@@ -458,12 +458,12 @@ await Task.WhenAll(
458458

459459
// We will be redirected to the RegisterConfirmation
460460
await Task.WhenAll(
461-
page.WaitForNavigationAsync(new() { UrlString = "**/Identity/Account/RegisterConfirmation**", WaitUntil = LifecycleEvent.Networkidle }),
461+
page.WaitForNavigationAsync(new() { UrlString = "**/Identity/Account/RegisterConfirmation**", WaitUntil = WaitUntilState.NetworkIdle }),
462462
page.ClickAsync("#registerSubmit"));
463463

464464
// We will be redirected to the ConfirmEmail
465465
await Task.WhenAll(
466-
page.WaitForNavigationAsync(new() { UrlString = "**/Identity/Account/ConfirmEmail**", WaitUntil = LifecycleEvent.Networkidle }),
466+
page.WaitForNavigationAsync(new() { UrlString = "**/Identity/Account/ConfirmEmail**", WaitUntil = WaitUntilState.NetworkIdle }),
467467
page.ClickAsync("text=Click here to confirm your account"));
468468

469469
// Now we can login

0 commit comments

Comments
 (0)