Ejemplo n.º 1
0
        public void CheckInvalidReturnsFormEmail()
        {
            ReturnsPage returnsPage = new ReturnsPage(browser);

            returnsPage.ClickLinkReturns();
            returnsPage.ReturnsInvalidFormEmail();

            var alertMsgForms = returnsPage.AlertMsgForms.Text;

            Assert.AreEqual(alertMsgForms, "E-Mail Address does not appear to be valid!");
        }
Ejemplo n.º 2
0
        public void CheckInvalidReturnsFormTelephone()
        {
            ReturnsPage returnsPage = new ReturnsPage(browser);

            returnsPage.ClickLinkReturns();
            returnsPage.ReturnsInvalidFormTelephone();

            var alertMsgForms = returnsPage.AlertMsgForms.Text;

            Assert.AreEqual(alertMsgForms, "Telephone must be between 3 and 32 characters!");
        }
Ejemplo n.º 3
0
        public void CheckValidFormReturns()
        {
            ReturnsPage returnsPage = new ReturnsPage(browser);

            returnsPage.ClickLinkReturns();
            returnsPage.ReturnsValidForm();

            var succesMsgGeneric = returnsPage.SuccesMsgGeneric.Text.Contains("Thank you for submitting");

            Assert.IsTrue(succesMsgGeneric);
        }
Ejemplo n.º 4
0
        public void CheckOrderIdCheckValZero()
        {
            ReturnsPage returnsPage = new ReturnsPage(browser);

            returnsPage.ClickLinkReturns();
            returnsPage.OrderIdCheckValZero();

            var alertMsgForms = returnsPage.AlertMsgForms.Text;

            Assert.AreEqual(alertMsgForms, "Order ID required!");
        }
Ejemplo n.º 5
0
        public void CheckInvalidReturnsFormReasOfRet()
        {
            ReturnsPage returnsPage = new ReturnsPage(browser);

            returnsPage.ClickLinkReturns();
            returnsPage.ReturnsInvalidFormReasOfRet();

            var alertMsgForms = returnsPage.AlertMsgForms.Text;

            Assert.AreEqual(alertMsgForms, "You must select a return product reason!");
        }
Ejemplo n.º 6
0
        public void CheckInvalidReturnsFormProductCode()
        {
            ReturnsPage returnsPage = new ReturnsPage(browser);

            returnsPage.ClickLinkReturns();
            returnsPage.ReturnsInvalidFormProductCode();

            var alertMsgForms = returnsPage.AlertMsgForms.Text;

            Assert.AreEqual(alertMsgForms, "Product Model must be greater than 3 and less than 64 characters!");
        }
Ejemplo n.º 7
0
        public void CheckInvalidReturnsFormOrderID()
        {
            ReturnsPage returnsPage = new ReturnsPage(browser);

            returnsPage.ClickLinkReturns();
            returnsPage.ReturnsInvalidFormOrderID();

            var alertMsgForms = returnsPage.AlertMsgForms.Text;

            Assert.AreEqual(alertMsgForms, "Order ID required!");
        }