Skip to content

Commit 217e8dd

Browse files
committed
Fix interactivity tests.
1 parent 3b89c4b commit 217e8dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Components/test/testassets/Components.WasmMinimal/Pages/NotFound/RedirectionNotFoundComponent.razor

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<h1>Original page</h1>
55

66
<p id="test-info">Any content</p>
7-
<a id="link-to-not-existing-page" href="@(_nonExistingPath)">
7+
<a id="link-to-not-existing-page" href="@_nonExistingPath">
88
Go to not-existing-page
99
</a>
1010

@@ -13,11 +13,11 @@
1313
[SupplyParameterFromQuery(Name = "navigate-programmatically")]
1414
public bool? NavigateProgrammatically { get; set; }
1515

16-
private string? _nonExistingPath;
16+
private string _nonExistingPath = string.Empty;
1717

1818
protected override void OnInitialized()
1919
{
20-
_nonExistingPath = $"{NavigationManager.BaseUri}not-existing-page";
20+
_nonExistingPath = $"{NavigationManager.BaseUri}reexecution/not-existing-page";
2121
if (NavigateProgrammatically == true)
2222
{
2323
NavigationManager.NavigateTo(_nonExistingPath);

0 commit comments

Comments
 (0)