test(BRIDGE-248): Additional Bridge UI e2e automation tests

This commit is contained in:
Gordana Zafirova
2024-12-30 14:17:10 +00:00
parent 28b0dbd051
commit 16245a372e
3 changed files with 79 additions and 23 deletions

View File

@ -22,7 +22,8 @@ namespace ProtonMailBridge.UI.Tests.Results
private TextBox EnterEmailOrUsernameErrorText => Window.FindFirstDescendant(cf => cf.ByControlType(ControlType.Text).And(cf.ByName("Enter email or username"))).AsTextBox();
private TextBox EnterPasswordErrorText => Window.FindFirstDescendant(cf => cf.ByControlType(ControlType.Text).And(cf.ByName("Enter password"))).AsTextBox();
private TextBox ConnectedStateText => Window.FindFirstDescendant(cf => cf.ByControlType(ControlType.Text).And(cf.ByName("Connected"))).AsTextBox();
private CheckBox SplitAddressesToggle => AccountView.FindFirstDescendant(cf => cf.ByControlType(ControlType.CheckBox).And(cf.ByName("Split addresses toggle"))).AsCheckBox();
public HomeResult CheckConnectedState()
{
Assert.That(ConnectedStateText.IsAvailable, Is.True);
@ -81,7 +82,6 @@ namespace ProtonMailBridge.UI.Tests.Results
{
Assert.That(AccountDelinquentErrorText.IsAvailable, Is.True);
return this;
}
public HomeResult CheckIfNotificationTextIsShown()
@ -89,5 +89,11 @@ namespace ProtonMailBridge.UI.Tests.Results
Assert.That(AlreadySignedInText.IsAvailable, Is.True);
return this;
}
public HomeResult CheckIfSplitAddressesIsDisabledByDefault()
{
Assert.That(SplitAddressesToggle.IsToggled, Is.False);
return this;
}
}
}