public void VerifyItemsInListView() { //Arrange var listItemNumber = 9; var expectedAlertString = $"You Selected Number {listItemNumber}"; //Act BackdoorHelpers.OpenListViewPage(App); ListPage.WaitForPageToLoad(); ListPage.WaitForNoActivityIndicator(); //Assert Assert.IsTrue(BackdoorHelpers.GetListPageData(App)?.Count >= 30, "Less than 30 items found in List"); }
public void VerifyItemsInListView() { //Arrange const int listItemNumber = 9; var expectedAlertString = $"You Selected Number {listItemNumber}"; //Act BackdoorHelpers.OpenListViewPage(App); ListPage.WaitForPageToLoad(); ListPage.WaitForNoActivityIndicator(); ListPage.TapListItemNumber(listItemNumber); var actualAlertString = ListPage.GetAlertText(listItemNumber); ListPage.TapOKOnAlert(); //Assert Assert.AreEqual(expectedAlertString, actualAlertString); Assert.IsTrue(BackdoorHelpers.GetListPageData(App)?.Count >= 30, "Less than 30 items found in List"); }
public void VerifyItemsInListView() { //Arrange const int listItemNumber = 9; var expectedAlertString = $"You Selected Number {listItemNumber}"; //Act App.InvokeBackdoorMethod(BackdoorMethodConstants.OpenListViewPage); ListPage.WaitForPageToLoad(); ListPage.WaitForNoActivityIndicator(); ListPage.TapListItemNumber(listItemNumber); var actualAlertString = ListPage.GetAlertText(listItemNumber); ListPage.TapOKOnAlert(); //Assert Assert.AreEqual(expectedAlertString, actualAlertString); Assert.GreaterOrEqual(App.InvokeBackdoorMethod <IReadOnlyList <ListPageDataModel> >(BackdoorMethodConstants.GetListViewPageData).Count, 10, "Less than 10 items found in List"); }