Skip to content

Improve SSR navigation tests #62536

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

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.
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.

1 participant