예제 #1
0
        public void VerifySortingTimezonesInChrome()
        {
            //general = new GeneralPage();
            AdminLoginPage    adminLoginPage    = new AdminLoginPage(driver, wait);
            AdminGeoZonesPage adminGeoZonesPage = new AdminGeoZonesPage();

            //general.GoToPage(driver, "http://localhost/litecart/admin/", wait, "My Store");
            adminLoginPage.Open();
            adminLoginPage.Login("admin", "admin");
            //general.GoToPage(driver, "http://localhost/litecart/admin/?app=geo_zones&doc=geo_zones", wait, "Geo Zones");
            adminGeoZonesPage.GoToEachCountryAndVerifySortingTimeZones(driver, wait);
        }
예제 #2
0
        public void GeoZonesShouldBeSorted()
        {
            var Login = GoToLoginAdminPage(driver);
            var Home  = Login.CorrectLogin("admin", "admin");

            Home.SelectMenuItemByText("Geo Zones");
            var AdminGeoZones = new AdminGeoZonesPage(driver);
            var Countries     = AdminGeoZones.GetCountriesList();

            Assert.Multiple(() =>
            {
                for (var i = 0; i < Countries.Count; i++)
                {
                    AdminGeoZones.OpenCountry(Countries[i]);
                    var GeoZoneCounryList = AdminGeoZones.GetGeoZoneCountryList();
                    var GeoZoneList       = AdminGeoZones.GetGeoZoneList();
                    AdminGeoZones.ReturnToCountriesList();
                    Assert.That(GeoZoneCounryList, Is.Ordered);
                    Assert.That(GeoZoneList, Is.Ordered);
                }
            });
        }