Beispiel #1
0
        public void VerifyItemsInListView()
        {
            //Arrange
            var listItemNumber      = 9;
            var expectedAlertString = $"You Selected Number {listItemNumber}";

            //Act
            BackdoorHelpers.OpenListViewPage(App);
            ListPage.WaitForNoActivityIndicator();

            //Assert
            Assert.IsTrue(BackdoorHelpers.GetListPageData(App).Count > 30);
        }
        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);
        }
Beispiel #3
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");
        }