mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +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")))
|
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.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)
|
public static T AssertViewModel<T>(this IActionResult result)
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<center>
|
<center>
|
||||||
@*Marker for tests*@
|
<hr class="primary" />
|
||||||
<hr id="ErrorPage" class="primary" />
|
|
||||||
</center>
|
</center>
|
||||||
|
|
||||||
<p class="lead text-center">
|
<p class="lead text-center">
|
||||||
|
|
Loading…
Add table
Reference in a new issue