Skip to content

Flaky tests CanLazyLoadOnFirstVisit and CanLazyLoadOnRouteChange #23856

Closed
@BrennanConroy

Description

@BrennanConroy

CanLazyLoadOnFirstVisit:

OpenQA.Selenium.WebDriverTimeoutException : Timed out after 2 seconds
---- OpenQA.Selenium.NoSuchElementException : no such element: Unable to locate element: {"method":"id","selector":"use-package-button"}
  (Session info: headless chrome=83.0.4103.116)
  (Driver info: chromedriver=2.43.600210 (68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 10.0.17763 x86_64)
   at OpenQA.Selenium.Support.UI.DefaultWait`1.ThrowTimeoutException(String exceptionMessage, Exception lastException)
   at OpenQA.Selenium.Support.UI.DefaultWait`1.Until[TResult](Func`2 condition)
   at Microsoft.AspNetCore.Components.E2ETest.Tests.WebAssemblyLazyLoadTest.CanLazyLoadOnFirstVisit() in /_/src/Components/test/E2ETest/Tests/WebAssemblyLazyLoadTest.cs:line 69
----- Inner Stack Trace -----
   at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
   at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
   at OpenQA.Selenium.Remote.RemoteWebDriver.FindElement(String mechanism, String value)
   at OpenQA.Selenium.Remote.RemoteWebDriver.FindElementById(String id)
   at OpenQA.Selenium.By.<>c__DisplayClass16_0.<Id>b__0(ISearchContext context)
   at OpenQA.Selenium.Remote.RemoteWebDriver.FindElement(By by)
   at Microsoft.AspNetCore.Components.E2ETest.Tests.WebAssemblyLazyLoadTest.<>c.<CanLazyLoadOnFirstVisit>b__3_0(IWebDriver driver) in /_/src/Components/test/E2ETest/Tests/WebAssemblyLazyLoadTest.cs:line 70
   at OpenQA.Selenium.Support.UI.DefaultWait`1.Until[TResult](Func`2 condition)

CanLazyLoadOnRouteChange:

OpenQA.Selenium.NoSuchElementException : no such element: Unable to locate element: {"method":"id","selector":"use-package-button"}
  (Session info: headless chrome=83.0.4103.116)
  (Driver info: chromedriver=2.43.600210 (68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 10.0.17763 x86_64)
   at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
   at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
   at OpenQA.Selenium.Remote.RemoteWebElement.FindElement(String mechanism, String value)
   at OpenQA.Selenium.Remote.RemoteWebElement.FindElementById(String id)
   at OpenQA.Selenium.Remote.RemoteWebElement.FindElement(By by)
   at Microsoft.AspNetCore.Components.E2ETest.Tests.WebAssemblyLazyLoadTest.CanLazyLoadOnRouteChange() in /_/src/Components/test/E2ETest/Tests/WebAssemblyLazyLoadTest.cs:line 50

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions