Пример #1
0
        public override void BeforeEachTest()
        {
            base.BeforeEachTest();

            BackdoorHelpers.CleariOSKeyChain(App, _username);
            BackdoorHelpers.SetiOSXTCAgent(App);
        }
        public override void BeforeEachTest()
        {
            base.BeforeEachTest();

            LoginPage.WaitForLoginScreen();

            BackdoorHelpers.BypassLoginScreen(app);

            app.WaitForElement("First Page");
        }
Пример #3
0
        public override void BeforeEachTest()
        {
            base.BeforeEachTest();

            LoginPage.WaitForPageToLoad();

            BackdoorHelpers.BypassLoginScreen(App);

            FirstPage.WaitForPageToLoad();
        }
Пример #4
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);
        }
Пример #6
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");
        }