コード例 #1
0
        public void ThenAllNavigationResultsItemsContainProductNameInTitle(string itemSpecific)
        {
            var resultList = _productListPageSteps.GetResultItemTitles();

            Assert.IsTrue(resultList.Length > 0, "No elements in result");
            Assert.IsTrue(resultList.All(i => i.Contains(itemSpecific)), "Not All contains product name");
        }
コード例 #2
0
        public void NavigateTVLG()
        {
            _homePageSteps.NavigateTo(catalogItem, itemSpecific);
            _productListPageSteps.WaitCatalogPageIsDisplayed();

            var resultList = _productListPageSteps.GetResultItemTitles();

            Assert.IsTrue(resultList.Length > 0, "No elements in result");
            Assert.IsTrue(resultList.All(i => i.Contains(itemSpecific)), "Not All contains product name");
        }