diff --git a/BTCPayServer.Tests/SeleniumTests.cs b/BTCPayServer.Tests/SeleniumTests.cs index c771ff0e4..c8d9ec8c1 100644 --- a/BTCPayServer.Tests/SeleniumTests.cs +++ b/BTCPayServer.Tests/SeleniumTests.cs @@ -1011,13 +1011,13 @@ namespace BTCPayServer.Tests s.Driver.FindElement(By.Id("WalletNav-Receive")).Click(); //generate a receiving address s.Driver.FindElement(By.CssSelector("button[value=generate-new-address]")).Click(); - Assert.True(s.Driver.FindElement(By.ClassName("qr-container")).Displayed); + Assert.True(s.Driver.FindElement(By.CssSelector("#address-tab .qr-container")).Displayed); var receiveAddr = s.Driver.FindElement(By.Id("address")).GetAttribute("value"); //unreserve s.Driver.FindElement(By.CssSelector("button[value=unreserve-current-address]")).Click(); //generate it again, should be the same one as before as nothing got used in the meantime s.Driver.FindElement(By.CssSelector("button[value=generate-new-address]")).Click(); - Assert.True(s.Driver.FindElement(By.ClassName("qr-container")).Displayed); + Assert.True(s.Driver.FindElement(By.CssSelector("#address-tab .qr-container")).Displayed); Assert.Equal(receiveAddr, s.Driver.FindElement(By.Id("address")).GetAttribute("value")); //send money to addr and ensure it changed diff --git a/BTCPayServer/Views/UIWallets/WalletReceive.cshtml b/BTCPayServer/Views/UIWallets/WalletReceive.cshtml index b5cf8f2e5..33e69b473 100644 --- a/BTCPayServer/Views/UIWallets/WalletReceive.cshtml +++ b/BTCPayServer/Views/UIWallets/WalletReceive.cshtml @@ -40,38 +40,44 @@
-
-
- @Model.CryptoCode -