Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/Components/test/E2ETest/Tests/StatePersistenceTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,9 @@ public void CanRenderComponentWithPersistedState(bool suppressEnhancedNavigation
}
else
{
// For auto mode, the WebAssembly resource load is blocked on the destination page right before
// Blazor starts. The page loaded here auto-starts Blazor, which would consume the one-shot block flag.
EnhancedNavigationTestUtil.SuppressEnhancedNavigation(this, true);
if (mode == "auto")
{
BlockWebAssemblyResourceLoad();
}
}

if (mode != "auto")
Expand Down Expand Up @@ -419,6 +417,11 @@ private void RenderComponentsWithPersistentStateAndValidate(
streamingCompleted: false,
interactiveRuntime: interactiveRuntime);

if (mode == "auto" && interactiveRuntime == "server")
{
BlockWebAssemblyResourceLoad();
}

Browser.Click(By.Id("call-blazor-start"));
}

Expand Down
Loading