public void UploadFoodTest() { //Arrange const string testFoodDescription = "Pizza"; //Act FoodListPage.TapAddFoodButton(); BackdoorMethodServices.InjectImageIntoAddFoodPage(App); AddFoodPage.TapUploadButton(); try { AddFoodPage.WaitForActivityIndicator(); } catch { } AddFoodPage.WaitForNoActivityIndicator(); AddFoodPage.TapOkDialog(); //Assert FoodListPage.WaitForPageToLoad(); FoodListPage.DoesFoodExistInList(testFoodDescription); }
public override void TestTearDown() { base.TestTearDown(); BackdoorMethodServices.DeleteTestFoodFromAPI(App); }