From 9b9540b857dd36ea80c0f84d44b70ea5c06ec106 Mon Sep 17 00:00:00 2001 From: d11n Date: Fri, 18 Feb 2022 02:55:54 +0100 Subject: [PATCH] PSBT test fix (#3472) --- BTCPayServer.Tests/PSBTTests.cs | 3 ++- BTCPayServer.Tests/SeleniumTester.cs | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/BTCPayServer.Tests/PSBTTests.cs b/BTCPayServer.Tests/PSBTTests.cs index d677eea0b..f4d761ff4 100644 --- a/BTCPayServer.Tests/PSBTTests.cs +++ b/BTCPayServer.Tests/PSBTTests.cs @@ -21,8 +21,9 @@ namespace BTCPayServer.Tests public PSBTTests(ITestOutputHelper helper) : base(helper) { } + [Fact] - [Trait("Integration", "Integration")] + [Trait("Selenium", "Selenium")] public async Task CanPlayWithPSBT() { using var s = CreateSeleniumTester(newDb: true); diff --git a/BTCPayServer.Tests/SeleniumTester.cs b/BTCPayServer.Tests/SeleniumTester.cs index 2c4f82e50..6e795d8cd 100644 --- a/BTCPayServer.Tests/SeleniumTester.cs +++ b/BTCPayServer.Tests/SeleniumTester.cs @@ -563,7 +563,12 @@ namespace BTCPayServer.Tests { walletId ??= 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(); }