mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-03 17:36:59 +01:00
Tests: Wait for advanced settings closing animation
This commit is contained in:
parent
6c9c463da9
commit
db5f64432e
1 changed files with 5 additions and 9 deletions
|
@ -3,6 +3,7 @@ using System.Globalization;
|
|||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using BTCPayServer.Abstractions.Models;
|
||||
using BTCPayServer.Lightning;
|
||||
|
@ -151,16 +152,11 @@ namespace BTCPayServer.Tests
|
|||
Driver.FindElement(By.CssSelector($"#ScriptPubKeyType option[value={format}]")).Click();
|
||||
Driver.FindElement(By.Id("AdvancedSettingsButton")).Click();
|
||||
Driver.SetCheckbox(By.Id("ImportKeysToRPC"), importkeys);
|
||||
Driver.FindElement(By.Id("AdvancedSettingsButton")).Click(); // close again
|
||||
|
||||
try
|
||||
{
|
||||
Driver.FindElement(By.Id("Continue")).Click();
|
||||
}
|
||||
catch (ElementClickInterceptedException)
|
||||
{
|
||||
Driver.WaitForAndClick(By.Id("Continue"));
|
||||
}
|
||||
// close again and wait for close
|
||||
Driver.FindElement(By.Id("AdvancedSettingsButton")).Click();
|
||||
Thread.Sleep(250);
|
||||
Driver.FindElement(By.Id("Continue")).Click();
|
||||
|
||||
// Seed backup page
|
||||
FindAlertMessage();
|
||||
|
|
Loading…
Add table
Reference in a new issue