示例#1
0
文件: Issue2338.cs 项目: sung-su/maui
        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");
        }
示例#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);
        }
示例#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");
        }