public void SelectItemOnListView()
        {
            //Arrange
            var listItemNumber      = 9;
            var expectedAlertString = $"You Selected Number {listItemNumber}";

            //Act
            BackdoorHelpers.OpenListViewPage(app);

            ListPage.WaitForNoActivityIndicator();
            ListPage.TapListItemNumber(listItemNumber);

            //Assert
            Assert.AreEqual(expectedAlertString, ListPage.GetAlertText(listItemNumber));
            Assert.IsTrue(BackdoorHelpers.GetListPageData(app).Count > 30);
        }
Esempio n. 2
0
        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");
        }
Esempio n. 3
0
        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");
        }