mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 22:44:29 +01:00
Better logs for HappyMessage
This commit is contained in:
@@ -71,9 +71,18 @@ namespace BTCPayServer.Tests
|
|||||||
}
|
}
|
||||||
|
|
||||||
internal void AssertHappyMessage()
|
internal void AssertHappyMessage()
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
Assert.Single(Driver.FindElements(By.ClassName("alert-success")).Where(el => el.Displayed));
|
Assert.Single(Driver.FindElements(By.ClassName("alert-success")).Where(el => el.Displayed));
|
||||||
}
|
}
|
||||||
|
catch (Xunit.Sdk.SingleException)
|
||||||
|
{
|
||||||
|
Logs.Tester.LogInformation("Should have shown happy message, but instead got");
|
||||||
|
Logs.Tester.LogInformation(this.Driver.PageSource);
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static readonly TimeSpan ImplicitWait = TimeSpan.FromSeconds(10);
|
public static readonly TimeSpan ImplicitWait = TimeSpan.FromSeconds(10);
|
||||||
public string Link(string relativeLink)
|
public string Link(string relativeLink)
|
||||||
|
|||||||
Reference in New Issue
Block a user