mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 06:21:44 +01:00
Make test more reliable
This commit is contained in:
parent
2f918b1195
commit
f3890cd029
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue