Exemplo n.º 1
0
        public void EmptySummaryFiedTest()
        {
            var productPage = new ProductPageBL(webDriver);

            productPage
            .EnterReviewWithoutSummary();

            var expectedResult = "This is a required field.";
            var actualResult   = new ProductPageBL(webDriver).GetEmptySummaryErroMessage();

            Assert.IsTrue(actualResult.Contains(expectedResult));
        }
Exemplo n.º 2
0
        public void AddReviewTest()
        {
            var productPage = new ProductPageBL(webDriver);

            productPage
            .EnterReview();

            var expectedResult = "You submitted your review for moderation.";
            var actualResult   = new ProductPageBL(webDriver).GetSuccessfulAddReviewMessage();

            Assert.IsTrue(actualResult.Contains(expectedResult));
        }
Exemplo n.º 3
0
        public void EmptyRatingTest()
        {
            var productPage = new ProductPageBL(webDriver);

            productPage
            .EnterReviewWithoutRating();

            var expectedResult = "Please select one of each of the ratings above.";
            var actualResult   = new ProductPageBL(webDriver).GetEmptyRatingErroMessage();

            Assert.IsTrue(actualResult.Contains(expectedResult));
        }
        public void AddProductToCompareListTest()
        {
            var homePage = new HomePageBL(webDriver);

            homePage
            .ClickOnMainSignInButton()
            .LogIntoAccount()
            .ClickOnProductContainer()
            .ClickOnAddToCompareButton();

            var expectedResult = "You added product";
            var actualResult   = new ProductPageBL(webDriver).GetSuccessfulAddedProductMessage();

            Assert.IsTrue(actualResult.Contains(expectedResult));
        }