Exemplo n.º 1
0
        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");
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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");
        }
Exemplo n.º 4
0
 public void LoadsWithoutCrashing()
 {
     RunningApp.WaitForElement("Welcome to the HomePage");
 }