From c8025ebaacb3165fcc081c67946a7773e88d58a4 Mon Sep 17 00:00:00 2001 From: britttttk <39231115+britttttk@users.noreply.github.com> Date: Thu, 1 Aug 2019 22:48:12 -0600 Subject: [PATCH] View pos in selenium test (#953) --- BTCPayServer.Tests/SeleniumTests.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BTCPayServer.Tests/SeleniumTests.cs b/BTCPayServer.Tests/SeleniumTests.cs index c4a7f03dc..b9f3b9f39 100644 --- a/BTCPayServer.Tests/SeleniumTests.cs +++ b/BTCPayServer.Tests/SeleniumTests.cs @@ -242,7 +242,9 @@ namespace BTCPayServer.Tests s.Driver.FindElement(By.Id("Create")).Click(); s.Driver.FindElement(By.CssSelector("input#EnableShoppingCart.form-check")).Click(); s.Driver.FindElement(By.Id("SaveSettings")).ForceClick(); - Assert.True(s.Driver.PageSource.Contains("App updated"), "Unable to create PoS"); + s.Driver.FindElement(By.Id("ViewApp")).ForceClick(); + s.Driver.SwitchTo().Window(s.Driver.WindowHandles.Last()); + Assert.True(s.Driver.PageSource.Contains("Tea shop"), "Unable to create PoS"); s.Driver.Quit(); } }