public void TVSearch() { //arrange _driver.Url = Url; var homePageSteps = new HomePageSteps(_driver); var tvSearchResultsSteps = new TVSearchResultSteps(_driver); //act homePageSteps.SelectTelevisionSection(); homePageSteps.SelectLGProducts(); var conditionList = tvSearchResultsSteps.GetLGNames().Select(name => name.Contains("LG")).ToList(); //assert CollectionAssert.DoesNotContain(conditionList, false); }
public void TVPriceCheck() { //arrange _driver.Url = Url; var homePageSteps = new HomePageSteps(_driver); var tvSearchResultsSteps = new TVSearchResultSteps(_driver); var detailsOfSelectedItemSteps = new DetailsOfSelectedItemSteps(_driver); //act homePageSteps.SelectTelevisionSection(); var expectedResult = tvSearchResultsSteps.GetNamePriceOfItem(0); tvSearchResultsSteps.NavigateToDetails(0); var actualResult = detailsOfSelectedItemSteps.GetItemDetails(); //assert Assert.AreEqual(expectedResult, actualResult); }
public void GetTvFiltersName() { //arrange _driver.Url = Url; var homePageSteps = new HomePageSteps(_driver); var tvSearchResultsSteps = new TVSearchResultSteps(_driver); var expectedResult = new List <string> { "Цена", "Акции и скидки", "Бренд", "Диагональ", "Разрешение", "Тип телевизора", "Smart TV", "Поддержка 3D", "Изогнутый экран", "Суммарная мощность динамиков", "Операционная система" }; //act homePageSteps.SelectTelevisionSection(); var actualResult = tvSearchResultsSteps.GetFilterNames(); //assert CollectionAssert.AreEqual(expectedResult, actualResult); }