Skip to content

Conversation

@ilonatommy
Copy link
Member

@ilonatommy ilonatommy commented Jul 2, 2025

Test redirection with and without NavigationException

Description

  • After flipping the switch, we did not set the newly added tests to use the new way of working. This PR sets the switch on them.
  • Old SSR redirection tests should be testing both: new and old way, at least until we make the new way (no exception) the default. This PR changes them from Fact to Theory with 2 options. It adds 16 new test cases. That includes the scenario that the issue mentions (RedirectEnhancedGetToInternal).
  • Adds a new test for the scenario from the issue, redirecting to a not found path.
  • Nit: changing the test names to include _ makes them easier to read.

Adding more tests in relation to #62519.

@ilonatommy ilonatommy self-assigned this Jul 2, 2025
@ilonatommy ilonatommy requested a review from a team as a code owner July 2, 2025 08:23
@ilonatommy ilonatommy added the area-blazor Includes: Blazor, Razor Components label Jul 2, 2025
@ilonatommy ilonatommy requested a review from javiercn July 2, 2025 08:24
Remove multiple blank lines.
@dotnet-policy-service dotnet-policy-service bot added the pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun label Jul 9, 2025
@ilonatommy ilonatommy closed this Jul 10, 2025
@ilonatommy ilonatommy reopened this Jul 10, 2025
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0-preview7 milestone Jul 10, 2025
@ilonatommy ilonatommy requested review from maraf and oroztocil July 11, 2025 17:01
@ilonatommy ilonatommy removed the pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun label Jul 11, 2025
Copy link
Member

@oroztocil oroztocil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 🚀

@ilonatommy ilonatommy merged commit 08cadfe into dotnet:main Jul 14, 2025
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants