Skip to content

Conversation

oroztocil
Copy link
Member

@oroztocil oroztocil commented Sep 5, 2025

  • Skips tests that involve use of the NavigationLock component to prevent external navigation. This feature cannot be tested properly after a Selenium/ChromeDriver update which caused the navigation confirmation alert to not be displayed.
  • Splits a NavigationLock test into two methods to cover internal and external navigation separately. Only the latter needs to be skipped.

We agreed to use this as a temporary solution for #57153

@Copilot Copilot AI review requested due to automatic review settings September 5, 2025 10:41
@oroztocil oroztocil requested a review from a team as a code owner September 5, 2025 10:41
@oroztocil oroztocil requested a review from javiercn September 5, 2025 10:41
@github-actions github-actions bot added the area-blazor Includes: Blazor, Razor Components label Sep 5, 2025
@oroztocil oroztocil requested a review from ilonatommy September 5, 2025 10:41
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses unfixable test failures in NavigationLock functionality by skipping tests that rely on browser navigation confirmation alerts, which no longer work after a Selenium/ChromeDriver update.

  • Replaces QuarantinedTest attributes with Fact(Skip = "...") to properly skip problematic tests
  • Splits one test method into separate internal and external navigation test methods
  • Only skips the external navigation test that depends on the broken alert functionality

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/Components/test/E2ETest/Tests/RoutingTest.cs Updates test attribute to skip external navigation test with proper reason
src/Components/test/E2ETest/ServerExecutionTests/NavigationLockPrerenderingTest.cs Splits combined test into separate internal/external methods, skipping only external

@oroztocil oroztocil enabled auto-merge (squash) September 5, 2025 13:20
@oroztocil oroztocil merged commit 56ec592 into main Sep 5, 2025
30 checks passed
@oroztocil oroztocil deleted the oroztocil/navigation-lock-internal-navigation-test branch September 5, 2025 14:58
@dotnet-policy-service dotnet-policy-service bot added this to the 11.0-preview1 milestone Sep 5, 2025
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