Delete columns CustomerEmail, OrderId, ItemCode (#6170)

This commit is contained in:
Nicolas Dorier
2024-08-27 09:53:28 +09:00
committed by GitHub
parent 6d560caf06
commit 3c40dc1f49
12 changed files with 94 additions and 44 deletions

View File

@@ -90,7 +90,15 @@ namespace BTCPayServer.Tests
{
if (amount is not null)
{
Driver.FindElement(By.Id("test-payment-amount")).Clear();
try
{
Driver.FindElement(By.Id("test-payment-amount")).Clear();
}
// Sometimes the element is not available after a window switch... retry
catch (StaleElementReferenceException)
{
Driver.FindElement(By.Id("test-payment-amount")).Clear();
}
Driver.FindElement(By.Id("test-payment-amount")).SendKeys(amount.ToString());
}
Driver.WaitUntilAvailable(By.Id("FakePayment"));