示例#1
0
        public void ValidateProductoOnShoopingCart()
        {
            var theTeaStoryPage = new TheTeaStoryPage(ChromeDriverFixture.Driver);
            theTeaStoryPage.NavigateTo();
            var productClassicTeaPage = theTeaStoryPage.ClickClassicBlendsAssortedTea();
            var quantity = "3";

            productClassicTeaPage.SetQuantity(quantity);
            productClassicTeaPage.PressAddToCarBtn();
            var cartTheTeaStory = productClassicTeaPage.PressViewCartBtn();

            Assert.Equal(quantity, cartTheTeaStory.GetQuantity());
        }
示例#2
0
        public void ValidateContactFormHasBeenSent()
        {
            var theTeaStoryPage = new TheTeaStoryPage(ChromeDriverFixture.Driver);

            theTeaStoryPage.NavigateTo();
            var contactUsPage = theTeaStoryPage.ClickContactUsLink();

            contactUsPage.EnterName("TestName");
            contactUsPage.EnterEmail("*****@*****.**");
            contactUsPage.EnterMessage("This is a test message");
            var isContactFormSubmitted = contactUsPage.PressSendButton();

            Assert.True(isContactFormSubmitted);
        }