diff --git a/BTCPayServer.Tests/BTCPayServer.Tests.csproj b/BTCPayServer.Tests/BTCPayServer.Tests.csproj index 1cdac642b..3d896a1cb 100644 --- a/BTCPayServer.Tests/BTCPayServer.Tests.csproj +++ b/BTCPayServer.Tests/BTCPayServer.Tests.csproj @@ -16,7 +16,7 @@ - + all diff --git a/BTCPayServer.Tests/SeleniumTests.cs b/BTCPayServer.Tests/SeleniumTests.cs index 5df86a793..86f04c525 100644 --- a/BTCPayServer.Tests/SeleniumTests.cs +++ b/BTCPayServer.Tests/SeleniumTests.cs @@ -231,6 +231,16 @@ namespace BTCPayServer.Tests Assert.Contains("ReturnUrl", s.Driver.Url); s.Driver.Navigate().GoToUrl(invoiceUrl); s.Driver.AssertNoError(); + + // Alice should be able to delete the store + s.Logout(); + LogIn(s, alice); + s.Driver.FindElement(By.Id("Stores")).Click(); + s.Driver.FindElement(By.LinkText("Remove")).Click(); + s.Driver.FindElement(By.Id("continue")).Click(); + s.Driver.FindElement(By.Id("Stores")).Click(); + s.Driver.Navigate().GoToUrl(storeUrl); + Assert.Contains("ReturnUrl", s.Driver.Url); } } diff --git a/BTCPayServer/Views/UserStores/ListStores.cshtml b/BTCPayServer/Views/UserStores/ListStores.cshtml index 68dd4446e..7227cb751 100644 --- a/BTCPayServer/Views/UserStores/ListStores.cshtml +++ b/BTCPayServer/Views/UserStores/ListStores.cshtml @@ -48,7 +48,7 @@ { Settings - } - Remove + Remove }