public void ShouldFilter() { var step6Page = new TutorialStep6Page(driver, base_url); Assert.AreEqual(3, step6Page.GetResultsCount()); step6Page.SearchFor("Motorola"); Assert.AreEqual(2, step6Page.GetResultsCount()); step6Page.SearchFor("Nexus"); Assert.AreEqual(1, step6Page.GetResultsCount()); }
public void ShouldSort() { var step6Page = new TutorialStep6Page(driver, "http://angular.github.io/angular-phonecat/step-6/app/"); step6Page.SearchFor("tablet"); Assert.AreEqual(2, step6Page.GetResultsCount()); step6Page.SortByAge(); Assert.AreEqual("Motorola XOOM™ with Wi-Fi", step6Page.GetResultsPhoneName(0)); Assert.AreEqual("MOTOROLA XOOM™", step6Page.GetResultsPhoneName(1)); step6Page.SortByName(); Assert.AreEqual("MOTOROLA XOOM™", step6Page.GetResultsPhoneName(0)); Assert.AreEqual("Motorola XOOM™ with Wi-Fi", step6Page.GetResultsPhoneName(1)); }