Fix CanCreateAppPos

This commit is contained in:
nicolas.dorier 2022-04-25 17:37:46 +09:00
parent 54e106ec74
commit 5a7b275ee3
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -673,11 +673,12 @@ namespace BTCPayServer.Tests
s.LogIn(userId);
// Make sure after login, we are not redirected to the PoS
Assert.DoesNotContain("Tea shop", s.Driver.PageSource);
var prevUrl = s.Driver.Url;
// We are only if explicitly going to /
s.GoToUrl("/");
Assert.Contains("Tea shop", s.Driver.PageSource);
s.Driver.Navigate().Back();
s.Driver.Navigate().GoToUrl(new Uri(prevUrl, UriKind.Absolute));
// Let's check with domain mapping as well.
s.GoToServer(ServerNavPages.Policies);