Quarantine NavigationLockPrerenderingTest

Open Beginner friendly
#66,043 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
62/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
csharp
Domain
testing-qa

Research direction

Start with src/Components/test/E2ETest/ServerExecutionTests/NavigationLockPrerenderingTest.cs, especially line 44, and run the named NavigationIsLockedAfterPrerendering test to reproduce the missing-alert failure. Check the E2E test project's existing quarantine conventions. Done means this test is quarantined and the suite no longer reports it as an unexpected failure.

Written by the indexing model from the issue text.

Description

area-blazor test-failure

Failing Test(s)

Microsoft.AspNetCore.Components.E2ETest.ServerExecutionTests.NavigationLockPrerenderingTest.NavigationIsLockedAfterPrerendering

Error Message

OpenQA.Selenium.NoAlertPresentException : no such alert
(Session info: chrome=145.0.7632.159)

Stacktrace

Stack trace
at OpenQA.Selenium.WebDriver.UnpackAndThrowOnError(Response errorResponse, String commandToExecute)
at OpenQA.Selenium.WebDriver.ExecuteAsync(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.WebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.TargetLocator.Alert()
at Microsoft.AspNetCore.Components.E2ETest.ServerExecutionTests.NavigationLockPrerenderingTest.NavigationIsLockedAfterPrerendering() in /home/vsts/work/1/s/src/Components/test/E2ETest/ServerExecutionTests/NavigationLockPrerenderingTest.cs:line 44
at InvokeStub_NavigationLockPrerenderingTest.NavigationIsLockedAfterPrerendering(Object, Object, IntPtr*)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Logs

Console log
[xUnit.net 00:03:03.46]     Microsoft.AspNetCore.Components.E2ETest.ServerExecutionTests.NavigationLockPrerenderingTest.NavigationIsLockedAfterPrerendering [FAIL]
  Failed Microsoft.AspNetCore.Components.E2ETest.ServerExecutionTests.NavigationLockPrerenderingTest.NavigationIsLockedAfterPrerendering [2 s]
  Error Message:
   OpenQA.Selenium.NoAlertPresentException : no such alert
  (Session info: chrome=145.0.7632.159)
  Stack Trace:
     at OpenQA.Selenium.WebDriver.UnpackAndThrowOnError(Response errorResponse, String commandToExecute)
   at OpenQA.Selenium.WebDriver.ExecuteAsync(String driverCommandToExecute, Dictionary`2 parameters)
   at OpenQA.Selenium.WebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
   at OpenQA.Selenium.TargetLocator.Alert()
   at Microsoft.AspNetCore.Components.E2ETest.ServerExecutionTests.NavigationLockPrerenderingTest.NavigationIsLockedAfterPrerendering() in /home/vsts/work/1/s/src/Components/test/E2ETest/ServerExecutionTests/NavigationLockPrerenderingTest.cs:line 44

Failed!  - Failed:     8, Passed:     8, Skipped:     0, Total:    16, Duration: 3 m 3 s - Microsoft.AspNetCore.Components.E2ETests.dll (net10.0)

Build

https://dev.azure.com/dnceng-public/public/_build/results?buildId=1352853

Dominant language
C#
Stars
38.5k
Forks
11.6k
Avg merge
2d 3h
Merged PRs (30d)
243

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/aspnetcore

All issues in dotnet/aspnetcore

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.