diff --git a/BTCPayServer.Tests/SeleniumTester.cs b/BTCPayServer.Tests/SeleniumTester.cs index e11f3b98b..5a07f8dad 100644 --- a/BTCPayServer.Tests/SeleniumTester.cs +++ b/BTCPayServer.Tests/SeleniumTester.cs @@ -1,5 +1,4 @@ using System; -using System.ComponentModel; using System.Globalization; using System.IO; using System.Linq; @@ -99,6 +98,10 @@ namespace BTCPayServer.Tests Driver.FindElement(By.Id("FakePayment")).Click(); if (mine) { + TestUtils.Eventually(() => + { + Driver.WaitForElement(By.Id("CheatSuccessMessage")); + }); MineBlockOnInvoiceCheckout(); } }