Fix flaky

This commit is contained in:
nicolas.dorier 2023-12-20 20:59:12 +09:00
parent 5a70345499
commit 7f75117bfa
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -1,5 +1,4 @@
using System; using System;
using System.ComponentModel;
using System.Globalization; using System.Globalization;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
@ -99,6 +98,10 @@ namespace BTCPayServer.Tests
Driver.FindElement(By.Id("FakePayment")).Click(); Driver.FindElement(By.Id("FakePayment")).Click();
if (mine) if (mine)
{ {
TestUtils.Eventually(() =>
{
Driver.WaitForElement(By.Id("CheatSuccessMessage"));
});
MineBlockOnInvoiceCheckout(); MineBlockOnInvoiceCheckout();
} }
} }