Make test more reliable

This commit is contained in:
nicolas.dorier 2019-09-20 19:41:59 +09:00
parent 2f918b1195
commit f3890cd029
No known key found for this signature in database
GPG key ID: 6618763EF09186FE

View file

@ -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);
}
}