[Test] //Day 4 Task9-A public void TestMethod3() { Browser.Navigate().GoToUrl("http://localhost/litecart/admin/"); _loginPage = new LoginPage(Browser); _loginPage.Login("admin", "admin"); _countries = new Countries(Browser); _countries.ClickMenuItem("Countries"); Assert.IsTrue(_countriesMap.GetSortedCountriesList().SequenceEqual(_countriesMap.GetValuesOfNameColumn()), "Countries are not sorted alphabetically"); }
[Test] //Day 4 Task9-Б, 2 public void TestMethod4() { _loginPage = new LoginPage(Browser); _countries = new Countries(Browser); _countriesMap = new CountriesMap(Browser); Browser.Navigate().GoToUrl("http://localhost/litecart/admin/"); _loginPage.Login("admin", "admin"); _countries.ClickMenuItem("Countries"); _countries.CheckZonesAlphabeticalSorted(); Assert.IsTrue(_countriesMap.GetListOfZoneNames().SequenceEqual(_countriesMap.GetSortedListOfZoneNames()), "Zones are not sorted alphabetically"); }