예제 #1
0
 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());
 }
예제 #2
0
 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());
 }
예제 #3
0
        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());
            });
        }
예제 #4
0
        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());
            });
        }
예제 #5
0
        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);
        }
예제 #6
0
        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);
            });
        }
예제 #7
0
 public void NonRegisteredEmail()
 {
     HomeActions.NavigateToLoginForm();
     LoginActions.FillLoginForm(Data.Credentials.Invalid.Email.NonRegistered, Data.Credentials.Valid.PasswordRequester);
     Assert.AreEqual(Data.ErrorMessages.Login.InvalidUserPass, LoginActions.GetErrorMessageInvalidUserPass());
 }
예제 #8
0
 public void IncorrectPassword()
 {
     HomeActions.NavigateToLoginForm();
     LoginActions.FillLoginForm(Data.Credentials.Valid.EmailRequester, Data.Credentials.Invalid.Password.Incorrect);
     Assert.AreEqual(Data.ErrorMessages.Login.InvalidUserPass, LoginActions.GetErrorMessageInvalidUserPass());
 }