Пример #1
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());
            });
        }
Пример #2
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());
            });
        }
Пример #3
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);
        }
Пример #4
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);
            });
        }