public async Task TestForSuccess(Xamarin.UITest.IApp RunningApp, Type type) { var test = tests.FirstOrDefault(x => x.Value == type); RunningApp.WaitForElement(test.Key); RunningApp.Tap(test.Key); //It takes a second for everything to settle await Task.Delay(2500); RunningApp.WaitForElement($"Success: {type.Name.Replace("_", " ")}"); RunningApp.Tap("Start Over"); }
internal static void RunUITests(Xamarin.UITest.IApp RunningApp) { RunningApp.WaitForElement(Title1); RunningApp.Tap(ChangeTitle1); RunningApp.Tap(ChangeIcon1); RunningApp.Tap(ChangeIconPage2); RunningApp.Tap(ChangeIcon1Null); RunningApp.WaitForElement(ChangeTitle1); RunningApp.Tap(Title2); RunningApp.Tap(ChangeTitle2); RunningApp.Tap(ChangeIcon2); RunningApp.Tap(ChangeIconPage1); RunningApp.Tap(ChangeIcon2Null); RunningApp.WaitForElement(ChangeTitle2); }
public void ShellStoreSetup() { RunningApp = AppSetup.Setup(); if (RunningApp.Query("SwapRoot - Store Shell").Length > 0) { RunningApp.Tap("SwapRoot - Store Shell"); } else { RunningApp.NavigateTo("SwapRoot - Store Shell"); } RunningApp.WaitForElement("Welcome to the HomePage"); }
public void LoadsWithoutCrashing() { RunningApp.WaitForElement("Welcome to the HomePage"); }