mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-21 22:11:48 +01:00
Fix AssertNoError to detect page exception
This commit is contained in:
parent
d1f567eade
commit
961769ebd0
2 changed files with 3 additions and 3 deletions
|
@ -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<T>(this IActionResult result)
|
||||
|
|
|
@ -13,8 +13,7 @@
|
|||
</div>
|
||||
|
||||
<center>
|
||||
@*Marker for tests*@
|
||||
<hr id="ErrorPage" class="primary" />
|
||||
<hr class="primary" />
|
||||
</center>
|
||||
|
||||
<p class="lead text-center">
|
||||
|
|
Loading…
Add table
Reference in a new issue