From f3890cd0293ffe909cd10a3613672cbc3edac81a Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Fri, 20 Sep 2019 19:41:59 +0900 Subject: [PATCH] Make test more reliable --- BTCPayServer.Tests/SeleniumTests.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BTCPayServer.Tests/SeleniumTests.cs b/BTCPayServer.Tests/SeleniumTests.cs index 1902aef10..a7163e8cd 100644 --- a/BTCPayServer.Tests/SeleniumTests.cs +++ b/BTCPayServer.Tests/SeleniumTests.cs @@ -123,6 +123,12 @@ namespace BTCPayServer.Tests Assert.Contains("tes't", text); Assert.Contains("test2", text); Assert.True(s.Driver.PageSource.Contains("authorized_keys has been updated", StringComparison.OrdinalIgnoreCase)); + + s.Driver.FindElement(By.Id("SSHKeyFileContent")).Clear(); + s.Driver.FindElement(By.Id("submit")).ForceClick(); + + text = s.Driver.FindElement(By.Id("SSHKeyFileContent")).Text; + Assert.DoesNotContain("test2", text); } }