PSBT test fix (#3472)

This commit is contained in:
d11n
2022-02-18 02:55:54 +01:00
committed by GitHub
parent a3b748ffe3
commit 9b9540b857
2 changed files with 8 additions and 2 deletions

View File

@@ -21,8 +21,9 @@ namespace BTCPayServer.Tests
public PSBTTests(ITestOutputHelper helper) : base(helper) public PSBTTests(ITestOutputHelper helper) : base(helper)
{ {
} }
[Fact] [Fact]
[Trait("Integration", "Integration")] [Trait("Selenium", "Selenium")]
public async Task CanPlayWithPSBT() public async Task CanPlayWithPSBT()
{ {
using var s = CreateSeleniumTester(newDb: true); using var s = CreateSeleniumTester(newDb: true);

View File

@@ -563,7 +563,12 @@ namespace BTCPayServer.Tests
{ {
walletId ??= WalletId; walletId ??= WalletId;
Driver.Navigate().GoToUrl(new Uri(ServerUri, $"wallets/{walletId}")); Driver.Navigate().GoToUrl(new Uri(ServerUri, $"wallets/{walletId}"));
if (navPages != WalletsNavPages.Transactions) if (navPages == WalletsNavPages.PSBT)
{
Driver.FindElement(By.Id("WalletNav-Send")).Click();
Driver.FindElement(By.Id("PSBT")).Click();
}
else if (navPages != WalletsNavPages.Transactions)
{ {
Driver.FindElement(By.Id($"WalletNav-{navPages}")).Click(); Driver.FindElement(By.Id($"WalletNav-{navPages}")).Click();
} }