public void SignOff() { HomeActions.NavigateToLoginForm(); LoginActions.FillLoginForm(Data.Credentials.Valid.EmailRequester, Data.Credentials.Valid.PasswordRequester); SignOffActions.SignOff(); Assert.AreEqual(Data.Texts.Login.LoginButton, HomeActions.GetLoginLinkText()); }
public void BlockedEmail() { HomeActions.NavigateToLoginForm(); for (int i = 0; i < 5; i++) { LoginActions.ClearFields(); LoginActions.FillLoginForm(Data.Credentials.Invalid.Email.Blocked, Data.Credentials.Invalid.Password.Incorrect); Driver.WaitForElementUpTo(Data.ElementsWaitingTimeout); } Assert.AreEqual(Data.ErrorMessages.Login.BlockedEmail, LoginActions.GetErrorMessageBlockedEmail()); }
public void ValidLoginAmbassador() { HomeActions.NavigateToLoginForm(); LoginActions.FillLoginForm(Data.Credentials.Valid.EmailAmbassador, Data.Credentials.Valid.PasswordAmbassador); Assert.Multiple(() => { Assert.AreEqual(Data.Credentials.Valid.EmailAmbassador, UserPanelActions.GetUserEmail()); Assert.That(UserPanelActions.isStatisticsSectionDisplayed()); }); }
public void ValidLoginRequester() { HomeActions.NavigateToLoginForm(); LoginActions.FillLoginForm(Data.Credentials.Valid.EmailRequester, Data.Credentials.Valid.PasswordRequester); Assert.Multiple(() => { Assert.AreEqual(Data.Credentials.Valid.EmailRequester, UserPanelActions.GetUserEmail()); Assert.That(UserPanelActions.isBtnNewRequestDisplayed()); }); }
public void RequestWithDesign(string selectArm, string selectAmp, string selectColor) { string Comments; HomeActions.NavigateToLoginForm(); LoginActions.FillLoginForm(Data.Credentials.Valid.EmailRequester, Data.Credentials.Valid.PasswordRequester); UserPanelActions.ClickOnNewRequestButton(); Comments = NewRequestActions.NewRequestWithDesign(selectArm, selectAmp, selectColor); UserPanelActions.NavigateToLastRequest(); Assert.AreEqual(ViewRequestActions.GetComments(), Comments); }
public void RequestWithoutDesign(string selectArm, string selectAmp) { string Comments; HomeActions.NavigateToLoginForm(); LoginActions.FillLoginForm(Data.Credentials.Valid.EmailRequester, Data.Credentials.Valid.PasswordRequester); UserPanelActions.ClickOnNewRequestButton(); Comments = NewRequestActions.NewRequestWithoutDesign(selectArm, selectAmp); UserPanelActions.NavigateToLastRequest(); Assert.Multiple(() => { Assert.AreEqual(ViewRequestActions.GetComments(), Comments); Assert.That(ViewRequestActions.IsNoDesignTextDisplayed); }); }
public void NonRegisteredEmail() { HomeActions.NavigateToLoginForm(); LoginActions.FillLoginForm(Data.Credentials.Invalid.Email.NonRegistered, Data.Credentials.Valid.PasswordRequester); Assert.AreEqual(Data.ErrorMessages.Login.InvalidUserPass, LoginActions.GetErrorMessageInvalidUserPass()); }
public void IncorrectPassword() { HomeActions.NavigateToLoginForm(); LoginActions.FillLoginForm(Data.Credentials.Valid.EmailRequester, Data.Credentials.Invalid.Password.Incorrect); Assert.AreEqual(Data.ErrorMessages.Login.InvalidUserPass, LoginActions.GetErrorMessageInvalidUserPass()); }