Better logs for HappyMessage

This commit is contained in:
nicolas.dorier
2020-01-12 13:54:06 +09:00
parent c95bceef4d
commit 6ac8cd19d3

View File

@@ -71,9 +71,18 @@ namespace BTCPayServer.Tests
}
internal void AssertHappyMessage()
{
try
{
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 string Link(string relativeLink)