public void ViewToy_SelectToyForBoys_ContainsToyForBoysOrForBoysAndGirlsInfo() { string[] EXPECTES_SPECIFICATIONS = { "Для мальчиков и девочек", "Для мальчиков" }; var viewToyPage = new ViewToyPage(Driver); SelectFirstBoyToy(); Assert.IsTrue(EXPECTES_SPECIFICATIONS.Contains(viewToyPage.GetToysSexInfo(true))); }
public void ViewToy_SelectToyForGirls_ContainsToyForGirlsOrForBoysAndGirlsInfo() { string[] EXPECTES_SPECIFICATIONS = { "Для мальчиков и девочек", "Для девочек" }; var mainPage = new MainPage(Driver); var childrenToysPage = new ChildrenToysPage(Driver); var girlsToysPage = new GirlsToysPage(Driver); var viewToyPage = new ViewToyPage(Driver); mainPage.ChildrenToysClick(); childrenToysPage.GirlsToysClick(); girlsToysPage.ClickOnFirstToy(); Assert.IsTrue(EXPECTES_SPECIFICATIONS.Contains(viewToyPage.GetToysSexInfo(false))); }