예제 #1
0
        public void UploadFoodTest()
        {
            //Arrange
            const string testFoodDescription = "Pizza";

            //Act
            FoodListPage.TapAddFoodButton();

            App.InvokeBackdoorMethod(BackdoorMethodConstants.InjectImageIntoAddFoodPage);
            AddFoodPage.TapUploadButton();

            try
            {
                AddFoodPage.WaitForActivityIndicator();
            }
            catch
            {
            }

            AddFoodPage.WaitForNoActivityIndicator();

            AddFoodPage.TapOkDialog();

            //Assert
            FoodListPage.WaitForPageToLoad();
            FoodListPage.DoesFoodExistInList(testFoodDescription);
        }
예제 #2
0
 public void LaunchTest() => FoodListPage.WaitForPageToLoad();
        public override void TestSetup()
        {
            base.TestSetup();

            FoodListPage.WaitForPageToLoad();
        }