public void PaginationPage_Dropdown_HasCorrectOptions() { _paginationPage.ScrollToTheTop(); WaitUntil(x => _paginationPage.DropDown.Displayed); _paginationPage.DropdownSelect("5"); Assert.IsTrue(WaitForText(_paginationPage.PaginationInfoLabel, "page 1 of 20", 5)); Assert.AreEqual(5, _paginationPage.PaginationResult.Count); _paginationPage.DropdownSelect("15"); Assert.IsTrue(WaitForText(_paginationPage.PaginationInfoLabel, "page 1 of 7", 5)); Assert.AreEqual(15, _paginationPage.PaginationResult.Count); _paginationPage.DropdownSelect("30"); Assert.IsTrue(WaitForText(_paginationPage.PaginationInfoLabel, "page 1 of 4", 5)); Assert.AreEqual(30, _paginationPage.PaginationResult.Count); }
public void PaginationPage_Dropdown_HasCorrectOptions() { _paginationPage.ScrollToTheTop(); WaitUntil(x => _paginationPage.DropDown.Displayed, $"Expected DropDown to be Displayed"); _paginationPage.DropdownSelect("Show 5 items per page"); Assert.IsTrue(WaitForText(_paginationPage.PaginationInfoLabel, "page 1 of 20", 5)); Assert.AreEqual(5, _paginationPage.PaginationResult.Count); _paginationPage.DropdownSelect("Show 15 items per page"); Assert.IsTrue(WaitForText(_paginationPage.PaginationInfoLabel, "page 1 of 7", 5)); Assert.AreEqual(15, _paginationPage.PaginationResult.Count); _paginationPage.DropdownSelect("Show 30 items per page"); Assert.IsTrue(WaitForText(_paginationPage.PaginationInfoLabel, "page 1 of 4", 5)); Assert.AreEqual(30, _paginationPage.PaginationResult.Count); }