From a5aa5cf059f4798a06bcc28512b4a8d7282d6671 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Fri, 29 Oct 2021 23:09:19 +0900 Subject: [PATCH] Fix tests --- BTCPayServer.Tests/SeleniumTests.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/BTCPayServer.Tests/SeleniumTests.cs b/BTCPayServer.Tests/SeleniumTests.cs index 74b1e7b72..204e05bc9 100644 --- a/BTCPayServer.Tests/SeleniumTests.cs +++ b/BTCPayServer.Tests/SeleniumTests.cs @@ -1277,7 +1277,7 @@ namespace BTCPayServer.Tests s.Driver.FindElement(By.Id("CreateNewApp")).Click(); s.Driver.FindElement(By.Id("SelectedAppType")).Click(); s.Driver.FindElement(By.CssSelector("option[value='PointOfSale']")).Click(); - s.Driver.FindElement(By.Id("Name")).SendKeys(Guid.NewGuid().ToString()); + s.Driver.FindElement(By.Id("AppName")).SendKeys(Guid.NewGuid().ToString()); s.Driver.FindElement(By.Id("Create")).Click(); s.FindAlertMessage(StatusMessageModel.StatusSeverity.Success); s.Driver.FindElement(By.Id("DefaultView")).Click(); @@ -1423,7 +1423,10 @@ namespace BTCPayServer.Tests // Ensure the toggles are set correctly s.Driver.FindElement(By.Id($"Modify-Lightning{cryptoCode}")).Click(); - Assert.True(s.Driver.FindElement(By.Id("DisableBolt11PaymentMethod")).Selected); + + //TODO: DisableBolt11PaymentMethod is actually disabled because LNURLStandardInvoiceEnabled is disabled + // checkboxes is not good choice here, in next release we should have multi choice instead + Assert.False(s.Driver.FindElement(By.Id("DisableBolt11PaymentMethod")).Selected); Assert.False(s.Driver.FindElement(By.Id("LNURLStandardInvoiceEnabled")).Selected); Assert.False(s.Driver.FindElement(By.Id("LNURLBech32Mode")).Selected); s.CreateInvoice(store.storeName, 0.0000001m, cryptoCode,"",null, expectedSeverity: StatusMessageModel.StatusSeverity.Error);