Home sweet home (#3313)

* Link to store home, show home only if there is no store

* Handle store guest case

* Apply correct policies to nav items
This commit is contained in:
d11n
2022-01-18 02:20:59 +01:00
committed by GitHub
parent c3f73c0de3
commit 1d3f74c8bb
8 changed files with 74 additions and 37 deletions

View File

@@ -382,11 +382,14 @@ namespace BTCPayServer.Tests
s.Driver.FindElement(By.Id("SetupGuide-Store")).Click();
Assert.Contains("/stores/create", s.Driver.Url);
s.CreateNewStore();
(_, string storeId) = s.CreateNewStore();
// should redirect to store
s.GoToUrl("/");
Assert.Contains($"/stores/{storeId}", s.Driver.Url);
Assert.True(s.Driver.PageSource.Contains("id=\"StoreSelectorDropdown\""), "Store selector dropdown should be present");
Assert.False(s.Driver.PageSource.Contains("id=\"SetupGuide\""), "Setup guide should not be present");
Assert.True(s.Driver.PageSource.Contains("id=\"SetupGuide\""), "Store setup guide should be present");
}
[Fact(Timeout = TestTimeout)]