You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browser.Equal("Hello, this is plain text",()=>Browser.Exists(By.TagName("html")).Text);
76
+
77
+
//Check if the fall back because of the non-html response sends a warning
78
+
varlogs=Browser.GetBrowserLogs(LogLevel.Warning);
79
+
Assert.Contains(logs, log =>log.Message.Contains("Enhanced navigation failed for destination")&&log.Message.Contains("Falling back to full page load.")&&!log.Message.Contains("Error"));
76
80
}
77
81
78
82
[Fact]
@@ -465,6 +469,11 @@ public void EnhancedNavNotUsedForNonBlazorDestinations()
465
469
Browser.Exists(By.TagName("nav")).FindElement(By.LinkText("Non-Blazor HTML page")).Click();
466
470
Browser.Equal("This is a non-Blazor endpoint",()=>Browser.Exists(By.TagName("h1")).Text);
467
471
Assert.Equal("undefined",Browser.ExecuteJavaScript<string>("return typeof Blazor"));// Blazor JS is NOT loaded
472
+
473
+
//Check if the fall back because of the non-blazor endpoint navigation sends a warning
474
+
varlogs=Browser.GetBrowserLogs(LogLevel.Warning);
475
+
Assert.Contains(logs, log =>log.Message.Contains("Enhanced navigation failed for destination")&&log.Message.Contains("Falling back to full page load.")&&!log.Message.Contains("Error"));
0 commit comments