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