diff --git a/BTCPayServer.Tests/Extensions.cs b/BTCPayServer.Tests/Extensions.cs index d6d1e724c..3514ba6d4 100644 --- a/BTCPayServer.Tests/Extensions.cs +++ b/BTCPayServer.Tests/Extensions.cs @@ -33,7 +33,8 @@ namespace BTCPayServer.Tests foreach (var dangerAlert in driver.FindElements(By.ClassName("alert-danger"))) Assert.False(dangerAlert.Displayed, $"No alert should be displayed, but found this on {driver.Url}: {dangerAlert.Text}"); } - Assert.DoesNotContain("ErrorPage", driver.PageSource); + Assert.DoesNotContain("errors", driver.Url); + Assert.DoesNotContain("Error", driver.Title, StringComparison.OrdinalIgnoreCase); } public static T AssertViewModel(this IActionResult result) diff --git a/BTCPayServer/Views/UIError/_LayoutError.cshtml b/BTCPayServer/Views/UIError/_LayoutError.cshtml index ab4c766a5..3fe8fb9a1 100644 --- a/BTCPayServer/Views/UIError/_LayoutError.cshtml +++ b/BTCPayServer/Views/UIError/_LayoutError.cshtml @@ -13,8 +13,7 @@
- @*Marker for tests*@ -
+