Skip to content

Commit 9d52115

Browse files
committed
Fix tests with custom not found page.
1 parent 1c6f97d commit 9d52115

File tree

5 files changed

+3
-2
lines changed

5 files changed

+3
-2
lines changed

src/Components/test/E2ETest/ServerRenderingTests/NoInteractivityTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public void NotFoundSetOnInitialization_ResponseNotStarted_SSR(bool hasReExecuti
157157
// If the response has started, it matters how we arrive the the page setting the not found status code
158158
// because we are rendering client-side. In browser-initiated navigation and form submissions, the headers
159159
// don't contain enhanced-nav and we redirect to the not found page. In link clicking navigation,
160-
// the headers contain enhanced-nav, redirection is not needed and the original url will be preserved.
160+
// the headers contain enhanced-nav, redirection is not needed and the original url is preserved.
161161

162162
[Theory]
163163
[InlineData(true, true)]
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
@page "/render-custom-not-found-page"
2-
@page "/reexecution/render-custom-not-found-page"
32
@layout NotFoundLayout
43

54
<h3 id="test-info">Welcome On Custom Not Found Page</h3>

src/Components/test/testassets/Components.TestServer/RazorComponents/App.razor

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@using Components.TestServer.RazorComponents.Pages.Forms
22
@using Components.WasmMinimal.Pages.NotFound
3+
@using Components.Shared
34

45
@code {
56
[Parameter]

src/Components/test/testassets/Components.WasmMinimal/Routes.razor

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@using Microsoft.AspNetCore.Components.Routing
22
@using Components.WasmMinimal.Pages.NotFound
3+
@using Components.Shared
34
@inject NavigationManager NavigationManager
45

56
@code {

0 commit comments

Comments
 (0)