Example #1
0
        public void SortValidation(string sortType)
        {
            DriverSettings();
            Accessories newAccessories = _mainPage.Accessories;
            Currency    newCurrency    = _mainPage.CreateCurrency();

            newAccessories.ChooseAccessories();
            newCurrency
            .OpenCurrencyDropdown()
            .ChooseCurrency("$");
            bool validSort = newAccessories.ClickSort()
                             .Sort(sortType)
                             .IsSortValid();

            Assert.That(validSort);
        }