Testing happy messages, fix approval button

This commit is contained in:
nicolas.dorier
2019-11-16 15:20:54 +09:00
parent 8ebac28ccf
commit c83bcd259d
3 changed files with 10 additions and 4 deletions

View File

@@ -70,6 +70,11 @@ namespace BTCPayServer.Tests
Driver.AssertNoError();
}
internal void AssertHappyMessage()
{
Assert.Single(Driver.FindElements(By.ClassName("alert-success")).Where(el => el.Displayed));
}
public static readonly TimeSpan ImplicitWait = TimeSpan.FromSeconds(10);
public string Link(string relativeLink)
{
@@ -110,8 +115,7 @@ namespace BTCPayServer.Tests
Driver.FindElement(By.ClassName("store-derivation-scheme")).SendKeys(derivationScheme);
Driver.FindElement(By.Id("Continue")).ForceClick();
Driver.FindElement(By.Id("Confirm")).ForceClick();
Driver.FindElement(By.Id("Save")).ForceClick();
return;
AssertHappyMessage();
}
public void AddLightningNode(string cryptoCode, LightningConnectionType connectionType)