diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla36955.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla36955.cs index 1fa868f533cf..3eb7f122248b 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla36955.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla36955.cs @@ -19,10 +19,10 @@ public Bugzilla36955(TestDevice testDevice) : base(testDevice) // [Test] // public void Bugzilla36955Test() // { - // AppResult[] buttonFalse = RunningApp.Query(q => q.Button().Text("False")); + // AppResult[] buttonFalse = App.Query(q => q.Button().Text("False")); // Assert.AreEqual(buttonFalse.Length == 1, true); - // RunningApp.Tap(q => q.Class("Switch")); - // AppResult[] buttonTrue = RunningApp.Query(q => q.Button().Text("True")); + // App.Tap(q => q.Class("Switch")); + // AppResult[] buttonTrue = App.Query(q => q.Button().Text("True")); // Assert.AreEqual(buttonTrue.Length == 1, true); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla45926.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla45926.cs index 33dd22a0b670..ef1033d21f3f 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla45926.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla45926.cs @@ -17,19 +17,19 @@ public Bugzilla45926(TestDevice testDevice) : base(testDevice) // [FailsOnAndroidWhenRunningOnXamarinUITest] // public void Issue45926Test() // { - // RunningApp.WaitForElement(q => q.Marked("New Page")); + // App.WaitForElement(q => q.Marked("New Page")); - // RunningApp.Tap(q => q.Marked("New Page")); - // RunningApp.WaitForElement(q => q.Marked("Second Page #1")); - // RunningApp.Back(); - // RunningApp.WaitForElement(q => q.Marked("Intermediate Page")); - // RunningApp.Back(); - // RunningApp.Tap(q => q.Marked("Do GC")); - // RunningApp.Tap(q => q.Marked("Do GC")); - // RunningApp.Tap(q => q.Marked("Send Message")); - // RunningApp.Tap(q => q.Marked("Do GC")); + // App.Tap(q => q.Marked("New Page")); + // App.WaitForElement(q => q.Marked("Second Page #1")); + // App.Back(); + // App.WaitForElement(q => q.Marked("Intermediate Page")); + // App.Back(); + // App.Tap(q => q.Marked("Do GC")); + // App.Tap(q => q.Marked("Do GC")); + // App.Tap(q => q.Marked("Send Message")); + // App.Tap(q => q.Marked("Do GC")); - // RunningApp.WaitForElement(q => q.Marked("Instances: 0")); - // RunningApp.WaitForElement(q => q.Marked("Messages: 0")); + // App.WaitForElement(q => q.Marked("Instances: 0")); + // App.WaitForElement(q => q.Marked("Messages: 0")); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla46363.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla46363.cs index 57f283bb562a..4fd40e06cce3 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla46363.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla46363.cs @@ -17,13 +17,13 @@ public Bugzilla46363(TestDevice testDevice) : base(testDevice) // [Test] // public void _46363_Tap_Succeeds() // { - // RunningApp.WaitForElement(Testing); - // RunningApp.Tap(Target); - // RunningApp.WaitForElement(TapSuccess); + // App.WaitForElement(Testing); + // App.Tap(Target); + // App.WaitForElement(TapSuccess); // // First run at fixing this caused the context menu to open on a regular tap // // So this check is to ensure that doesn't happen again - // RunningApp.WaitForNoElement(ContextAction); + // App.WaitForNoElement(ContextAction); // } // [FailsOnAndroidWhenRunningOnXamarinUITest] @@ -31,10 +31,10 @@ public Bugzilla46363(TestDevice testDevice) : base(testDevice) // [Test] // public void _46363_ContextAction_Succeeds() // { - // RunningApp.WaitForElement(Testing); - // RunningApp.ActivateContextMenu(Target); - // RunningApp.WaitForElement(ContextAction); - // RunningApp.Tap(ContextAction); - // RunningApp.WaitForElement(ContextSuccess); + // App.WaitForElement(Testing); + // App.ActivateContextMenu(Target); + // App.WaitForElement(ContextAction); + // App.Tap(ContextAction); + // App.WaitForElement(ContextSuccess); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla46363_2.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla46363_2.cs index 1da3ab7672b4..a8cfdafcb2ff 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla46363_2.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla46363_2.cs @@ -17,12 +17,12 @@ public Bugzilla46363_2(TestDevice testDevice) : base(testDevice) // [Test] // public void _46363_2_Tap_Succeeds() // { - // RunningApp.WaitForElement(Testing); - // RunningApp.Tap(Target); - // RunningApp.WaitForElement(TapSuccess); + // App.WaitForElement(Testing); + // App.Tap(Target); + // App.WaitForElement(TapSuccess); // // Verify that we aren't also opening the context menu - // RunningApp.WaitForNoElement(ContextAction); + // App.WaitForNoElement(ContextAction); // } // [FailsOnAndroidWhenRunningOnXamarinUITest] @@ -30,10 +30,10 @@ public Bugzilla46363_2(TestDevice testDevice) : base(testDevice) // [Test] // public void _46363_2_ContextAction_Succeeds() // { - // RunningApp.WaitForElement(Testing); - // RunningApp.ActivateContextMenu(Target); - // RunningApp.WaitForElement(ContextAction); - // RunningApp.Tap(ContextAction); - // RunningApp.WaitForElement(ContextSuccess); + // App.WaitForElement(Testing); + // App.ActivateContextMenu(Target); + // App.WaitForElement(ContextAction); + // App.Tap(ContextAction); + // App.WaitForElement(ContextSuccess); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla47923.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla47923.cs index 28286deda51c..6e1ef0418d98 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla47923.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla47923.cs @@ -19,9 +19,9 @@ public Bugzilla47923(TestDevice testDevice) : base(testDevice) // { // foreach (var testString in new[] { "AspectFit", "AspectFill", "Fill", "Test cell views" }) // { - // RunningApp.WaitForElement(q => q.Marked(testString)); - // RunningApp.Tap(q => q.Marked(testString)); - // RunningApp.Back(); + // App.WaitForElement(q => q.Marked(testString)); + // App.Tap(q => q.Marked(testString)); + // App.Back(); // } // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla52419.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla52419.cs index 9f204419dfc8..25cf3d903ba8 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla52419.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla52419.cs @@ -18,19 +18,19 @@ public Bugzilla52419(TestDevice testDevice) : base(testDevice) // [FailsOnAndroidWhenRunningOnXamarinUITest] // public void Bugzilla52419Test() // { - // RunningApp.WaitForElement(q => q.Marked("Push new page")); - // RunningApp.Tap(q => q.Marked("Push new page")); - // RunningApp.WaitForElement(q => q.Marked("Push new page")); - // RunningApp.Tap(q => q.Marked("Push new page")); - // RunningApp.WaitForElement(q => q.Marked("Push new page")); - // RunningApp.Tap(q => q.Marked("Push new page")); - // RunningApp.Tap(q => q.Marked("Tab Page 2")); - // RunningApp.Tap(q => q.Marked("Tab Page 1")); - // RunningApp.Tap(q => q.Marked("Tab Page 2")); - // RunningApp.Tap(q => q.Marked("Tab Page 1")); - // RunningApp.Back(); - // RunningApp.WaitForElement(q => q.Marked("AppearanceLabel")); - // var label = RunningApp.Query(q => q.Marked("AppearanceLabel"))[0]; + // App.WaitForElement(q => q.Marked("Push new page")); + // App.Tap(q => q.Marked("Push new page")); + // App.WaitForElement(q => q.Marked("Push new page")); + // App.Tap(q => q.Marked("Push new page")); + // App.WaitForElement(q => q.Marked("Push new page")); + // App.Tap(q => q.Marked("Push new page")); + // App.Tap(q => q.Marked("Tab Page 2")); + // App.Tap(q => q.Marked("Tab Page 1")); + // App.Tap(q => q.Marked("Tab Page 2")); + // App.Tap(q => q.Marked("Tab Page 1")); + // App.Back(); + // App.WaitForElement(q => q.Marked("AppearanceLabel")); + // var label = App.Query(q => q.Marked("AppearanceLabel"))[0]; // Assert.AreEqual("Times Appeared: 2", label.Text); // } } diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla53179_1.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla53179_1.cs index 10349641e122..62d1d81fcd92 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla53179_1.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla53179_1.cs @@ -15,8 +15,8 @@ public Bugzilla53179_1(TestDevice testDevice) : base(testDevice) // [Category(UITestCategories.Navigation)] // public void PopAsyncAfterRemovePageDoesNotCrash() // { - // RunningApp.WaitForElement(StartTest); - // RunningApp.Tap(StartTest); - // RunningApp.WaitForElement(RootLabel); + // App.WaitForElement(StartTest); + // App.Tap(StartTest); + // App.WaitForElement(RootLabel); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla53179_2.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla53179_2.cs index 13a026c32b4d..01e07cf7fb37 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla53179_2.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla53179_2.cs @@ -16,6 +16,6 @@ public Bugzilla53179_2(TestDevice testDevice) : base(testDevice) // [FailsOnAndroidWhenRunningOnXamarinUITest] // public void RemovePageOnAppearingDoesNotCrash() // { - // RunningApp.WaitForElement(Success); + // App.WaitForElement(Success); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla57317.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla57317.cs index eb80392af5d3..932167ad6716 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla57317.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla57317.cs @@ -20,11 +20,11 @@ public Bugzilla57317(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void Bugzilla57317Test() // { - // RunningApp.WaitForFirstElement("Cell"); + // App.WaitForFirstElement("Cell"); - // RunningApp.ActivateContextMenu("Cell"); + // App.ActivateContextMenu("Cell"); - // RunningApp.WaitForFirstElement("Self-Deleting item"); - // RunningApp.Tap(c => c.Marked("Self-Deleting item")); + // App.WaitForFirstElement("Self-Deleting item"); + // App.Tap(c => c.Marked("Self-Deleting item")); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla57515.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla57515.cs index 118d92673902..890f2bc97f19 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla57515.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla57515.cs @@ -17,9 +17,9 @@ public Bugzilla57515(TestDevice testDevice) : base(testDevice) // [FailsOnIOSWhenRunningOnXamarinUITest] // public void Bugzilla57515Test() // { - // RunningApp.WaitForElement(ZoomContainer); - // RunningApp.WaitForElement("1"); - // RunningApp.PinchToZoomIn(ZoomContainer); - // RunningApp.WaitForNoElement("1"); // The scale should have changed during the zoom + // App.WaitForElement(ZoomContainer); + // App.WaitForElement("1"); + // App.PinchToZoomIn(ZoomContainer); + // App.WaitForNoElement("1"); // The scale should have changed during the zoom // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla57749.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla57749.cs index 7e96c803da4c..5e01d130de77 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla57749.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla57749.cs @@ -17,8 +17,8 @@ public Bugzilla57749(TestDevice testDevice) : base(testDevice) // public async Task Bugzilla57749Test() // { // await Task.Delay(500); - // RunningApp.Tap(c => c.Marked("btnClick")); - // RunningApp.WaitForElement (q => q.Marked ("Button was clicked")); - // RunningApp.Tap("Ok"); + // App.Tap(c => c.Marked("btnClick")); + // App.WaitForElement (q => q.Marked ("Button was clicked")); + // App.Tap("Ok"); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla58779.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla58779.cs index 0715210e964c..90e526c6313c 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla58779.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla58779.cs @@ -16,10 +16,10 @@ public Bugzilla58779(TestDevice testDevice) : base(testDevice) // [FailsOnIOSWhenRunningOnXamarinUITest] // public void Bugzilla58779Test() // { - // RunningApp.WaitForElement(q => q.Marked(ButtonId)); - // RunningApp.Tap(q => q.Marked(ButtonId)); - // RunningApp.Screenshot("Check list fits on screen"); - // RunningApp.WaitForElement(q => q.Marked(CancelId)); - // RunningApp.Tap(q => q.Marked(CancelId)); + // App.WaitForElement(q => q.Marked(ButtonId)); + // App.Tap(q => q.Marked(ButtonId)); + // App.Screenshot("Check list fits on screen"); + // App.WaitForElement(q => q.Marked(CancelId)); + // App.Tap(q => q.Marked(CancelId)); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla58833.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla58833.cs index 601aba46c950..f340a4cf96a7 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla58833.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla58833.cs @@ -18,29 +18,29 @@ public Bugzilla58833(TestDevice testDevice) : base(testDevice) // public void Bugzilla58833Test() // { // // Item #1 should not have a tap gesture, so it should be selectable -// RunningApp.WaitForElement(q => q.Marked("Item #1")); -// RunningApp.Tap(q => q.Marked("Item #1")); -// RunningApp.WaitForElement(q => q.Marked(ItemSelectedSuccess)); +// App.WaitForElement(q => q.Marked("Item #1")); +// App.Tap(q => q.Marked("Item #1")); +// App.WaitForElement(q => q.Marked(ItemSelectedSuccess)); // // Item #2 should have a tap gesture -// RunningApp.WaitForElement(q => q.Marked("Item #2")); -// RunningApp.Tap(q => q.Marked("Item #2")); -// RunningApp.WaitForElement(q => q.Marked(TapGestureSucess)); +// App.WaitForElement(q => q.Marked("Item #2")); +// App.Tap(q => q.Marked("Item #2")); +// App.WaitForElement(q => q.Marked(TapGestureSucess)); // // Both items should allow access to the context menu -// RunningApp.ActivateContextMenu("Item #2"); -// RunningApp.WaitForElement("2 Action"); +// App.ActivateContextMenu("Item #2"); +// App.WaitForElement("2 Action"); // #if __ANDROID__ -// RunningApp.Back(); +// App.Back(); // #else -// RunningApp.Tap(q => q.Marked("Item #3")); +// App.Tap(q => q.Marked("Item #3")); -// RunningApp.ActivateContextMenu("Item #1"); -// RunningApp.WaitForElement("1 Action"); +// App.ActivateContextMenu("Item #1"); +// App.WaitForElement("1 Action"); // #if __ANDROID__ -// RunningApp.Back(); +// App.Back(); // #else -// RunningApp.Tap(q => q.Marked("Item #3")); +// App.Tap(q => q.Marked("Item #3")); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla58875.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla58875.cs index 173133daea89..57f1771361c0 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla58875.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla58875.cs @@ -16,21 +16,21 @@ public Bugzilla58875(TestDevice testDevice) : base(testDevice) // [Category(UITestCategories.ContextActions)] // public void Bugzilla58875Test() // { -// RunningApp.WaitForElement(q => q.Marked(Button1Id)); -// RunningApp.Tap(q => q.Marked(Button1Id)); -// RunningApp.WaitForElement(q => q.Marked(Target)); -// RunningApp.ActivateContextMenu(Target); -// RunningApp.WaitForElement(q => q.Marked(ContextAction)); -// RunningApp.Back(); +// App.WaitForElement(q => q.Marked(Button1Id)); +// App.Tap(q => q.Marked(Button1Id)); +// App.WaitForElement(q => q.Marked(Target)); +// App.ActivateContextMenu(Target); +// App.WaitForElement(q => q.Marked(ContextAction)); +// App.Back(); // #if ANDROID -// RunningApp.Back(); // back button dismisses the ContextAction first, so we need to hit back one more time to get to previous page +// App.Back(); // back button dismisses the ContextAction first, so we need to hit back one more time to get to previous page // #endif -// RunningApp.WaitForElement(q => q.Marked(Button1Id)); -// RunningApp.Tap(q => q.Marked(Button1Id)); -// RunningApp.WaitForElement(q => q.Marked(Target)); -// RunningApp.ActivateContextMenu(Target); -// RunningApp.WaitForElement(q => q.Marked(ContextAction)); +// App.WaitForElement(q => q.Marked(Button1Id)); +// App.Tap(q => q.Marked(Button1Id)); +// App.WaitForElement(q => q.Marked(Target)); +// App.ActivateContextMenu(Target); +// App.WaitForElement(q => q.Marked(ContextAction)); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla59580.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla59580.cs index ee56899476c3..aa7905ba86d7 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla59580.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla59580.cs @@ -17,12 +17,12 @@ public Bugzilla59580(TestDevice testDevice) : base(testDevice) // [FailsOnIOSWhenRunningOnXamarinUITest] // public void RaisingCommandCanExecuteChangedCausesCrashOnAndroid() // { - // RunningApp.WaitForElement(c => c.Marked("Cell")); + // App.WaitForElement(c => c.Marked("Cell")); - // RunningApp.ActivateContextMenu("Cell"); + // App.ActivateContextMenu("Cell"); - // RunningApp.WaitForElement(c => c.Marked("Fire CanExecuteChanged")); - // RunningApp.Tap(c => c.Marked("Fire CanExecuteChanged")); - // RunningApp.WaitForElement("Cell"); + // App.WaitForElement(c => c.Marked("Fire CanExecuteChanged")); + // App.Tap(c => c.Marked("Fire CanExecuteChanged")); + // App.WaitForElement("Cell"); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla59718.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla59718.cs index 3140ddf72ab1..d99409431e69 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla59718.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla59718.cs @@ -17,19 +17,19 @@ public Bugzilla59718(TestDevice testDevice) : base(testDevice) // [FailsOnIOSWhenRunningOnXamarinUITest] // public void Bugzilla59718Test() // { - // RunningApp.WaitForElement(q => q.Marked(Target1)); - // RunningApp.Tap(q => q.Marked(Target1)); + // App.WaitForElement(q => q.Marked(Target1)); + // App.Tap(q => q.Marked(Target1)); - // RunningApp.WaitForElement(q => q.Marked(Target1b)); + // App.WaitForElement(q => q.Marked(Target1b)); - // RunningApp.WaitForElement(q => q.Marked(Target2)); - // RunningApp.Tap(q => q.Marked(Target2)); + // App.WaitForElement(q => q.Marked(Target2)); + // App.Tap(q => q.Marked(Target2)); - // RunningApp.WaitForElement(q => q.Marked(Target3)); + // App.WaitForElement(q => q.Marked(Target3)); - // RunningApp.WaitForElement(q => q.Marked(GoBackButtonId)); - // RunningApp.Tap(q => q.Marked(GoBackButtonId)); + // App.WaitForElement(q => q.Marked(GoBackButtonId)); + // App.Tap(q => q.Marked(GoBackButtonId)); - // RunningApp.WaitForElement(q => q.Marked(Target1)); + // App.WaitForElement(q => q.Marked(Target1)); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla59863_0.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla59863_0.cs index 2524368847d5..7ca7856a44d8 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla59863_0.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla59863_0.cs @@ -23,23 +23,23 @@ public Bugzilla59863_0(TestDevice testDevice) : base(testDevice) // int tapsToTest = 5; - // RunningApp.WaitForElement(SingleTapBoxId); + // App.WaitForElement(SingleTapBoxId); // for (int n = 0; n < tapsToTest; n++) // { - // RunningApp.Tap(SingleTapBoxId); + // App.Tap(SingleTapBoxId); // } - // RunningApp.WaitForElement($"{tapsToTest} {Singles} on {SingleTapBoxId}"); + // App.WaitForElement($"{tapsToTest} {Singles} on {SingleTapBoxId}"); // } // [Test] // [FailsOnIOSWhenRunningOnXamarinUITest] // public void DoubleTapWithOnlySingleTapRecognizerShouldRegisterTwoTaps() // { - // RunningApp.WaitForElement(SingleTapBoxId); - // RunningApp.DoubleTap(SingleTapBoxId); + // App.WaitForElement(SingleTapBoxId); + // App.DoubleTap(SingleTapBoxId); - // RunningApp.WaitForElement($"2 {Singles} on {SingleTapBoxId}"); + // App.WaitForElement($"2 {Singles} on {SingleTapBoxId}"); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla59863_1.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla59863_1.cs index 2fed32aa9ae5..39f65f28d627 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla59863_1.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla59863_1.cs @@ -17,19 +17,19 @@ public Bugzilla59863_1(TestDevice testDevice) : base(testDevice) // [FailsOnIOSWhenRunningOnXamarinUITest] // public void SingleTapWithOnlyDoubleTapRecognizerShouldRegisterNothing() // { - // RunningApp.WaitForElement(DoubleTapBoxId); - // RunningApp.Tap(DoubleTapBoxId); + // App.WaitForElement(DoubleTapBoxId); + // App.Tap(DoubleTapBoxId); - // RunningApp.WaitForElement($"0 {Doubles} on {DoubleTapBoxId}"); + // App.WaitForElement($"0 {Doubles} on {DoubleTapBoxId}"); // } // [Test] // [FailsOnIOSWhenRunningOnXamarinUITest] // public void DoubleTapWithOnlyDoubleTapRecognizerShouldRegisterOneDoubleTap() // { - // RunningApp.WaitForElement(DoubleTapBoxId); - // RunningApp.DoubleTap(DoubleTapBoxId); + // App.WaitForElement(DoubleTapBoxId); + // App.DoubleTap(DoubleTapBoxId); - // RunningApp.WaitForElement($"1 {Doubles} on {DoubleTapBoxId}"); + // App.WaitForElement($"1 {Doubles} on {DoubleTapBoxId}"); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla59863_2.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla59863_2.cs index 8208e33224f6..13dab1f485df 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla59863_2.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla59863_2.cs @@ -17,19 +17,19 @@ public Bugzilla59863_2(TestDevice testDevice) : base(testDevice) // [FailsOnIOSWhenRunningOnXamarinUITest] // public void DoubleTapWithMixedRecognizersShouldRegisterDoubleTap() // { - // RunningApp.WaitForElement(MixedTapBoxId); - // RunningApp.DoubleTap(MixedTapBoxId); + // App.WaitForElement(MixedTapBoxId); + // App.DoubleTap(MixedTapBoxId); - // RunningApp.WaitForElement($"1 {Doubles} on {MixedTapBoxId}"); + // App.WaitForElement($"1 {Doubles} on {MixedTapBoxId}"); // } // [Test] // [FailsOnIOSWhenRunningOnXamarinUITest] // public void SingleTapWithMixedRecognizersShouldRegisterSingleTap() // { - // RunningApp.WaitForElement(MixedTapBoxId); - // RunningApp.Tap(MixedTapBoxId); + // App.WaitForElement(MixedTapBoxId); + // App.Tap(MixedTapBoxId); - // RunningApp.WaitForElement($"1 {Singles} on {MixedTapBoxId}"); + // App.WaitForElement($"1 {Singles} on {MixedTapBoxId}"); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla60045.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla60045.cs index d1c91dac5b5f..2860086b747a 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla60045.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla60045.cs @@ -15,8 +15,8 @@ public Bugzilla60045(TestDevice testDevice) : base(testDevice) // [FailsOnIOSWhenRunningOnXamarinUITest] // public void CommandDoesNotFire() // { - // RunningApp.WaitForElement(ClickThis); - // RunningApp.Tap(ClickThis); - // RunningApp.WaitForNoElement(Fail); + // App.WaitForElement(ClickThis); + // App.Tap(ClickThis); + // App.WaitForNoElement(Fail); // } } diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla60122.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla60122.cs index d7036f07d7c1..92b67020824c 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla60122.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla60122.cs @@ -21,9 +21,9 @@ public Bugzilla60122(TestDevice testDevice) : base(testDevice) // [Category(UITestCategories.Gestures)] // public void LongClickFiresOnCustomImageRenderer() // { - // RunningApp.WaitForElement(ImageId); - // RunningApp.TouchAndHold(ImageId); - // RunningApp.WaitForElement(Success); + // App.WaitForElement(ImageId); + // App.TouchAndHold(ImageId); + // App.WaitForElement(Success); // } } diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla60524.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla60524.cs index 06debabf1cc6..553c79dd127d 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla60524.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla60524.cs @@ -17,6 +17,6 @@ public Bugzilla60524(TestDevice testDevice) : base(testDevice) // [FailsOnIOSWhenRunningOnXamarinUITest] // public void Bugzilla60524Test() // { - // RunningApp.WaitForElement(q => q.Marked("Group 1")); + // App.WaitForElement(q => q.Marked("Group 1")); // } } diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue3653.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue3653.cs index ba226c3f1479..62f4d8ea4cba 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue3653.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue3653.cs @@ -22,28 +22,28 @@ public Issue3653(TestDevice testDevice) : base(testDevice) // for (int i = 1; i <= 3; i++) // { // string searchFor = $"Remove me using the context menu. #{i}"; - // RunningApp.WaitForElement(searchFor); + // App.WaitForElement(searchFor); - // RunningApp.ActivateContextMenu(searchFor); - // RunningApp.WaitForElement(c => c.Marked("Remove")); - // RunningApp.Tap(c => c.Marked("Remove")); + // App.ActivateContextMenu(searchFor); + // App.WaitForElement(c => c.Marked("Remove")); + // App.Tap(c => c.Marked("Remove")); // } // for (int i = 4; i <= 6; i++) // { - // RunningApp.Tap("Add an item"); + // App.Tap("Add an item"); // string searchFor = $"Remove me using the context menu. #{i}"; - // RunningApp.ActivateContextMenu(searchFor); - // RunningApp.WaitForElement(c => c.Marked("Remove")); - // RunningApp.Tap(c => c.Marked("Remove")); + // App.ActivateContextMenu(searchFor); + // App.WaitForElement(c => c.Marked("Remove")); + // App.Tap(c => c.Marked("Remove")); // } // for (int i = 1; i <= 6; i++) // { // string searchFor = $"Remove me using the context menu. #{i}"; - // RunningApp.WaitForNoElement(c => c.Marked("Remove")); + // App.WaitForNoElement(c => c.Marked("Remove")); // } // } } diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/FlyoutBehaviorShell.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/FlyoutBehaviorShell.cs index cae0bfd04290..7cbb4c735e72 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/FlyoutBehaviorShell.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/FlyoutBehaviorShell.cs @@ -17,54 +17,54 @@ public FlyoutBehaviorShell(TestDevice testDevice) : base(testDevice) // public void FlyoutTests() // { // // Flyout is visible - // RunningApp.WaitForElement(EnableFlyoutBehavior); + // App.WaitForElement(EnableFlyoutBehavior); // // Starting shell out as disabled correctly disables flyout - // RunningApp.WaitForNoElement(FlyoutIconAutomationId, "Flyout Icon Visible on Startup"); + // App.WaitForNoElement(FlyoutIconAutomationId, "Flyout Icon Visible on Startup"); // ShowFlyout(usingSwipe: true, testForFlyoutIcon: false); - // RunningApp.WaitForNoElement(FlyoutItem, "Flyout Visible on Startup"); + // App.WaitForNoElement(FlyoutItem, "Flyout Visible on Startup"); // // Enable Flyout Test - // RunningApp.Tap(EnableFlyoutBehavior); + // App.Tap(EnableFlyoutBehavior); // ShowFlyout(usingSwipe: true); - // RunningApp.WaitForElement(FlyoutItem, "Flyout Not Visible after Enabled"); - // RunningApp.Tap(FlyoutItem); + // App.WaitForElement(FlyoutItem, "Flyout Not Visible after Enabled"); + // App.Tap(FlyoutItem); // // Flyout Icon is not visible but you can still swipe open - // RunningApp.Tap(DisableFlyoutBehavior); - // RunningApp.WaitForNoElement(FlyoutIconAutomationId, "Flyout Icon Visible after being Disabled"); + // App.Tap(DisableFlyoutBehavior); + // App.WaitForNoElement(FlyoutIconAutomationId, "Flyout Icon Visible after being Disabled"); // ShowFlyout(usingSwipe: true, testForFlyoutIcon: false); - // RunningApp.WaitForNoElement(FlyoutItem, "Flyout Visible after being Disabled"); + // App.WaitForNoElement(FlyoutItem, "Flyout Visible after being Disabled"); // // enable flyout and make sure disabling back button behavior doesn't hide icon - // RunningApp.Tap(EnableFlyoutBehavior); - // RunningApp.WaitForElement(FlyoutIconAutomationId); - // RunningApp.Tap(DisableBackButtonBehavior); + // App.Tap(EnableFlyoutBehavior); + // App.WaitForElement(FlyoutIconAutomationId); + // App.Tap(DisableBackButtonBehavior); // ShowFlyout(usingSwipe: true); - // RunningApp.WaitForElement(FlyoutItem, "Flyout swipe not working after Disabling Back Button Behavior"); - // RunningApp.Tap(FlyoutItem); + // App.WaitForElement(FlyoutItem, "Flyout swipe not working after Disabling Back Button Behavior"); + // App.Tap(FlyoutItem); // // make sure you can still open flyout via code - // RunningApp.Tap(EnableFlyoutBehavior); - // RunningApp.Tap(EnableBackButtonBehavior); - // RunningApp.Tap(OpenFlyout); - // RunningApp.WaitForElement(FlyoutItem, "Flyout not opening via code"); - // RunningApp.Tap(FlyoutItem); + // App.Tap(EnableFlyoutBehavior); + // App.Tap(EnableBackButtonBehavior); + // App.Tap(OpenFlyout); + // App.WaitForElement(FlyoutItem, "Flyout not opening via code"); + // App.Tap(FlyoutItem); // // make sure you can still open flyout via code if flyout behavior is disabled - // RunningApp.Tap(DisableFlyoutBehavior); - // RunningApp.Tap(EnableBackButtonBehavior); - // RunningApp.Tap(OpenFlyout); - // RunningApp.WaitForElement(FlyoutItem, "Flyout not opening via code when flyout behavior disabled"); - // RunningApp.Tap(FlyoutItem); + // App.Tap(DisableFlyoutBehavior); + // App.Tap(EnableBackButtonBehavior); + // App.Tap(OpenFlyout); + // App.WaitForElement(FlyoutItem, "Flyout not opening via code when flyout behavior disabled"); + // App.Tap(FlyoutItem); // // make sure you can still open flyout via code if back button behavior is disabled - // RunningApp.Tap(EnableFlyoutBehavior); - // RunningApp.Tap(DisableBackButtonBehavior); - // RunningApp.Tap(OpenFlyout); - // RunningApp.WaitForElement(FlyoutItem, "Flyout not opening via code when back button behavior is disabled"); - // RunningApp.Tap(FlyoutItem); + // App.Tap(EnableFlyoutBehavior); + // App.Tap(DisableBackButtonBehavior); + // App.Tap(OpenFlyout); + // App.WaitForElement(FlyoutItem, "Flyout not opening via code when back button behavior is disabled"); + // App.Tap(FlyoutItem); // } @@ -72,10 +72,10 @@ public FlyoutBehaviorShell(TestDevice testDevice) : base(testDevice) // public void WhenFlyoutIsLockedButtonsAreStillVisible() // { // // FlyoutLocked ensure that the flyout and buttons are still visible - // RunningApp.Tap(EnableBackButtonBehavior); - // RunningApp.Tap(LockFlyoutBehavior); - // RunningApp.WaitForElement(title, "Flyout Locked hiding content"); - // RunningApp.Tap(EnableFlyoutBehavior); - // RunningApp.WaitForNoElement(FlyoutItem); + // App.Tap(EnableBackButtonBehavior); + // App.Tap(LockFlyoutBehavior); + // App.WaitForElement(title, "Flyout Locked hiding content"); + // App.Tap(EnableFlyoutBehavior); + // App.WaitForNoElement(FlyoutItem); // } } diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/GitHub1331.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/GitHub1331.cs index 908292030b50..9bce661cc0ce 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/GitHub1331.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/GitHub1331.cs @@ -17,18 +17,18 @@ public GitHub1331(TestDevice testDevice) : base(testDevice) // [Category(UITestCategories.Gestures)] // public void SingleTapOnCellDoesNotActivateContext() // { - // RunningApp.WaitForElement(Action); + // App.WaitForElement(Action); - // RunningApp.Tap(Action); - // RunningApp.WaitForElement(ActionItemTapped); + // App.Tap(Action); + // App.WaitForElement(ActionItemTapped); // // Tapping the part of the cell without a tap gesture should *not* display the context action - // RunningApp.Tap(CellItem); - // RunningApp.WaitForNoElement("Context Action"); + // App.Tap(CellItem); + // App.WaitForNoElement("Context Action"); // // But a Long Press *should* still display the context action - // RunningApp.TouchAndHold(CellItem); - // RunningApp.WaitForElement("Context Action"); + // App.TouchAndHold(CellItem); + // App.WaitForElement("Context Action"); // } } #endif \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/GitHub1355_Forms.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/GitHub1355_Forms.cs index 60f174df29e1..5d11dedab75d 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/GitHub1355_Forms.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/GitHub1355_Forms.cs @@ -17,6 +17,6 @@ public GitHub1355_Forms(TestDevice testDevice) : base(testDevice) // public void SwitchMainPageOnAppearing() // { // // Without the fix, this would crash. If we're here at all, the test passed. - // RunningApp.WaitForElement(Success); + // App.WaitForElement(Success); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Github1650.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Github1650.cs index c991d452224a..727097b4d492 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Github1650.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Github1650.cs @@ -18,12 +18,12 @@ public Github1650(TestDevice testDevice) : base(testDevice) // [Category(UITestCategories.Entry)] // public void GitHub1650Test() // { - // RunningApp.WaitForElement(q => q.Marked("CompletedTargetEntry")); - // RunningApp.Tap(q => q.Marked("CompletedTargetEntry")); + // App.WaitForElement(q => q.Marked("CompletedTargetEntry")); + // App.Tap(q => q.Marked("CompletedTargetEntry")); // Assert.AreEqual(0, _completedCount, "Completed should not have been fired"); - // RunningApp.PressEnter(); + // App.PressEnter(); // Assert.AreEqual(1, _completedCount, "Completed should have been fired once"); // } diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Github1776.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Github1776.cs index ab51819f5ea6..91a0cde0ad05 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Github1776.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Github1776.cs @@ -18,8 +18,8 @@ public Github1776(TestDevice testDevice) : base(testDevice) // [Category(UITestCategories.Button)] // public void GitHub1776Test() // { - // RunningApp.WaitForElement(q => q.Marked("TheButton")); - // RunningApp.Tap(q => q.Marked("TheButton")); + // App.WaitForElement(q => q.Marked("TheButton")); + // App.Tap(q => q.Marked("TheButton")); // Assert.AreEqual(1, _pressedCount, "Pressed should fire once per tap"); // Assert.AreEqual(1, _releasedCount, "Released should fire once per tap"); diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/HeaderFooterShellFlyout.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/HeaderFooterShellFlyout.cs index a54368206734..2215e69b95a3 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/HeaderFooterShellFlyout.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/HeaderFooterShellFlyout.cs @@ -17,12 +17,12 @@ public HeaderFooterShellFlyout(TestDevice testDevice) : base(testDevice) // [Ignore("This test fails intermittently, especially on iOS 17; ignore until we can fix it")] // public async Task FlyoutHeaderWithZeroMarginShouldHaveNoY() // { - // RunningApp.WaitForElement("PageLoaded"); + // App.WaitForElement("PageLoaded"); // this.TapInFlyout("ZeroMarginHeader", makeSureFlyoutStaysOpen: true); // // Adding this to just really make sure layout is finished // // Once we move this to appium we can remove this // await Task.Delay(1000); - // var layout = RunningApp.WaitForElement("ZeroMarginLayout")[0].Rect.Y; + // var layout = App.WaitForElement("ZeroMarginLayout")[0].Rect.Y; // Assert.AreEqual(0, layout); // } @@ -30,45 +30,45 @@ public HeaderFooterShellFlyout(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void FlyoutTests() // { - // RunningApp.WaitForElement("PageLoaded"); + // App.WaitForElement("PageLoaded"); // // Verify Header an Footer show up at all // TapInFlyout("ToggleHeaderFooter", makeSureFlyoutStaysOpen: true); - // RunningApp.WaitForElement("Header View"); - // RunningApp.WaitForElement("Footer View"); + // App.WaitForElement("Header View"); + // App.WaitForElement("Footer View"); // // Verify Template takes priority over header footer // TapInFlyout("ToggleHeaderFooterTemplate", makeSureFlyoutStaysOpen: true); - // RunningApp.WaitForElement("Header Template"); - // RunningApp.WaitForElement("Footer Template"); - // RunningApp.WaitForNoElement("Header View"); - // RunningApp.WaitForNoElement("Footer View"); + // App.WaitForElement("Header Template"); + // App.WaitForElement("Footer Template"); + // App.WaitForNoElement("Header View"); + // App.WaitForNoElement("Footer View"); // // Verify turning off Template shows Views again // TapInFlyout("ToggleHeaderFooterTemplate", makeSureFlyoutStaysOpen: true); - // RunningApp.WaitForElement("Header View"); - // RunningApp.WaitForElement("Footer View"); - // RunningApp.WaitForNoElement("Header Template"); - // RunningApp.WaitForNoElement("Footer Template"); + // App.WaitForElement("Header View"); + // App.WaitForElement("Footer View"); + // App.WaitForNoElement("Header Template"); + // App.WaitForNoElement("Footer Template"); // // Verify turning off header/footer clear out views correctly // TapInFlyout("ToggleHeaderFooter", makeSureFlyoutStaysOpen: true); - // RunningApp.WaitForNoElement("Header Template"); - // RunningApp.WaitForNoElement("Footer Template"); - // RunningApp.WaitForNoElement("Header View"); - // RunningApp.WaitForNoElement("Footer View"); + // App.WaitForNoElement("Header Template"); + // App.WaitForNoElement("Footer Template"); + // App.WaitForNoElement("Header View"); + // App.WaitForNoElement("Footer View"); // // verify header and footer react to size changes // TapInFlyout("ResizeHeaderFooter", makeSureFlyoutStaysOpen: true); - // var headerSizeSmall = RunningApp.WaitForElement("Header View")[0].Rect; - // var footerSizeSmall = RunningApp.WaitForElement("Footer View")[0].Rect; + // var headerSizeSmall = App.WaitForElement("Header View")[0].Rect; + // var footerSizeSmall = App.WaitForElement("Footer View")[0].Rect; // TapInFlyout("ResizeHeaderFooter", makeSureFlyoutStaysOpen: true); - // var headerSizeLarge = RunningApp.WaitForElement("Header View")[0].Rect; - // var footerSizeLarge = RunningApp.WaitForElement("Footer View")[0].Rect; + // var headerSizeLarge = App.WaitForElement("Header View")[0].Rect; + // var footerSizeLarge = App.WaitForElement("Footer View")[0].Rect; // TapInFlyout("ResizeHeaderFooter", makeSureFlyoutStaysOpen: true); - // var headerSizeSmall2 = RunningApp.WaitForElement("Header View")[0].Rect; - // var footerSizeSmall2 = RunningApp.WaitForElement("Footer View")[0].Rect; + // var headerSizeSmall2 = App.WaitForElement("Header View")[0].Rect; + // var footerSizeSmall2 = App.WaitForElement("Footer View")[0].Rect; // Assert.Greater(headerSizeLarge.Height, headerSizeSmall.Height); // Assert.Greater(footerSizeLarge.Height, footerSizeSmall.Height); diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue10134.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue10134.cs index e91fae1af621..7e3eabbd83b9 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue10134.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue10134.cs @@ -18,14 +18,14 @@ public Github10134(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void TopTabsDontScrollBackToStartWhenSelected() // { - // var element1 = RunningApp.WaitForElement("Tab 1", "Shell hasn't loaded")[0].Rect; - // RunningApp.WaitForNoElement("Tab 12", "Tab shouldn't be visible"); + // var element1 = App.WaitForElement("Tab 1", "Shell hasn't loaded")[0].Rect; + // App.WaitForNoElement("Tab 12", "Tab shouldn't be visible"); // Xamarin.UITest.Queries.AppRect element2 = element1; // for (int i = 2; i < 20; i++) // { - // var results = RunningApp.Query($"Tab {i}"); + // var results = App.Query($"Tab {i}"); // if (results.Length == 0) // break; @@ -33,26 +33,26 @@ public Github10134(TestDevice testDevice) : base(testDevice) // element2 = results[0].Rect; // } - // RunningApp.DragCoordinates(element2.CenterX, element2.CenterY, element1.CenterX, element1.CenterY); + // App.DragCoordinates(element2.CenterX, element2.CenterY, element1.CenterX, element1.CenterY); - // RunningApp.WaitForNoElement("Tab 1"); + // App.WaitForNoElement("Tab 1"); // bool testPassed = false; // // figure out what tabs are visible // for (int i = 20; i > 1; i--) // { - // var results = RunningApp.Query($"Tab {i}"); + // var results = App.Query($"Tab {i}"); // if (results.Length > 0) // { - // RunningApp.Tap($"Tab {i}"); - // RunningApp.WaitForElement($"Tab {i}"); + // App.Tap($"Tab {i}"); + // App.WaitForElement($"Tab {i}"); // testPassed = true; // break; // } // } - // RunningApp.WaitForNoElement("Tab 1"); + // App.WaitForNoElement("Tab 1"); // Assert.IsTrue(testPassed); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1023_Forms.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1023_Forms.cs index d7fce61b39af..ed4a97e674f9 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1023_Forms.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1023_Forms.cs @@ -20,19 +20,19 @@ public Issue1023_Forms(TestDevice testDevice) : base(testDevice) // { // for (var n = 0; n < 10; n++) // { - // RunningApp.WaitForElement(q => q.Marked("Push")); - // RunningApp.Tap(q => q.Marked("Push")); + // App.WaitForElement(q => q.Marked("Push")); + // App.Tap(q => q.Marked("Push")); - // RunningApp.WaitForElement(q => q.Marked("ListView")); - // RunningApp.Back(); + // App.WaitForElement(q => q.Marked("ListView")); + // App.Back(); // } // // At this point, the counter can be any value, but it's most likely not zero. // // Invoking GC once is enough to clean up all garbage data and set counter to zero - // RunningApp.WaitForElement(q => q.Marked("GC")); - // RunningApp.Tap(q => q.Marked("GC")); + // App.WaitForElement(q => q.Marked("GC")); + // App.Tap(q => q.Marked("GC")); - // RunningApp.WaitForElement(q => q.Marked("Counter: 0")); + // App.WaitForElement(q => q.Marked("Counter: 0")); // } } #endif \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1024.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1024.cs index ceace3b2e4e5..e42abc2c56fe 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1024.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1024.cs @@ -20,19 +20,19 @@ public Issue1024(TestDevice testDevice) : base(testDevice) // { // for (var n = 0; n < 10; n++) // { - // RunningApp.WaitForElement(q => q.Marked("Push")); - // RunningApp.Tap(q => q.Marked("Push")); + // App.WaitForElement(q => q.Marked("Push")); + // App.Tap(q => q.Marked("Push")); - // RunningApp.WaitForElement(q => q.Marked("ListView")); - // RunningApp.Back(); + // App.WaitForElement(q => q.Marked("ListView")); + // App.Back(); // } // // At this point, the counter can be any value, but it's most likely not zero. // // Invoking GC once is enough to clean up all garbage data and set counter to zero - // RunningApp.WaitForElement(q => q.Marked("GC")); - // RunningApp.Tap(q => q.Marked("GC")); + // App.WaitForElement(q => q.Marked("GC")); + // App.Tap(q => q.Marked("GC")); - // RunningApp.WaitForElement(q => q.Marked("Counter: 0")); + // App.WaitForElement(q => q.Marked("Counter: 0")); // } } #endif \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue10608.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue10608.cs index 6933285ffb85..64d64e89b0d5 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue10608.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue10608.cs @@ -22,25 +22,25 @@ public Issue10608(TestDevice testDevice) : base(testDevice) // [Category(UITestCategories.Shell)] // public void ShellWithTopTabsFreezesWhenNavigatingFlyoutItems() // { - // RunningApp.Tap("FlyoutItem6"); - // RunningApp.Tap("FlyoutItem0"); + // App.Tap("FlyoutItem6"); + // App.Tap("FlyoutItem0"); // for (int i = 0; i < 5; i++) // { - // RunningApp.WaitForElement("Tab1AutomationId"); - // RunningApp.WaitForElement("LearnMoreButton"); - // RunningApp.Tap("FlyoutItem0"); - // RunningApp.Tap("FlyoutItem1"); - // RunningApp.Tap("FlyoutItem0"); - // RunningApp.WaitForElement("LearnMoreButton"); + // App.WaitForElement("Tab1AutomationId"); + // App.WaitForElement("LearnMoreButton"); + // App.Tap("FlyoutItem0"); + // App.Tap("FlyoutItem1"); + // App.Tap("FlyoutItem0"); + // App.WaitForElement("LearnMoreButton"); // } - // RunningApp.WaitForElement("Tab1AutomationId"); - // RunningApp.WaitForElement("LearnMoreButton"); - // RunningApp.Tap("FlyoutItem1"); - // RunningApp.WaitForElement("Tab2AutomationId"); - // RunningApp.WaitForElement("LearnMoreButton"); - // RunningApp.Tap("FlyoutItem0"); - // RunningApp.WaitForElement("Tab1AutomationId"); - // RunningApp.WaitForElement("LearnMoreButton"); + // App.WaitForElement("Tab1AutomationId"); + // App.WaitForElement("LearnMoreButton"); + // App.Tap("FlyoutItem1"); + // App.WaitForElement("Tab2AutomationId"); + // App.WaitForElement("LearnMoreButton"); + // App.Tap("FlyoutItem0"); + // App.WaitForElement("Tab1AutomationId"); + // App.WaitForElement("LearnMoreButton"); // } } diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue11107.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue11107.cs index 9db9f5ee9efb..4ab61a61573b 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue11107.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue11107.cs @@ -19,18 +19,18 @@ public Issue11107(TestDevice testDevice) : base(testDevice) public void TabShouldntBeVisibleWhenThereIsOnlyOnePage() { RunTests(); - RunningApp.Tap("RunTestTabBarIsVisible"); + App.Tap("RunTestTabBarIsVisible"); RunTests(); - RunningApp.Tap("RunTestTwoTabs"); + App.Tap("RunTestTwoTabs"); RunTests(); void RunTests() { - RunningApp.WaitForElement("SecondPageLoaded"); - RunningApp.WaitForNoElement("Tab1AutomationId"); + App.WaitForElement("SecondPageLoaded"); + App.WaitForNoElement("Tab1AutomationId"); TapBackArrow(); - RunningApp.WaitForElement("Page1Loaded"); - RunningApp.WaitForNoElement("Tab1AutomationId"); + App.WaitForElement("Page1Loaded"); + App.WaitForNoElement("Tab1AutomationId"); } } */ diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue11214.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue11214.cs index d6fb345f39d1..09c78f61ddde 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue11214.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue11214.cs @@ -18,16 +18,16 @@ public Issue11214(TestDevice testDevice) : base(testDevice) [FailsOnIOS] public void FlyoutItemChangesPropagateCorrectlyToPlatformForShellElementsNotCurrentlyActive() { - RunningApp.WaitForElement("PageLoaded"); + App.WaitForElement("PageLoaded"); TapInFlyout("ExpandMe", makeSureFlyoutStaysOpen: true); for (int i = 0; i < 2; i++) - RunningApp.WaitForElement($"Some Item: {i}"); + App.WaitForElement($"Some Item: {i}"); TapInFlyout("ExpandMe", makeSureFlyoutStaysOpen: true); for (int i = 0; i < 2; i++) - RunningApp.WaitForNoElement($"Some Item: {i}"); + App.WaitForNoElement($"Some Item: {i}"); } */ } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue11247.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue11247.cs index 909533ab4cee..f63caf227dbb 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue11247.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue11247.cs @@ -18,12 +18,12 @@ public Issue11247(TestDevice testDevice) : base(testDevice) [FailsOnAndroid] public void SettingFlyoutIsPresentedInNavigatingKeepsFlyoutOpen() { - RunningApp.Tap("CloseFlyout"); + App.Tap("CloseFlyout"); ShowFlyout(); - RunningApp.Tap("FlyoutItem 1"); - RunningApp.Tap("FlyoutItem 2"); - RunningApp.WaitForElement("FlyoutItem 1"); - RunningApp.WaitForElement("FlyoutItem 2"); + App.Tap("FlyoutItem 1"); + App.Tap("FlyoutItem 2"); + App.WaitForElement("FlyoutItem 1"); + App.WaitForElement("FlyoutItem 2"); } */ diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue11381.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue11381.cs index 93bebeaaa77f..1aeb6c315e0e 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue11381.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue11381.cs @@ -17,16 +17,16 @@ public Issue11381(TestDevice testDevice) : base(testDevice) //[FailsOnMauiIOS] //public void Issue11381RemoveListViewGroups() //{ - // RunningApp.WaitForElement("ListViewId", "Timed out waiting for the ListView."); + // App.WaitForElement("ListViewId", "Timed out waiting for the ListView."); - // RunningApp.Tap(x => x.Marked("G1I1")); - // RunningApp.Tap(x => x.Marked("G1I2")); - // RunningApp.Tap(x => x.Marked("G1I3")); - // RunningApp.Tap(x => x.Marked("G1I4")); - // RunningApp.Tap(x => x.Marked("G2I1")); - // RunningApp.Tap(x => x.Marked("G2I2")); + // App.Tap(x => x.Marked("G1I1")); + // App.Tap(x => x.Marked("G1I2")); + // App.Tap(x => x.Marked("G1I3")); + // App.Tap(x => x.Marked("G1I4")); + // App.Tap(x => x.Marked("G2I1")); + // App.Tap(x => x.Marked("G2I2")); - // RunningApp.WaitForElement("ResultId"); - // Assert.AreEqual("0 groups", RunningApp.WaitForElement("ResultId")[0].ReadText()); + // App.WaitForElement("ResultId"); + // Assert.AreEqual("0 groups", App.WaitForElement("ResultId")[0].ReadText()); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue12246.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue12246.cs index 63549c453f33..37385271c660 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue12246.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue12246.cs @@ -16,15 +16,15 @@ public Issue12246(TestDevice testDevice) : base(testDevice) // [Category(UITestCategories.Entry)] // public void UnfocusingPasswordDoesNotHang() // { - // RunningApp.WaitForElement(Entry); - // RunningApp.WaitForElement(Password); + // App.WaitForElement(Entry); + // App.WaitForElement(Password); - // RunningApp.EnterText(Entry, "test"); - // RunningApp.DismissKeyboard(); - // RunningApp.EnterText(Password, "test"); + // App.EnterText(Entry, "test"); + // App.DismissKeyboard(); + // App.EnterText(Password, "test"); - // RunningApp.Tap(Entry); - // RunningApp.DismissKeyboard(); - // RunningApp.WaitForElement(Success); + // App.Tap(Entry); + // App.DismissKeyboard(); + // App.WaitForElement(Success); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue12320.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue12320.cs index ba131bd640af..b7240590cc7a 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue12320.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue12320.cs @@ -17,8 +17,8 @@ public Issue12320(TestDevice testDevice) : base(testDevice) // [Category(UITestCategories.Shell)] // public void PopLogicExecutesWhenUsingBackButtonBehavior() // { - // RunningApp.WaitForElement("TestReady"); + // App.WaitForElement("TestReady"); // base.TapBackArrow(); - // RunningApp.WaitForElement("Tab 1"); + // App.WaitForElement("Tab 1"); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue12429.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue12429.cs index 3fd7a30725cc..d849b2754a70 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue12429.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue12429.cs @@ -16,29 +16,29 @@ public Issue12429(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.Shell)] //public void FlyoutItemSizesToExplicitHeight() //{ - // RunningApp.WaitForElement("PageLoaded"); + // App.WaitForElement("PageLoaded"); // this.ShowFlyout(); - // var height = RunningApp.WaitForElement("SmallFlyoutItem")[0].Rect.Height; + // var height = App.WaitForElement("SmallFlyoutItem")[0].Rect.Height; // Assert.That(height, Is.EqualTo(SmallFlyoutItem).Within(1)); //} //[Test] //public void FlyoutItemHeightAndWidthIncreaseAndDecreaseCorrectly() //{ - // RunningApp.WaitForElement("PageLoaded"); + // App.WaitForElement("PageLoaded"); // this.ShowFlyout(); - // var initialHeight = RunningApp.WaitForElement("ResizeMe")[0].Rect.Height; + // var initialHeight = App.WaitForElement("ResizeMe")[0].Rect.Height; // TapInFlyout("ResizeFlyoutItem", makeSureFlyoutStaysOpen: true); - // var newHeight = RunningApp.WaitForElement("ResizeMe")[0].Rect.Height; + // var newHeight = App.WaitForElement("ResizeMe")[0].Rect.Height; // Assert.That(newHeight - initialHeight, Is.EqualTo(SizeToModifyBy).Within(1)); // TapInFlyout("ResizeFlyoutItemDown", makeSureFlyoutStaysOpen: true); - // newHeight = RunningApp.WaitForElement("ResizeMe")[0].Rect.Height; + // newHeight = App.WaitForElement("ResizeMe")[0].Rect.Height; // Assert.That(initialHeight, Is.EqualTo(newHeight).Within(1)); // TapInFlyout("ResizeFlyoutItemDown", makeSureFlyoutStaysOpen: true); - // newHeight = RunningApp.WaitForElement("ResizeMe")[0].Rect.Height; + // newHeight = App.WaitForElement("ResizeMe")[0].Rect.Height; // Assert.That(initialHeight - newHeight, Is.EqualTo(SizeToModifyBy).Within(1)); //} diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue12652.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue12652.cs index 8075a5910018..6a7f193aaa0c 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue12652.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue12652.cs @@ -16,19 +16,19 @@ public Issue12652(TestDevice testDevice) : base(testDevice) // [Category(UITestCategories.Shell)] // public void NavigatingBackToAlreadySelectedTopTabDoesntCrash() // { - // var location = RunningApp.WaitForElement("Top 3")[0]; - // RunningApp.TapCoordinates(location.Rect.CenterX, location.Rect.CenterY); - // RunningApp.WaitForElement("TopTabPage3"); - // RunningApp.Tap("Main 2"); - // RunningApp.WaitForElement("TopTabPage2"); - // RunningApp.Tap("Main 1"); + // var location = App.WaitForElement("Top 3")[0]; + // App.TapCoordinates(location.Rect.CenterX, location.Rect.CenterY); + // App.WaitForElement("TopTabPage3"); + // App.Tap("Main 2"); + // App.WaitForElement("TopTabPage2"); + // App.Tap("Main 1"); - // RunningApp.TapCoordinates(location.Rect.CenterX, location.Rect.CenterY); - // RunningApp.WaitForElement("TopTabPage3"); - // RunningApp.Tap("Main 2"); - // RunningApp.WaitForElement("TopTabPage2"); - // RunningApp.Tap("Main 1"); - // RunningApp.TapCoordinates(location.Rect.CenterX, location.Rect.CenterY); - // RunningApp.WaitForElement("TopTabPage3"); + // App.TapCoordinates(location.Rect.CenterX, location.Rect.CenterY); + // App.WaitForElement("TopTabPage3"); + // App.Tap("Main 2"); + // App.WaitForElement("TopTabPage2"); + // App.Tap("Main 1"); + // App.TapCoordinates(location.Rect.CenterX, location.Rect.CenterY); + // App.WaitForElement("TopTabPage3"); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue12685.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue12685.cs index db6d0e46fa94..5fe7abc2b2d2 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue12685.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue12685.cs @@ -17,11 +17,11 @@ public Issue12685(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void ShapesPathReceiveGestureRecognizers() // { - // var testLabel = RunningApp.WaitForFirstElement(StatusLabelId); + // var testLabel = App.WaitForFirstElement(StatusLabelId); // Assert.AreEqual(ResetStatus, testLabel.ReadText()); - // var testPath = RunningApp.WaitForFirstElement(PathId); + // var testPath = App.WaitForFirstElement(PathId); // var pathRect = testPath.Rect; - // RunningApp.TapCoordinates(pathRect.X + 1, pathRect.Y + 1); - // Assert.AreEqual(ClickedStatus, RunningApp.WaitForFirstElement(StatusLabelId).ReadText()); + // App.TapCoordinates(pathRect.X + 1, pathRect.Y + 1); + // Assert.AreEqual(ClickedStatus, App.WaitForFirstElement(StatusLabelId).ReadText()); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue12777.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue12777.cs index 1aea8b135fdc..55979a199ed3 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue12777.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue12777.cs @@ -17,7 +17,7 @@ public Issue12777(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void Issue12777Test() // { - // RunningApp.WaitForElement("TestCarouselView"); - // RunningApp.Screenshot("Test passed"); + // App.WaitForElement("TestCarouselView"); + // App.Screenshot("Test passed"); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue13203.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue13203.cs index f0d074a2ca96..45e59114bac5 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue13203.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue13203.cs @@ -17,6 +17,6 @@ public Issue13203(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void CollectionShouldInvalidateOnVisibilityChange() // { - // RunningApp.WaitForElement(Success); + // App.WaitForElement(Success); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1323.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1323.cs index d5edb85fd29c..94b29abcce7e 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1323.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1323.cs @@ -19,8 +19,8 @@ public Issue1323(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void Issue1323Test() // { - // RunningApp.WaitForElement(X => X.Marked("Page 1")); - // RunningApp.WaitForElement(X => X.Marked("Page5")); - // RunningApp.Screenshot("All tab bar items text should be white"); + // App.WaitForElement(X => X.Marked("Page 1")); + // App.WaitForElement(X => X.Marked("Page5")); + // App.Screenshot("All tab bar items text should be white"); // } } diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1342.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1342.cs index c5f28df35d38..6144c1f9fb55 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1342.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1342.cs @@ -19,8 +19,8 @@ public Issue1342(TestDevice testDevice) : base(testDevice) // [Ignore("Fails sometimes - needs a better test")] // public void AddingItemsToNonVisibleListViewDoesntCrash() // { - // RunningApp.Tap(add2); - // RunningApp.Tap(add3); - // RunningApp.WaitForElement(success); + // App.Tap(add2); + // App.Tap(add3); + // App.WaitForElement(success); // } } diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1414.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1414.cs index e44af754b411..e4651efadbd6 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1414.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1414.cs @@ -16,11 +16,11 @@ public Issue1414(TestDevice testDevice) : base(testDevice) // [Category(UITestCategories.TableView)] // public void InvalidCastExceptionWhenScrollingAndRefreshingTableView() // { - // RunningApp.Screenshot("Start G1414"); - // var tableFrame = RunningApp.WaitForElement(q => q.Marked("TableView"))[0].Rect; - // RunningApp.ScrollForElement("* marked:'Row-4-24'", new Drag(tableFrame, Drag.Direction.BottomToTop, Drag.DragLength.Long)); - // RunningApp.Screenshot("Scrolled to end without crashing!"); - // RunningApp.ScrollForElement("* marked:'Row-0-0'", new Drag(tableFrame, Drag.Direction.TopToBottom, Drag.DragLength.Long)); - // RunningApp.Screenshot("Scrolled to top without crashing!"); + // App.Screenshot("Start G1414"); + // var tableFrame = App.WaitForElement(q => q.Marked("TableView"))[0].Rect; + // App.ScrollForElement("* marked:'Row-4-24'", new Drag(tableFrame, Drag.Direction.BottomToTop, Drag.DragLength.Long)); + // App.Screenshot("Scrolled to end without crashing!"); + // App.ScrollForElement("* marked:'Row-0-0'", new Drag(tableFrame, Drag.Direction.TopToBottom, Drag.DragLength.Long)); + // App.Screenshot("Scrolled to top without crashing!"); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1439.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1439.cs index 67a0485d7511..3ad3a8d05d05 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1439.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1439.cs @@ -17,25 +17,25 @@ public Issue1439(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void Issue1439Test() // { - // RunningApp.WaitForElement(q => q.Marked(A)); - // RunningApp.Tap(q => q.Marked(A)); + // App.WaitForElement(q => q.Marked(A)); + // App.Tap(q => q.Marked(A)); - // Assert.AreEqual(A, RunningApp.WaitForElement(q => q.Marked(lblItem))[0].ReadText()); - // Assert.AreEqual(Group_1, RunningApp.WaitForElement(q => q.Marked(lblGroup))[0].ReadText()); + // Assert.AreEqual(A, App.WaitForElement(q => q.Marked(lblItem))[0].ReadText()); + // Assert.AreEqual(Group_1, App.WaitForElement(q => q.Marked(lblGroup))[0].ReadText()); - // RunningApp.Tap(q => q.Marked(B)); + // App.Tap(q => q.Marked(B)); - // Assert.AreEqual(B, RunningApp.WaitForElement(q => q.Marked(lblItem))[0].ReadText()); - // Assert.AreEqual(Group_1, RunningApp.WaitForElement(q => q.Marked(lblGroup))[0].ReadText()); + // Assert.AreEqual(B, App.WaitForElement(q => q.Marked(lblItem))[0].ReadText()); + // Assert.AreEqual(Group_1, App.WaitForElement(q => q.Marked(lblGroup))[0].ReadText()); - // RunningApp.Tap(q => q.Marked(C)); + // App.Tap(q => q.Marked(C)); - // Assert.AreEqual(C, RunningApp.WaitForElement(q => q.Marked(lblItem))[0].ReadText()); - // Assert.AreEqual(Group_2, RunningApp.WaitForElement(q => q.Marked(lblGroup))[0].ReadText()); + // Assert.AreEqual(C, App.WaitForElement(q => q.Marked(lblItem))[0].ReadText()); + // Assert.AreEqual(Group_2, App.WaitForElement(q => q.Marked(lblGroup))[0].ReadText()); - // RunningApp.Tap(q => q.Marked(D)); + // App.Tap(q => q.Marked(D)); - // Assert.AreEqual(D, RunningApp.WaitForElement(q => q.Marked(lblItem))[0].ReadText()); - // Assert.AreEqual(Group_2, RunningApp.WaitForElement(q => q.Marked(lblGroup))[0].ReadText()); + // Assert.AreEqual(D, App.WaitForElement(q => q.Marked(lblItem))[0].ReadText()); + // Assert.AreEqual(Group_2, App.WaitForElement(q => q.Marked(lblGroup))[0].ReadText()); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1455.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1455.cs index 0dec9db778f9..ac5f8818ddc1 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1455.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1455.cs @@ -15,25 +15,25 @@ public Issue1455(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.ListView)] //public void RefreshContextActions() //{ - // RunningApp.WaitForElement("Cell 1"); - // RunningApp.Screenshot("I am at Issue 1455"); - // RunningApp.TouchAndHold(q => q.Marked("Cell 4")); - // RunningApp.Screenshot("Long Press Cell 4 to show context actions"); - // RunningApp.Tap(q => q.Marked("Cell 5")); - // RunningApp.Screenshot("Clicked another cell and changed menu items"); + // App.WaitForElement("Cell 1"); + // App.Screenshot("I am at Issue 1455"); + // App.TouchAndHold(q => q.Marked("Cell 4")); + // App.Screenshot("Long Press Cell 4 to show context actions"); + // App.Tap(q => q.Marked("Cell 5")); + // App.Screenshot("Clicked another cell and changed menu items"); - // Assert.AreEqual(1, RunningApp.Query(c => c.Marked("Hendrerit")).Length); + // Assert.AreEqual(1, App.Query(c => c.Marked("Hendrerit")).Length); - // RunningApp.Back(); + // App.Back(); - // RunningApp.WaitForElement("Toggle LegacyMode"); - // RunningApp.Tap(q => q.Marked("Toggle LegacyMode")); + // App.WaitForElement("Toggle LegacyMode"); + // App.Tap(q => q.Marked("Toggle LegacyMode")); - // RunningApp.TouchAndHold(q => q.Marked("Cell 4")); - // RunningApp.Screenshot("Long Press Cell 4 to show context actions"); - // RunningApp.Tap(q => q.Marked("Cell 5")); - // RunningApp.Screenshot("Clicked another cell and changed menu items"); + // App.TouchAndHold(q => q.Marked("Cell 4")); + // App.Screenshot("Long Press Cell 4 to show context actions"); + // App.Tap(q => q.Marked("Cell 5")); + // App.Screenshot("Clicked another cell and changed menu items"); - // Assert.AreEqual(1, RunningApp.Query(c => c.Marked("Vestibulum")).Length); + // Assert.AreEqual(1, App.Query(c => c.Marked("Vestibulum")).Length); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue15542.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue15542.cs index fbb15e4f7d22..e0c6b7c12fe6 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue15542.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue15542.cs @@ -16,8 +16,8 @@ public Issue15542(TestDevice testDevice) : base(testDevice) // [Category(UITestCategories.TitleView)] // public void TitleViewHeightDoesntOverflow() // { - // var titleView = RunningApp.WaitForElement("TitleViewId")[0].Rect; - // var topTab = RunningApp.WaitForElement("page 1")[0].Rect; + // var titleView = App.WaitForElement("TitleViewId")[0].Rect; + // var topTab = App.WaitForElement("page 1")[0].Rect; // var titleViewBottom = titleView.Y + titleView.Height; // var topTabTop = topTab.Y; diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue15565.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue15565.cs index cf64fcc3948e..656bcd9d6d68 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue15565.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue15565.cs @@ -16,8 +16,8 @@ public Issue15565(TestDevice testDevice) : base(testDevice) // [Test] // public void TitleViewHeightIsNotZero() // { - // var titleView = RunningApp.WaitForElement("TitleViewId")[0].Rect; - // var topTab = RunningApp.WaitForElement("page 1")[0].Rect; + // var titleView = App.WaitForElement("TitleViewId")[0].Rect; + // var topTab = App.WaitForElement("page 1")[0].Rect; // var titleViewBottom = titleView.Y + titleView.Height; // var topTabTop = topTab.Y; @@ -30,22 +30,22 @@ public Issue15565(TestDevice testDevice) : base(testDevice) // [Test] // public void ToolbarItemsWithTitleViewAreRendering() // { - // RunningApp.WaitForElement("Item 1"); - // RunningApp.WaitForElement("Item 3"); + // App.WaitForElement("Item 1"); + // App.WaitForElement("Item 3"); // } // [Test] // public void NoDuplicateTitleViews() // { - // var titleView = RunningApp.WaitForElement("TitleViewId"); + // var titleView = App.WaitForElement("TitleViewId"); // Assert.AreEqual(1, titleView.Length); - // RunningApp.Tap("page 1"); - // RunningApp.Tap("page 2"); - // RunningApp.Tap("page 3"); + // App.Tap("page 1"); + // App.Tap("page 2"); + // App.Tap("page 3"); - // titleView = RunningApp.WaitForElement("TitleViewId"); + // titleView = App.WaitForElement("TitleViewId"); // Assert.AreEqual(1, titleView.Length); // } diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1614.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1614.cs index 17b6e5536f94..6f582c62d72d 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1614.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1614.cs @@ -17,36 +17,36 @@ public Issue1614(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void Issue1614Test() // { - // RunningApp.SetOrientationPortrait(); + // App.SetOrientationPortrait(); - // RunningApp.WaitForElement(x => x.Class("UITextField")); - // RunningApp.Tap(x => x.Class("UITextField").Index(0)); + // App.WaitForElement(x => x.Class("UITextField")); + // App.Tap(x => x.Class("UITextField").Index(0)); // CheckPickerAccessory("UIPickerView"); - // RunningApp.SetOrientationLandscape(); + // App.SetOrientationLandscape(); // CheckPickerAccessory("UIPickerView"); - // RunningApp.SetOrientationPortrait(); - // RunningApp.DismissKeyboard(); + // App.SetOrientationPortrait(); + // App.DismissKeyboard(); - // RunningApp.Tap(x => x.Class("UITextField").Index(1)); + // App.Tap(x => x.Class("UITextField").Index(1)); // CheckPickerAccessory("UIDatePicker"); - // RunningApp.SetOrientationLandscape(); + // App.SetOrientationLandscape(); // CheckPickerAccessory("UIDatePicker"); - // RunningApp.SetOrientationPortrait(); - // RunningApp.DismissKeyboard(); + // App.SetOrientationPortrait(); + // App.DismissKeyboard(); - // RunningApp.Tap(x => x.Class("UITextField").Index(2)); + // App.Tap(x => x.Class("UITextField").Index(2)); // CheckPickerAccessory("UIDatePicker"); - // RunningApp.SetOrientationLandscape(); + // App.SetOrientationLandscape(); // CheckPickerAccessory("UIDatePicker"); - // RunningApp.SetOrientationPortrait(); - // RunningApp.DismissKeyboard(); + // App.SetOrientationPortrait(); + // App.DismissKeyboard(); // } // private void CheckPickerAccessory(string className) // { - // RunningApp.WaitForElement(x => x.Class("UIButtonLabel")); - // var buttonRect = RunningApp.Query(x => x.Class("UIButtonLabel"))[0].Rect; - // var pickerRect = RunningApp.Query(x => x.Class(className))[0].Rect; + // App.WaitForElement(x => x.Class("UIButtonLabel")); + // var buttonRect = App.Query(x => x.Class("UIButtonLabel"))[0].Rect; + // var pickerRect = App.Query(x => x.Class(className))[0].Rect; // var buttonBottom = buttonRect.Y + buttonRect.Height; // var pickerTop = pickerRect.Y; diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1658.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1658.cs index 53efe9b30cee..58d028e8e2a8 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1658.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1658.cs @@ -17,14 +17,14 @@ public Issue1658(TestDevice testDevice) : base(testDevice) // [Category(UITestCategories.ListView)] // public void ContextActionsIconImageSource() // { - // RunningApp.ActivateContextMenu("ListViewItem"); - // RunningApp.WaitForElement("coffee.png"); - // RunningApp.DismissContextMenu(); + // App.ActivateContextMenu("ListViewItem"); + // App.WaitForElement("coffee.png"); + // App.DismissContextMenu(); - // RunningApp.WaitForElement("ColorBox"); - // RunningApp.Screenshot("Box should be red"); - // RunningApp.Tap("ColorBox"); - // RunningApp.Screenshot("Box should be yellow"); + // App.WaitForElement("ColorBox"); + // App.Screenshot("Box should be red"); + // App.Tap("ColorBox"); + // App.Screenshot("Box should be yellow"); // } } #endif \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1704.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1704.cs index d25cb882b655..478e13f059d6 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1704.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1704.cs @@ -17,20 +17,20 @@ public Issue1704(TestDevice testDevice) : base(testDevice) // [Category(UITestCategories.ManualReview)] // public void Issue1704Test() // { - // RunningApp.WaitForElement("On Load"); - // RunningApp.WaitForElement("On Start"); - // RunningApp.WaitForElement("Source"); - // RunningApp.WaitForElement("Misc"); + // App.WaitForElement("On Load"); + // App.WaitForElement("On Start"); + // App.WaitForElement("Source"); + // App.WaitForElement("Misc"); - // RunningApp.Tap(q => q.Marked("On Load")); - // RunningApp.Tap(q => q.Marked("On Start")); - // RunningApp.WaitForElement(q => q.Marked("Start Animation")); - // RunningApp.Tap(q => q.Marked("Start Animation")); - // RunningApp.Tap(q => q.Marked("Stop Animation")); + // App.Tap(q => q.Marked("On Load")); + // App.Tap(q => q.Marked("On Start")); + // App.WaitForElement(q => q.Marked("Start Animation")); + // App.Tap(q => q.Marked("Start Animation")); + // App.Tap(q => q.Marked("Stop Animation")); - // RunningApp.Tap(q => q.Marked("Misc")); - // RunningApp.WaitForElement(q => q.Marked("Start Animation")); - // RunningApp.Tap(q => q.Marked("Start Animation")); - // RunningApp.Tap(q => q.Marked("Stop Animation")); + // App.Tap(q => q.Marked("Misc")); + // App.WaitForElement(q => q.Marked("Start Animation")); + // App.Tap(q => q.Marked("Start Animation")); + // App.Tap(q => q.Marked("Stop Animation")); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1763.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1763.cs index 2fb9d273944c..274604989207 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1763.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1763.cs @@ -18,10 +18,10 @@ public Issue1763(TestDevice testDevice) : base(testDevice) // [FailsOnAndroid] // public void TestIssue1763ItemTappedFiring() // { - // RunningApp.WaitForElement(q => q.Marked("Contacts")); - // RunningApp.Tap(q => q.Marked("Egor1")); - // RunningApp.WaitForElement(q => q.Marked("Tapped a List item")); - // RunningApp.Tap(q => q.Marked("Destruction")); - // RunningApp.WaitForElement(q => q.Marked("Contacts")); + // App.WaitForElement(q => q.Marked("Contacts")); + // App.Tap(q => q.Marked("Egor1")); + // App.WaitForElement(q => q.Marked("Tapped a List item")); + // App.Tap(q => q.Marked("Destruction")); + // App.WaitForElement(q => q.Marked("Contacts")); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1777.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1777.cs index 23fd35c0ca49..e4f28b8f710c 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1777.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1777.cs @@ -17,11 +17,11 @@ public Issue1777(TestDevice testDevice) : base(testDevice) // [Category(UITestCategories.TableView)] // public void Issue1777Test() // { - // RunningApp.WaitForElement(q => q.Button(_btnText)); - // RunningApp.Tap(q => q.Button(_btnText)); - // RunningApp.Tap(q => q.Marked(_pickerTableId)); - // RunningApp.WaitForElement(q => q.Marked("test 0")); - // RunningApp.Screenshot("Picker is displayed correctly in the ViewCell"); + // App.WaitForElement(q => q.Button(_btnText)); + // App.Tap(q => q.Button(_btnText)); + // App.Tap(q => q.Marked(_pickerTableId)); + // App.WaitForElement(q => q.Marked("test 0")); + // App.Screenshot("Picker is displayed correctly in the ViewCell"); // } } #endif \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1875.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1875.cs index 2d6646a2e991..26bca04e0249 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1875.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1875.cs @@ -17,8 +17,8 @@ public Issue1875(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void NSRangeException() // { - // RunningApp.WaitForElement(q => q.Marked("Load")); - // RunningApp.Tap(q => q.Marked("Load")); - // RunningApp.WaitForElement(q => q.Marked("5")); + // App.WaitForElement(q => q.Marked("Load")); + // App.Tap(q => q.Marked("Load")); + // App.WaitForElement(q => q.Marked("5")); // } } diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1939.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1939.cs index e1d32e0bf8a3..e164aa4b89e2 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1939.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue1939.cs @@ -17,6 +17,6 @@ public Issue1939(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void Issue1939Test() // { - // RunningApp.WaitForElement(q => q.Marked("Group #1")); + // App.WaitForElement(q => q.Marked("Group #1")); // } } diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue198.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue198.cs index 5b7b6c86c638..707327a9c173 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue198.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue198.cs @@ -17,25 +17,25 @@ public Issue198(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void Issue198TestsNREWithPopModal() // { - // RunningApp.WaitForElement(q => q.Marked("Page One")); - // RunningApp.WaitForElement(q => q.Button("Leave")); - // RunningApp.Screenshot("All Elements Present"); + // App.WaitForElement(q => q.Marked("Page One")); + // App.WaitForElement(q => q.Button("Leave")); + // App.Screenshot("All Elements Present"); - // RunningApp.Tap(q => q.Marked("Leave")); - // RunningApp.Screenshot("Clicked Leave"); + // App.Tap(q => q.Marked("Leave")); + // App.Screenshot("Clicked Leave"); - // RunningApp.WaitForElement(q => q.Marked("Bug Repro's")); + // App.WaitForElement(q => q.Marked("Bug Repro's")); // #if !__MACOS__ - // RunningApp.ClearText(q => q.Raw("* marked:'SearchBarGo'")); - // RunningApp.EnterText(q => q.Raw("* marked:'SearchBarGo'"), "G198"); + // App.ClearText(q => q.Raw("* marked:'SearchBarGo'")); + // App.EnterText(q => q.Raw("* marked:'SearchBarGo'"), "G198"); // #endif - // RunningApp.Tap(q => q.Marked("SearchButton")); - // RunningApp.Screenshot("Navigate into gallery again"); + // App.Tap(q => q.Marked("SearchButton")); + // App.Screenshot("Navigate into gallery again"); - // RunningApp.WaitForElement(q => q.Marked("Page Three")); - // RunningApp.Tap(q => q.Marked("Page Three")); + // App.WaitForElement(q => q.Marked("Page Three")); + // App.Tap(q => q.Marked("Page Three")); - // RunningApp.WaitForElement(q => q.Marked("No Crash")); - // RunningApp.Screenshot("App did not crash"); + // App.WaitForElement(q => q.Marked("No Crash")); + // App.Screenshot("App did not crash"); // } } diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2266.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2266.cs index 8eb3cbf522c9..fd88507aafc5 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2266.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2266.cs @@ -17,18 +17,18 @@ public Issue2266(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void SwapMainPageWithFlyoutPages() // { - // RunningApp.WaitForElement(q => q.Text("FlyoutPage Navigation")); - // RunningApp.Tap(q => q.Text("FlyoutPage Navigation")); - // RunningApp.Tap(q => q.Marked("OpenMaster")); - // RunningApp.Tap(q => q.Text("Page 1")); - // RunningApp.Tap(q => q.Text("START")); - // RunningApp.Tap(q => q.Text("FlyoutPage Navigation ->> Page 1")); - // RunningApp.WaitForElement(q => q.Text("Page 1")); - // RunningApp.Tap(q => q.Text("START")); - // RunningApp.Tap(q => q.Text("FlyoutPage Navigation ->> Page 2")); - // RunningApp.WaitForElement(q => q.Text("Page 2")); - // RunningApp.Tap(q => q.Text("START")); - // RunningApp.Tap(q => q.Text("FlyoutPage Navigation ->> Page 3")); - // RunningApp.WaitForElement(q => q.Text("Page 3")); + // App.WaitForElement(q => q.Text("FlyoutPage Navigation")); + // App.Tap(q => q.Text("FlyoutPage Navigation")); + // App.Tap(q => q.Marked("OpenMaster")); + // App.Tap(q => q.Text("Page 1")); + // App.Tap(q => q.Text("START")); + // App.Tap(q => q.Text("FlyoutPage Navigation ->> Page 1")); + // App.WaitForElement(q => q.Text("Page 1")); + // App.Tap(q => q.Text("START")); + // App.Tap(q => q.Text("FlyoutPage Navigation ->> Page 2")); + // App.WaitForElement(q => q.Text("Page 2")); + // App.Tap(q => q.Text("START")); + // App.Tap(q => q.Text("FlyoutPage Navigation ->> Page 3")); + // App.WaitForElement(q => q.Text("Page 3")); // } } diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2272.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2272.cs index 716aa2051a7e..9cc25eca7c13 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2272.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2272.cs @@ -20,11 +20,11 @@ public Issue2272(TestDevice testDevice) : base(testDevice) // #endif // public void TestFocusIsOnTheEndAfterSettingText () // { - // RunningApp.WaitForElement("userNameEditorEmptyString"); - // RunningApp.Tap (c => c.Marked ("userNameEditorEmptyString")); - // RunningApp.EnterText ("1"); + // App.WaitForElement("userNameEditorEmptyString"); + // App.Tap (c => c.Marked ("userNameEditorEmptyString")); + // App.EnterText ("1"); // PressEnter (); - // var q = RunningApp.Query(c => c.Marked("userNameEditorEmptyString")); + // var q = App.Query(c => c.Marked("userNameEditorEmptyString")); // Assert.AreEqual("focused1", q[0].Text); // } @@ -35,7 +35,7 @@ public Issue2272(TestDevice testDevice) : base(testDevice) // androidApp.PressUserAction (UserAction.Done); // } // else { - // RunningApp.PressEnter (); + // App.PressEnter (); // } // } } diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2289.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2289.cs index 857aaab6f54b..50665835c66b 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2289.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2289.cs @@ -17,9 +17,9 @@ public Issue2289(TestDevice testDevice) : base(testDevice) //[Ignore("Fails sometimes on XTC")] //public void TestIsEnabledFalse() //{ - // var disable1 = RunningApp.Query(c => c.Marked("txtCellDisable1"))[0]; + // var disable1 = App.Query(c => c.Marked("txtCellDisable1"))[0]; // Assert.IsFalse(disable1.Enabled); - // var disable2 = RunningApp.Query(c => c.Marked("txtCellDisable2"))[0]; + // var disable2 = App.Query(c => c.Marked("txtCellDisable2"))[0]; // Assert.IsFalse(disable2.Enabled); //} @@ -27,25 +27,25 @@ public Issue2289(TestDevice testDevice) : base(testDevice) //[Ignore("Fails sometimes on XTC")] //public void TestIsEnabledFalseContextActions() //{ - // var disable1 = RunningApp.Query(c => c.Marked("txtCellDisableContextActions1"))[0]; + // var disable1 = App.Query(c => c.Marked("txtCellDisableContextActions1"))[0]; // Assert.IsFalse(disable1.Enabled); - // var screenBounds = RunningApp.RootViewRect(); + // var screenBounds = App.RootViewRect(); - // RunningApp.DragCoordinates(screenBounds.Width - 10, disable1.Rect.CenterY, 10, disable1.Rect.CenterY); + // App.DragCoordinates(screenBounds.Width - 10, disable1.Rect.CenterY, 10, disable1.Rect.CenterY); - // RunningApp.Screenshot("Not showing context menu"); - // RunningApp.WaitForNoElement(c => c.Marked("More")); - // RunningApp.TapCoordinates(screenBounds.CenterX, screenBounds.CenterY); + // App.Screenshot("Not showing context menu"); + // App.WaitForNoElement(c => c.Marked("More")); + // App.TapCoordinates(screenBounds.CenterX, screenBounds.CenterY); //} //[Test] //[Ignore("Fails sometimes on XTC")] //public void TestIsEnabledTrue() //{ - // var disable1 = RunningApp.Query(c => c.Marked("txtCellEnable1"))[0]; + // var disable1 = App.Query(c => c.Marked("txtCellEnable1"))[0]; // Assert.IsTrue(disable1.Enabled); - // var disable2 = RunningApp.Query(c => c.Marked("txtCellEnable2"))[0]; + // var disable2 = App.Query(c => c.Marked("txtCellEnable2"))[0]; // Assert.IsTrue(disable2.Enabled); //} @@ -53,14 +53,14 @@ public Issue2289(TestDevice testDevice) : base(testDevice) //[Ignore("Fails sometimes on XTC")] //public void TestIsEnabledTrueContextActions() //{ - // var disable1 = RunningApp.Query(c => c.Marked("txtCellEnabledContextActions1"))[0]; + // var disable1 = App.Query(c => c.Marked("txtCellEnabledContextActions1"))[0]; // Assert.IsTrue(disable1.Enabled); - // var screenBounds = RunningApp.RootViewRect(); + // var screenBounds = App.RootViewRect(); - // RunningApp.DragCoordinates(screenBounds.Width - 10, disable1.Rect.CenterY, 10, disable1.Rect.CenterY); + // App.DragCoordinates(screenBounds.Width - 10, disable1.Rect.CenterY, 10, disable1.Rect.CenterY); - // RunningApp.Screenshot("Showing context menu"); - // RunningApp.WaitForElement(c => c.Marked("More")); + // App.Screenshot("Showing context menu"); + // App.WaitForElement(c => c.Marked("More")); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2414.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2414.cs index 5bb5d78f0fff..c98a41e419fd 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2414.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2414.cs @@ -17,19 +17,19 @@ public Issue2414(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void TestDoesntCrashShowingContextMenu() // { - // RunningApp.ActivateContextMenu("Swipe ME"); - // RunningApp.WaitForElement(c => c.Marked("Text0")); - // RunningApp.Screenshot("Didn't crash"); - // RunningApp.Tap(c => c.Marked("Text0")); + // App.ActivateContextMenu("Swipe ME"); + // App.WaitForElement(c => c.Marked("Text0")); + // App.Screenshot("Didn't crash"); + // App.Tap(c => c.Marked("Text0")); // } // [Test] // [FailsOnIOS] // public void TestShowContextMenuItemsInTheRightOrder() // { - // RunningApp.ActivateContextMenu("Swipe ME"); - // RunningApp.WaitForElement(c => c.Marked("Text0")); - // RunningApp.Screenshot("Are the menuitems in the right order?"); - // RunningApp.Tap(c => c.Marked("Text0")); + // App.ActivateContextMenu("Swipe ME"); + // App.WaitForElement(c => c.Marked("Text0")); + // App.Screenshot("Are the menuitems in the right order?"); + // App.Tap(c => c.Marked("Text0")); // } } diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2470.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2470.cs index 33df4c52757f..04bc0f13742f 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2470.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2470.cs @@ -17,41 +17,41 @@ public Issue2470(TestDevice testDevice) : base(testDevice) //public void OnservableCollectionChangeListView() //{ // // Tab 1 - // RunningApp.Tap(q => q.Marked("Switch")); - // RunningApp.Screenshot("Switch On"); - // RunningApp.Tap(q => q.Marked("Results")); + // App.Tap(q => q.Marked("Switch")); + // App.Screenshot("Switch On"); + // App.Tap(q => q.Marked("Results")); // // Tab 2 - // RunningApp.WaitForElement(q => q.Marked("Entry 0 of 5")); - // RunningApp.WaitForElement(q => q.Marked("Entry 1 of 5")); - // RunningApp.WaitForElement(q => q.Marked("Entry 2 of 5")); - // RunningApp.WaitForElement(q => q.Marked("Entry 3 of 5")); - // RunningApp.WaitForElement(q => q.Marked("Entry 4 of 5")); - // RunningApp.Screenshot("Should be 5 elements"); - // RunningApp.Tap(q => q.Marked("Generate")); + // App.WaitForElement(q => q.Marked("Entry 0 of 5")); + // App.WaitForElement(q => q.Marked("Entry 1 of 5")); + // App.WaitForElement(q => q.Marked("Entry 2 of 5")); + // App.WaitForElement(q => q.Marked("Entry 3 of 5")); + // App.WaitForElement(q => q.Marked("Entry 4 of 5")); + // App.Screenshot("Should be 5 elements"); + // App.Tap(q => q.Marked("Generate")); // // Tab 1 - // RunningApp.Tap(q => q.Marked("Switch")); - // RunningApp.Screenshot("Switch Off"); - // RunningApp.Tap(q => q.Marked("Results")); + // App.Tap(q => q.Marked("Switch")); + // App.Screenshot("Switch Off"); + // App.Tap(q => q.Marked("Results")); // // Tab 2 - // RunningApp.WaitForElement(q => q.Marked("Entry 0 of 2")); - // RunningApp.WaitForElement(q => q.Marked("Entry 1 of 2")); - // RunningApp.Screenshot("Should be 2 elements"); + // App.WaitForElement(q => q.Marked("Entry 0 of 2")); + // App.WaitForElement(q => q.Marked("Entry 1 of 2")); + // App.Screenshot("Should be 2 elements"); // // Tab 1 - // RunningApp.Tap(q => q.Marked("Generate")); - // RunningApp.Tap(q => q.Marked("Switch")); - // RunningApp.Screenshot("Switch On"); - // RunningApp.Tap(q => q.Marked("Results")); + // App.Tap(q => q.Marked("Generate")); + // App.Tap(q => q.Marked("Switch")); + // App.Screenshot("Switch On"); + // App.Tap(q => q.Marked("Results")); // // Tab 2 - // RunningApp.WaitForElement(q => q.Marked("Entry 0 of 5")); - // RunningApp.WaitForElement(q => q.Marked("Entry 1 of 5")); - // RunningApp.WaitForElement(q => q.Marked("Entry 2 of 5")); - // RunningApp.WaitForElement(q => q.Marked("Entry 3 of 5")); - // RunningApp.WaitForElement(q => q.Marked("Entry 4 of 5")); - // RunningApp.Screenshot("Should be 5 elements"); + // App.WaitForElement(q => q.Marked("Entry 0 of 5")); + // App.WaitForElement(q => q.Marked("Entry 1 of 5")); + // App.WaitForElement(q => q.Marked("Entry 2 of 5")); + // App.WaitForElement(q => q.Marked("Entry 3 of 5")); + // App.WaitForElement(q => q.Marked("Entry 4 of 5")); + // App.Screenshot("Should be 5 elements"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2499.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2499.cs index 790536638a56..b86857556fc7 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2499.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2499.cs @@ -17,22 +17,22 @@ public Issue2499(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void Issue2499Test() // { - // RunningApp.WaitForElement("picker"); - // RunningApp.Tap("picker"); - // RunningApp.WaitForElement("cat"); + // App.WaitForElement("picker"); + // App.Tap("picker"); + // App.WaitForElement("cat"); - // AppResult[] items = RunningApp.Query("cat"); + // AppResult[] items = App.Query("cat"); // Assert.AreNotEqual(items.Length, 0); - // RunningApp.WaitForElement(q => q.Marked("mouse")); - // RunningApp.Tap("mouse"); + // App.WaitForElement(q => q.Marked("mouse")); + // App.Tap("mouse"); // #if __IOS__ // System.Threading.Tasks.Task.Delay(500).Wait(); // var cancelButtonText = "Done"; - // RunningApp.WaitForElement(q => q.Marked(cancelButtonText)); - // RunningApp.Tap(q => q.Marked(cancelButtonText)); + // App.WaitForElement(q => q.Marked(cancelButtonText)); + // App.Tap(q => q.Marked(cancelButtonText)); // System.Threading.Tasks.Task.Delay(1000).Wait(); // #endif - // items = RunningApp.Query("cat"); + // items = App.Query("cat"); // Assert.AreEqual(items.Length, 0); // } } diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2597.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2597.cs index e9210e212f01..09de231de05e 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2597.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2597.cs @@ -18,20 +18,20 @@ public Issue2597(TestDevice testDevice) : base(testDevice) // public void Issue2597Test() // { // #if __IOS__ -// RunningApp.Tap(x => x.Marked("Increment")); +// App.Tap(x => x.Marked("Increment")); // #else -// RunningApp.Tap("+"); +// App.Tap("+"); // #endif -// RunningApp.WaitForElement(q => q.Marked("Stepper value is 0")); +// App.WaitForElement(q => q.Marked("Stepper value is 0")); // #if __IOS__ -// RunningApp.Tap(x => x.Marked("Decrement")); +// App.Tap(x => x.Marked("Decrement")); // #else -// RunningApp.Tap("−"); +// App.Tap("−"); // #endif -// RunningApp.WaitForElement(q => q.Marked("Stepper value is 0")); +// App.WaitForElement(q => q.Marked("Stepper value is 0")); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue264.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue264.cs index a952cb633a1e..3380c9005456 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue264.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue264.cs @@ -17,20 +17,20 @@ public Issue264(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void Issue264TestsPushAndPopModal() // { - // RunningApp.WaitForElement(q => q.Marked("Home")); - // RunningApp.WaitForElement(q => q.Button("About")); - // RunningApp.Screenshot("All elements present"); + // App.WaitForElement(q => q.Marked("Home")); + // App.WaitForElement(q => q.Button("About")); + // App.Screenshot("All elements present"); - // RunningApp.Tap(q => q.Button("About")); - // RunningApp.WaitForElement(q => q.Button("Close")); - // RunningApp.Screenshot("Modal pushed"); + // App.Tap(q => q.Button("About")); + // App.WaitForElement(q => q.Button("Close")); + // App.Screenshot("Modal pushed"); - // RunningApp.Tap(q => q.Button("Close")); - // RunningApp.WaitForElement(q => q.Button("About")); - // RunningApp.Screenshot("Modal popped"); + // App.Tap(q => q.Button("Close")); + // App.WaitForElement(q => q.Button("About")); + // App.Screenshot("Modal popped"); - // RunningApp.Tap(q => q.Button("Pop me")); - // RunningApp.WaitForElement(q => q.Marked("Bug Repro's")); - // RunningApp.Screenshot("No crash"); + // App.Tap(q => q.Button("Pop me")); + // App.WaitForElement(q => q.Marked("Bug Repro's")); + // App.Screenshot("No crash"); // } } diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2681.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2681.cs index f626004dcf6b..d465604b7290 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2681.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2681.cs @@ -16,7 +16,7 @@ public Issue2681(TestDevice testDevice) : base(testDevice) // [Category(UITestCategories.ListView)] // public void ListViewDoesntFreezeApp() // { - // RunningApp.Tap(x => x.Marked(NavigateToPage)); - // RunningApp.WaitForElement("3"); + // App.Tap(x => x.Marked(NavigateToPage)); + // App.WaitForElement("3"); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2740.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2740.cs index 9cf465bc41f9..3b461cb68d92 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2740.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2740.cs @@ -16,10 +16,10 @@ public Issue2740(TestDevice testDevice) : base(testDevice) // [Category(UITestCategories.LifeCycle)] // public void Issue2740Test() // { - // RunningApp.WaitForElement(q => q.Marked("1")); - // RunningApp.Tap(q => q.Marked("1")); - // RunningApp.WaitForElement(q => q.Marked("Switch")); - // RunningApp.Tap(q => q.Marked("Switch")); - // RunningApp.WaitForElement(q => q.Marked("1")); + // App.WaitForElement(q => q.Marked("1")); + // App.Tap(q => q.Marked("1")); + // App.WaitForElement(q => q.Marked("Switch")); + // App.Tap(q => q.Marked("Switch")); + // App.WaitForElement(q => q.Marked("1")); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2767.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2767.cs index 941721c01fa9..0c18a84ce664 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2767.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2767.cs @@ -17,7 +17,7 @@ public Issue2767(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void Issue2767Test() // { - // RunningApp.WaitForElement("Label 1:1"); - // Assert.IsEmpty(RunningApp.Query("Collapsed")); + // App.WaitForElement("Label 1:1"); + // Assert.IsEmpty(App.Query("Collapsed")); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2794.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2794.cs index 046ab4ecbac3..57c5a4b98fc2 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2794.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2794.cs @@ -18,13 +18,13 @@ public Issue2794(TestDevice testDevice) : base(testDevice) // [FailsOnAndroid] // public void Issue2794Test() // { - // RunningApp.TouchAndHold(x => x.Marked("Cell2")); - // RunningApp.Tap(x => x.Text("Delete me first")); - // RunningApp.WaitForNoElement(q => q.Marked("Cell2")); + // App.TouchAndHold(x => x.Marked("Cell2")); + // App.Tap(x => x.Text("Delete me first")); + // App.WaitForNoElement(q => q.Marked("Cell2")); - // RunningApp.TouchAndHold(x => x.Marked("Cell1")); - // RunningApp.Tap(x => x.Text("Delete me after")); - // RunningApp.WaitForNoElement(q => q.Marked("Cell1")); + // App.TouchAndHold(x => x.Marked("Cell1")); + // App.Tap(x => x.Text("Delete me after")); + // App.WaitForNoElement(q => q.Marked("Cell1")); // } } #endif \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2809.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2809.cs index c43091257800..bab004b53201 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2809.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2809.cs @@ -18,17 +18,17 @@ public Issue2809(TestDevice testDevice) : base(testDevice) // public void TestPageDoesntCrash() // { // ShouldShowMenu(); - // RunningApp.Tap(c => c.Marked("Item 1")); - // RunningApp.Screenshot("Didn't crash"); + // App.Tap(c => c.Marked("Item 1")); + // App.Screenshot("Didn't crash"); // } // void ShouldShowMenu() // { // #if ANDROID // //show secondary menu - // RunningApp.TapOverflowMenuButton(); + // App.TapOverflowMenuButton(); // #elif WINDOWS - // RunningApp.Tap ("MoreButton"); + // App.Tap ("MoreButton"); // #endif // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2818.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2818.cs index 606524793b77..f9f1e624c870 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2818.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2818.cs @@ -16,22 +16,22 @@ public Issue2818(TestDevice testDevice) : base(testDevice) // [Test] // public void RootViewMovesAndContentIsVisible() // { -// var idiom = RunningApp.WaitForElement("Idiom"); +// var idiom = App.WaitForElement("Idiom"); // // This behavior is currently broken on a phone device Issue 7270 // if (idiom[0].ReadText() != "Tablet") // return; -// RunningApp.Tap("OpenRootView"); -// RunningApp.Tap("CloseRootView"); -// RunningApp.SetOrientationLandscape(); -// RunningApp.Tap("OpenRootView"); -// var positionStart = RunningApp.WaitForElement("CloseRootView"); -// RunningApp.Tap("ShowLeftToRight"); +// App.Tap("OpenRootView"); +// App.Tap("CloseRootView"); +// App.SetOrientationLandscape(); +// App.Tap("OpenRootView"); +// var positionStart = App.WaitForElement("CloseRootView"); +// App.Tap("ShowLeftToRight"); -// var results = RunningApp.QueryUntilPresent(() => +// var results = App.QueryUntilPresent(() => // { -// var secondPosition = RunningApp.Query("CloseRootView"); +// var secondPosition = App.Query("CloseRootView"); // if (secondPosition.Length == 0) // return null; @@ -51,17 +51,17 @@ public Issue2818(TestDevice testDevice) : base(testDevice) // [Test] // public void RootViewSizeDoesntChangeAfterBackground() // { -// var idiom = RunningApp.WaitForElement("Idiom"); +// var idiom = App.WaitForElement("Idiom"); // // This behavior is currently broken on a phone device Issue 7270 // if (idiom[0].ReadText() != "Tablet") // return; -// RunningApp.SetOrientationLandscape(); -// RunningApp.Tap("CloseRootView"); -// RunningApp.Tap("ShowLeftToRight"); -// var windowSize = RunningApp.WaitForElement("RootLayout")[0]; -// RunningApp.SendAppToBackground(TimeSpan.FromSeconds(5)); -// var newWindowSize = RunningApp.WaitForElement("RootLayout")[0]; +// App.SetOrientationLandscape(); +// App.Tap("CloseRootView"); +// App.Tap("ShowLeftToRight"); +// var windowSize = App.WaitForElement("RootLayout")[0]; +// App.SendAppToBackground(TimeSpan.FromSeconds(5)); +// var newWindowSize = App.WaitForElement("RootLayout")[0]; // Assert.AreEqual(newWindowSize.Rect.Width, windowSize.Rect.Width); // Assert.AreEqual(newWindowSize.Rect.Height, windowSize.Rect.Height); diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2883.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2883.cs index 053980a9ea59..7eb979f84e83 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2883.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2883.cs @@ -17,13 +17,13 @@ public Issue2883(TestDevice testDevice) : base(testDevice) // [Test] // public void Issue2883TestDisabled () // { - // RunningApp.Screenshot ("I am at Issue 2883"); - // RunningApp.Tap( c=> c.Marked("btnCustomCellTable")); - // RunningApp.WaitForNoElement( c=> c.Marked("Clicked")); - // RunningApp.Screenshot ("I dont see the disable cell"); - // RunningApp.Tap( c=> c.Marked("btnCustomCellListView")); - // RunningApp.WaitForNoElement( c=> c.Marked("Clicked")); - // RunningApp.Screenshot ("I dont see the disable cell"); + // App.Screenshot ("I am at Issue 2883"); + // App.Tap( c=> c.Marked("btnCustomCellTable")); + // App.WaitForNoElement( c=> c.Marked("Clicked")); + // App.Screenshot ("I dont see the disable cell"); + // App.Tap( c=> c.Marked("btnCustomCellListView")); + // App.WaitForNoElement( c=> c.Marked("Clicked")); + // App.Screenshot ("I dont see the disable cell"); // } // [UITests.FailsOnIOS] @@ -31,12 +31,12 @@ public Issue2883(TestDevice testDevice) : base(testDevice) // public void Issue2883TestEnabled () // { - // RunningApp.Tap( c=> c.Marked("btnCustomCellTableEnabled")); - // RunningApp.Screenshot ("I see the cell that is enabled"); - // RunningApp.WaitForElement( c=> c.Marked("Clicked")); - // RunningApp.Tap (c => c.Marked ("ok")); - // RunningApp.Tap( c=> c.Marked("btnCustomCellListViewEnabled")); - // RunningApp.WaitForElement( c=> c.Marked("Clicked")); - // RunningApp.Tap (c => c.Marked ("ok")); + // App.Tap( c=> c.Marked("btnCustomCellTableEnabled")); + // App.Screenshot ("I see the cell that is enabled"); + // App.WaitForElement( c=> c.Marked("Clicked")); + // App.Tap (c => c.Marked ("ok")); + // App.Tap( c=> c.Marked("btnCustomCellListViewEnabled")); + // App.WaitForElement( c=> c.Marked("Clicked")); + // App.Tap (c => c.Marked ("ok")); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2894.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2894.cs index 49acfe1be3ae..468539f825af 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2894.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2894.cs @@ -18,56 +18,56 @@ public Issue2894(TestDevice testDevice) : base(testDevice) // [Category(UITestCategories.Gestures)] // public void VariousSpanGesturePermutation() // { -// RunningApp.WaitForElement($"{kGesture1}0"); -// RunningApp.WaitForElement($"{kGesture2}0"); -// var labelId = RunningApp.WaitForElement(kLabelAutomationId); +// App.WaitForElement($"{kGesture1}0"); +// App.WaitForElement($"{kGesture2}0"); +// var labelId = App.WaitForElement(kLabelAutomationId); // var target = labelId.First().Rect; // for (int i = 1; i < 5; i++) // { -// RunningApp.Tap($"TestSpan{i}"); +// App.Tap($"TestSpan{i}"); // // These tap retries work around a Tap Coordinate bug // // with Xamarin.UITest >= 3.0.7 // int tapAttempts = 0; // do // { -// RunningApp.TapCoordinates(target.X + 5, target.Y + 5); +// App.TapCoordinates(target.X + 5, target.Y + 5); // if (tapAttempts == 4) -// RunningApp.WaitForElement($"{kGesture1}{i}"); +// App.WaitForElement($"{kGesture1}{i}"); // tapAttempts++; -// } while (RunningApp.Query($"{kGesture1}{i}").Length == 0); +// } while (App.Query($"{kGesture1}{i}").Length == 0); // tapAttempts = 0; // do // { // #if WINDOWS -// RunningApp.TapCoordinates(target.X + target.Width - 10, target.Y + 2); +// App.TapCoordinates(target.X + target.Width - 10, target.Y + 2); // #else -// RunningApp.TapCoordinates(target.X + target.CenterX, target.Y + 2); +// App.TapCoordinates(target.X + target.CenterX, target.Y + 2); // #endif // if (tapAttempts == 4) -// RunningApp.WaitForElement($"{kGesture1}{i}"); +// App.WaitForElement($"{kGesture1}{i}"); // tapAttempts++; -// } while (RunningApp.Query($"{kGesture2}{i}").Length == 0); +// } while (App.Query($"{kGesture2}{i}").Length == 0); // } -// RunningApp.Tap($"TestSpan5"); -// RunningApp.TapCoordinates(target.X + 5, target.Y + 5); +// App.Tap($"TestSpan5"); +// App.TapCoordinates(target.X + 5, target.Y + 5); // #if WINDOWS -// RunningApp.TapCoordinates(target.X + target.Width - 10, target.Y + 2); +// App.TapCoordinates(target.X + target.Width - 10, target.Y + 2); // #else -// RunningApp.TapCoordinates(target.X + target.CenterX, target.Y + 2); +// App.TapCoordinates(target.X + target.CenterX, target.Y + 2); // #endif -// RunningApp.WaitForElement($"{kGesture1}4"); -// RunningApp.WaitForElement($"{kGesture2}4"); +// App.WaitForElement($"{kGesture1}4"); +// App.WaitForElement($"{kGesture2}4"); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2923.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2923.cs index c24ea142715d..b6cfe1a76d9c 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2923.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2923.cs @@ -16,15 +16,15 @@ public Issue2923(TestDevice testDevice) : base(testDevice) // [Test] // public void Issue2923TestOne() // { - // RunningApp.WaitForElement(q => q.Marked("FirstPageLabel")); - // RunningApp.Screenshot("First Tab is showing"); + // App.WaitForElement(q => q.Marked("FirstPageLabel")); + // App.Screenshot("First Tab is showing"); // } // [Test] // public void Issue2923TestTwo() // { - // RunningApp.Tap(q => q.Marked("ResetButton")); - // RunningApp.Screenshot("Tabs Reset"); - // RunningApp.WaitForElement(q => q.Marked("ResetPageLabel")); + // App.Tap(q => q.Marked("ResetButton")); + // App.Screenshot("Tabs Reset"); + // App.WaitForElement(q => q.Marked("ResetPageLabel")); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2927.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2927.cs index 1eaff7f76ba4..6a5d22fbf519 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2927.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2927.cs @@ -17,19 +17,19 @@ public Issue2927(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void Issue2927Test() // { - // RunningApp.Screenshot("I am at Issue 2927"); - // RunningApp.WaitForElement(q => q.Marked("Cell1 0")); - // RunningApp.Tap(q => q.Marked("Cell1 0")); - // RunningApp.WaitForElement(q => q.Marked("Cell1 1")); - // RunningApp.Screenshot("Tapped Once"); - // RunningApp.Tap(q => q.Marked("Cell1 1")); - // RunningApp.WaitForElement(q => q.Marked("Cell1 2")); - // RunningApp.Screenshot("Tapped Twice"); - // RunningApp.Tap(q => q.Marked("Cell3 0")); - // RunningApp.WaitForElement(q => q.Marked("Cell3 1")); - // RunningApp.Screenshot("Click other cell"); - // RunningApp.Tap(q => q.Marked("Cell1 2")); - // RunningApp.WaitForElement(q => q.Marked("Cell1 3")); - // RunningApp.Screenshot("Click first cell again"); + // App.Screenshot("I am at Issue 2927"); + // App.WaitForElement(q => q.Marked("Cell1 0")); + // App.Tap(q => q.Marked("Cell1 0")); + // App.WaitForElement(q => q.Marked("Cell1 1")); + // App.Screenshot("Tapped Once"); + // App.Tap(q => q.Marked("Cell1 1")); + // App.WaitForElement(q => q.Marked("Cell1 2")); + // App.Screenshot("Tapped Twice"); + // App.Tap(q => q.Marked("Cell3 0")); + // App.WaitForElement(q => q.Marked("Cell3 1")); + // App.Screenshot("Click other cell"); + // App.Tap(q => q.Marked("Cell1 2")); + // App.WaitForElement(q => q.Marked("Cell1 3")); + // App.Screenshot("Click first cell again"); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2948.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2948.cs index 89713c73c098..eb81cfd10a45 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2948.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2948.cs @@ -16,40 +16,40 @@ public Issue2948(TestDevice testDevice) : base(testDevice) // [Category(UITestCategories.FlyoutPage)] // public void Issue2948Test() // { - // RunningApp.Screenshot("I am at Issue 2948"); - // RunningApp.SetOrientationLandscape(); + // App.Screenshot("I am at Issue 2948"); + // App.SetOrientationLandscape(); // Thread.Sleep(5000); // if (ShouldRunTest()) // { // OpenMDP(); - // var btns = RunningApp.Query(c => c.Marked("btnOnDetail")); + // var btns = App.Query(c => c.Marked("btnOnDetail")); // if (btns.Length > 0) // { // // on iOS the button could be out of screen - // RunningApp.Tap(c => c.Marked("btnOnDetail")); - // RunningApp.Screenshot("I in landscape and flyout is open"); + // App.Tap(c => c.Marked("btnOnDetail")); + // App.Screenshot("I in landscape and flyout is open"); // } - // RunningApp.WaitForNoElement(c => c.Marked("Clicked"), "Time out", new TimeSpan(0, 0, 1)); + // App.WaitForNoElement(c => c.Marked("Clicked"), "Time out", new TimeSpan(0, 0, 1)); // } // } // public bool ShouldRunTest() // { - // var isMasterVisible = RunningApp.Query(q => q.Marked("Leads")).Length > 0; + // var isMasterVisible = App.Query(q => q.Marked("Leads")).Length > 0; // return !isMasterVisible; // } // public void OpenMDP() // { // #if __IOS__ - // RunningApp.Tap(q => q.Marked("Menu")); + // App.Tap(q => q.Marked("Menu")); // #else - // RunningApp.Tap ("ShowFlyoutBtn"); + // App.Tap ("ShowFlyoutBtn"); // #endif // } // [TearDown] // public void TestTearDown() // { - // RunningApp.SetOrientationPortrait(); + // App.SetOrientationPortrait(); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2951.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2951.cs index d8d05132b85b..35825e35a42f 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2951.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2951.cs @@ -17,12 +17,12 @@ public Issue2951(TestDevice testDevice) : base(testDevice) //[FailsOnMauiIOS] //public void Issue2951Test() //{ - // RunningApp.WaitForElement("Ready"); - // var bt = RunningApp.WaitForElement(c => c.Marked("btnChangeStatus")); + // App.WaitForElement("Ready"); + // var bt = App.WaitForElement(c => c.Marked("btnChangeStatus")); - // var buttons = RunningApp.QueryUntilPresent(() => + // var buttons = App.QueryUntilPresent(() => // { - // var results = RunningApp.Query("btnChangeStatus"); + // var results = App.Query("btnChangeStatus"); // if (results.Length == 3) // return results; @@ -30,11 +30,11 @@ public Issue2951(TestDevice testDevice) : base(testDevice) // }); // Assert.That(buttons.Length, Is.EqualTo(3)); - // RunningApp.Tap(c => c.Marked("btnChangeStatus").Index(1)); + // App.Tap(c => c.Marked("btnChangeStatus").Index(1)); - // buttons = RunningApp.QueryUntilPresent(() => + // buttons = App.QueryUntilPresent(() => // { - // var results = RunningApp.Query("btnChangeStatus"); + // var results = App.Query("btnChangeStatus"); // if ((results[1].Text ?? results[1].Label) == "B") // return results; @@ -43,11 +43,11 @@ public Issue2951(TestDevice testDevice) : base(testDevice) // var text = buttons[1].Text ?? buttons[1].Label; // Assert.That(text, Is.EqualTo("B")); - // RunningApp.Tap(c => c.Marked("btnChangeStatus").Index(1)); + // App.Tap(c => c.Marked("btnChangeStatus").Index(1)); - // buttons = RunningApp.QueryUntilPresent(() => + // buttons = App.QueryUntilPresent(() => // { - // var results = RunningApp.Query("btnChangeStatus"); + // var results = App.Query("btnChangeStatus"); // if (results.Length == 2) // return results; diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2953.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2953.cs index 5276c12b8a5d..d58aed568090 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2953.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2953.cs @@ -17,11 +17,11 @@ public Issue2953(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void Issue2953Test() // { - // RunningApp.Screenshot("I am at Issue 2953"); - // RunningApp.WaitForElement(q => q.Marked("Header 3")); - // RunningApp.Screenshot("I see the Header 3"); - // RunningApp.Tap(q => q.Marked("btnRemove")); - // RunningApp.WaitForElement(q => q.Marked("Header 3")); - // RunningApp.Screenshot("I still see the Header 3"); + // App.Screenshot("I am at Issue 2953"); + // App.WaitForElement(q => q.Marked("Header 3")); + // App.Screenshot("I see the Header 3"); + // App.Tap(q => q.Marked("btnRemove")); + // App.WaitForElement(q => q.Marked("Header 3")); + // App.Screenshot("I still see the Header 3"); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2954.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2954.cs index 762ae9cb82fe..b00b4a692bc1 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2954.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2954.cs @@ -17,11 +17,11 @@ public Issue2954(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void Issue2954Test() // { - // RunningApp.Screenshot("I am at Issue 2954"); - // RunningApp.WaitForElement(q => q.Marked("Cell2")); - // RunningApp.Screenshot("I see the Cell2"); - // RunningApp.Tap(c => c.Marked("Add new")); - // RunningApp.WaitForElement(q => q.Marked("Cell2")); - // RunningApp.Screenshot("I still see the Cell2"); + // App.Screenshot("I am at Issue 2954"); + // App.WaitForElement(q => q.Marked("Cell2")); + // App.Screenshot("I see the Cell2"); + // App.Tap(c => c.Marked("Add new")); + // App.WaitForElement(q => q.Marked("Cell2")); + // App.Screenshot("I still see the Cell2"); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2964.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2964.cs index 5b280ab81450..0da726bb20f7 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2964.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2964.cs @@ -16,18 +16,18 @@ public Issue2964(TestDevice testDevice) : base(testDevice) // [Category(UITestCategories.ToolbarItem)] // public void Issue2964Test() // { - // RunningApp.Screenshot("I am at Issue 2964"); + // App.Screenshot("I am at Issue 2964"); - // RunningApp.Tap(q => q.Marked("FlyoutButton")); - // RunningApp.Screenshot("Create new Detail instance"); + // App.Tap(q => q.Marked("FlyoutButton")); + // App.Screenshot("Create new Detail instance"); - // RunningApp.Tap(q => q.Marked("Page1PushModalButton")); - // RunningApp.Screenshot("Modal is pushed"); + // App.Tap(q => q.Marked("Page1PushModalButton")); + // App.Screenshot("Modal is pushed"); - // RunningApp.Tap(q => q.Marked("ModalPagePopButton")); - // RunningApp.Screenshot("Modal is popped"); + // App.Tap(q => q.Marked("ModalPagePopButton")); + // App.Screenshot("Modal is popped"); - // RunningApp.WaitForElement(q => q.Marked("Page1Label")); - // RunningApp.Screenshot("Didn't blow up! :)"); + // App.WaitForElement(q => q.Marked("Page1Label")); + // App.Screenshot("Didn't blow up! :)"); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2976.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2976.cs index f2ccf8236696..54725d65b42a 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2976.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2976.cs @@ -18,10 +18,10 @@ public Issue2976(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void Issue1Test() // { - // RunningApp.Screenshot("I am at Issue 2976"); - // RunningApp.Tap(q => q.Marked("DEMOA")); - // RunningApp.Tap(q => q.Marked("DEMOB")); - // RunningApp.Tap(q => q.Marked("DEMOC")); - // RunningApp.Tap(q => q.Marked("DEMOD")); + // App.Screenshot("I am at Issue 2976"); + // App.Tap(q => q.Marked("DEMOA")); + // App.Tap(q => q.Marked("DEMOB")); + // App.Tap(q => q.Marked("DEMOC")); + // App.Tap(q => q.Marked("DEMOD")); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2981.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2981.cs index 3451d560564d..b9215b079ec1 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2981.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2981.cs @@ -20,11 +20,11 @@ public Issue2981(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void Issue2981Test() // { - // RunningApp.Screenshot("I am at Issue 1"); - // RunningApp.TouchAndHold(q => q.Marked("Cell1")); - // RunningApp.Screenshot("Long Press first cell"); - // RunningApp.TouchAndHold(q => q.Marked("Cell2")); - // RunningApp.Screenshot("Long Press second cell"); + // App.Screenshot("I am at Issue 1"); + // App.TouchAndHold(q => q.Marked("Cell1")); + // App.Screenshot("Long Press first cell"); + // App.TouchAndHold(q => q.Marked("Cell2")); + // App.Screenshot("Long Press second cell"); // } } #endif \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2993.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2993.cs index 8dfbe01c66e8..9d393fd092b7 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2993.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue2993.cs @@ -17,7 +17,7 @@ public Issue2993(TestDevice testDevice) : base(testDevice) // [Category(UITestCategories.Layout)] // public void BottomContentVisibleWithBottomBarAndNavigationPage() // { - // RunningApp.WaitForElement("Bottom Text"); + // App.WaitForElement("Bottom Text"); // } } #endif \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3008.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3008.cs index c1f2e4055817..6ca464fce115 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3008.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3008.cs @@ -19,33 +19,33 @@ public Issue3008(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void EnsureListViewEmptiesOut() // { - // RunningApp.Tap("Click Until Success"); - // RunningApp.WaitForElement("Not Grouped Item"); - // RunningApp.WaitForElement("Grouped Item"); + // App.Tap("Click Until Success"); + // App.WaitForElement("Not Grouped Item"); + // App.WaitForElement("Grouped Item"); - // RunningApp.Tap("Click Until Success"); - // RunningApp.WaitForElement("Not Grouped Item"); - // RunningApp.WaitForElement("Grouped Item"); + // App.Tap("Click Until Success"); + // App.WaitForElement("Not Grouped Item"); + // App.WaitForElement("Grouped Item"); - // RunningApp.Tap("Click Until Success"); - // RunningApp.WaitForNoElement("Not Grouped Item"); - // RunningApp.WaitForNoElement("Grouped Item"); + // App.Tap("Click Until Success"); + // App.WaitForNoElement("Not Grouped Item"); + // App.WaitForNoElement("Grouped Item"); - // RunningApp.Tap("Click Until Success"); - // RunningApp.WaitForElement("Not Grouped Item"); - // RunningApp.WaitForElement("Grouped Item"); + // App.Tap("Click Until Success"); + // App.WaitForElement("Not Grouped Item"); + // App.WaitForElement("Grouped Item"); - // RunningApp.Tap("Click Until Success"); - // RunningApp.WaitForNoElement("Not Grouped Item"); - // RunningApp.WaitForNoElement("Grouped Item"); + // App.Tap("Click Until Success"); + // App.WaitForNoElement("Not Grouped Item"); + // App.WaitForNoElement("Grouped Item"); - // RunningApp.Tap("Click Until Success"); - // RunningApp.WaitForElement("Not Grouped Item"); - // RunningApp.WaitForElement("Grouped Item"); + // App.Tap("Click Until Success"); + // App.WaitForElement("Not Grouped Item"); + // App.WaitForElement("Grouped Item"); - // RunningApp.Tap("Click Until Success"); - // RunningApp.WaitForNoElement("Not Grouped Item"); - // RunningApp.WaitForNoElement("Grouped Item"); + // App.Tap("Click Until Success"); + // App.WaitForNoElement("Not Grouped Item"); + // App.WaitForNoElement("Grouped Item"); // } } #endif \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3012.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3012.cs index 935e610bfa65..03a26e91f97b 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3012.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3012.cs @@ -17,14 +17,14 @@ public Issue3012(TestDevice testDevice) : base(testDevice) // [Category(UITestCategories.Entry)] // public void Issue3012Test() // { - // RunningApp.WaitForElement(q => q.Marked("DumbyEntry")); - // RunningApp.Tap(q => q.Marked("DumbyEntry")); + // App.WaitForElement(q => q.Marked("DumbyEntry")); + // App.Tap(q => q.Marked("DumbyEntry")); - // RunningApp.WaitForElement(q => q.Marked("FocusTargetEntry")); - // RunningApp.Tap(q => q.Marked("FocusTargetEntry")); + // App.WaitForElement(q => q.Marked("FocusTargetEntry")); + // App.Tap(q => q.Marked("FocusTargetEntry")); // Assert.AreEqual(0, _unfocusedCount, "Unfocused should not have fired"); - // RunningApp.Tap(q => q.Marked("DumbyEntry")); + // App.Tap(q => q.Marked("DumbyEntry")); // Assert.AreEqual(1, _unfocusedCount, "Unfocused should have been fired once"); // } } diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3019.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3019.cs index 0eac83eb95e3..9866c948ae14 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3019.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3019.cs @@ -17,11 +17,11 @@ public Issue3019(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void MakeSureListGroupShowsUpAndItemsAreClickable() // { - // RunningApp.WaitForElement("Group 1"); + // App.WaitForElement("Group 1"); - // RunningApp.Tap(x => x.Marked("Grouped Item: 0")); - // RunningApp.Tap(x => x.Marked("Grouped Item: 1")); - // RunningApp.Tap(x => x.Marked("Grouped Item: 1 Clicked")); + // App.Tap(x => x.Marked("Grouped Item: 0")); + // App.Tap(x => x.Marked("Grouped Item: 1")); + // App.Tap(x => x.Marked("Grouped Item: 1 Clicked")); // } } diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3053.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3053.cs index 84dd0c97b100..9f4b2dc78497 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3053.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3053.cs @@ -18,8 +18,8 @@ public Issue3053(TestDevice testDevice) : base(testDevice) // [FailsOnAndroid] // public void MovingItemInObservableCollectionBreaksListView() // { - // RunningApp.WaitForElement(_instructions); - // RunningApp.Tap(_instructions); - // RunningApp.WaitForElement("Item 2"); + // App.WaitForElement(_instructions); + // App.Tap(_instructions); + // App.WaitForElement("Item 2"); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3139.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3139.cs index 1c1202187b37..4b15dbd59793 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3139.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3139.cs @@ -17,11 +17,11 @@ public Issue3139(TestDevice testDevice) : base(testDevice) // [Category(UITestCategories.ActionSheet)] // public void Issue3139Test () // { - // RunningApp.WaitForElement (q => q.Marked ("Click Yes")); - // RunningApp.Tap (c => c.Marked ("Yes")); - // RunningApp.WaitForElement (q => q.Marked ("Again Yes")); - // RunningApp.Tap (c => c.Marked ("Yes")); - // RunningApp.WaitForElement(q => q.Marked("Test passed")); + // App.WaitForElement (q => q.Marked ("Click Yes")); + // App.Tap (c => c.Marked ("Yes")); + // App.WaitForElement (q => q.Marked ("Again Yes")); + // App.Tap (c => c.Marked ("Yes")); + // App.WaitForElement(q => q.Marked("Test passed")); // } } #endif \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3276.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3276.cs index 57aa8a6e4562..31c920e1d1e1 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3276.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3276.cs @@ -16,8 +16,8 @@ public Issue3276(TestDevice testDevice) : base(testDevice) // [Category(UITestCategories.ContextActions)] // public void Issue3276Test() // { - // RunningApp.Tap(q => q.Marked("Second")); - // RunningApp.Tap(q => q.Marked("First")); - // RunningApp.WaitForElement(q => q.Marked("second 1")); + // App.Tap(q => q.Marked("Second")); + // App.Tap(q => q.Marked("First")); + // App.WaitForElement(q => q.Marked("second 1")); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3292.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3292.cs index df5b7a2fe319..877e8bbe7e89 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3292.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3292.cs @@ -17,6 +17,6 @@ public Issue3292(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void Issue3292Test() // { - // RunningApp.WaitForElement(q => q.Marked("Hello World Changed")); + // App.WaitForElement(q => q.Marked("Hello World Changed")); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3318.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3318.cs index 055afb17fcd3..fee1f5f78ba7 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3318.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3318.cs @@ -17,9 +17,9 @@ public Issue3318(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void Issue3318Test() // { - // RunningApp.WaitForElement(q => q.Marked("End")); - // RunningApp.Tap(q => q.Marked("End")); - // RunningApp.WaitForElement(q => q.Marked("Item 19")); - // RunningApp.Back(); + // App.WaitForElement(q => q.Marked("End")); + // App.Tap(q => q.Marked("End")); + // App.WaitForElement(q => q.Marked("Item 19")); + // App.Back(); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3319.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3319.cs index d8412c8a5409..f4f67d4fe0c4 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3319.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3319.cs @@ -17,7 +17,7 @@ public Issue3319(TestDevice testDevice) : base(testDevice) //[FailsOnMauiIOS] //public void Issue3319Test() //{ - // RunningApp.WaitForElement(q => q.Marked("Will this repo work?")); + // App.WaitForElement(q => q.Marked("Will this repo work?")); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3475.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3475.cs index 895969ab33c3..8a3e072d093d 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3475.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3475.cs @@ -18,24 +18,24 @@ public Issue3475(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void Issue3475TestsLayoutCompressionPerformance() // { - // RunningApp.WaitForElement(_titleLabelId); - // RunningApp.WaitForElement(_withoutCompressionBtnId); - // RunningApp.WaitForElement(_withCompressionBtnId); + // App.WaitForElement(_titleLabelId); + // App.WaitForElement(_withoutCompressionBtnId); + // App.WaitForElement(_withCompressionBtnId); - // RunningApp.Tap(_withoutCompressionBtnId); - // RunningApp.WaitForElement(DoneLabelId); - // RunningApp.Screenshot("Without Layout Compression"); + // App.Tap(_withoutCompressionBtnId); + // App.WaitForElement(DoneLabelId); + // App.Screenshot("Without Layout Compression"); - // int elapsedWithoutCompression = GetMs(RunningApp.Query(ElapsedLabelId).First().Text); + // int elapsedWithoutCompression = GetMs(App.Query(ElapsedLabelId).First().Text); - // RunningApp.Tap(BackButtonId); - // RunningApp.WaitForElement(_withCompressionBtnId); + // App.Tap(BackButtonId); + // App.WaitForElement(_withCompressionBtnId); - // RunningApp.Tap(_withCompressionBtnId); - // RunningApp.WaitForElement(DoneLabelId); - // RunningApp.Screenshot("With Layout Compression"); + // App.Tap(_withCompressionBtnId); + // App.WaitForElement(DoneLabelId); + // App.Screenshot("With Layout Compression"); - // int elapsedWithCompression = GetMs(RunningApp.Query(ElapsedLabelId).First().Text); + // int elapsedWithCompression = GetMs(App.Query(ElapsedLabelId).First().Text); // var delta = elapsedWithCompression - elapsedWithoutCompression; // //if layoutcompressions is slower than 100 then there is a problem. diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3509.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3509.cs index 963e9d432138..8251a2ced0a3 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3509.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3509.cs @@ -16,8 +16,8 @@ public Issue3509(TestDevice testDevice) : base(testDevice) // [Category(UITestCategories.Navigation)] // public void PoppedOnlyFiresOnce() // { - // RunningApp.WaitForElement(_popPage); - // RunningApp.Tap(_popPage); - // RunningApp.WaitForElement("1"); + // App.WaitForElement(_popPage); + // App.Tap(_popPage); + // App.WaitForElement("1"); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3524.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3524.cs index 7cef062305bb..843434983b08 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3524.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3524.cs @@ -17,8 +17,8 @@ public Issue3524(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void SpanGestureCommand() // { - // RunningApp.WaitForElement(kText); - // RunningApp.Tap(kText); - // RunningApp.WaitForElement($"{kText}: 1"); + // App.WaitForElement(kText); + // App.Tap(kText); + // App.WaitForElement($"{kText}: 1"); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3667.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3667.cs index 94270ac207dd..4facbf3b9847 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3667.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3667.cs @@ -17,14 +17,14 @@ public Issue3667(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void Issue3667Tests () // { - // RunningApp.WaitForElement(query => query.Text(text)); - // RunningApp.Tap("Change TextTransform"); - // RunningApp.WaitForElement(query => query.Text(text)); - // RunningApp.Tap("Change TextTransform"); - // RunningApp.WaitForElement(query => query.Text(text.ToLowerInvariant())); - // RunningApp.Tap("Change TextTransform"); - // RunningApp.WaitForElement(query => query.Text(text.ToUpperInvariant())); - // RunningApp.Tap("Change TextTransform"); - // RunningApp.WaitForElement(query => query.Text(text)); + // App.WaitForElement(query => query.Text(text)); + // App.Tap("Change TextTransform"); + // App.WaitForElement(query => query.Text(text)); + // App.Tap("Change TextTransform"); + // App.WaitForElement(query => query.Text(text.ToLowerInvariant())); + // App.Tap("Change TextTransform"); + // App.WaitForElement(query => query.Text(text.ToUpperInvariant())); + // App.Tap("Change TextTransform"); + // App.WaitForElement(query => query.Text(text)); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3798.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3798.cs index 16c7a2103904..4eb6b2c66598 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3798.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3798.cs @@ -16,9 +16,9 @@ public Issue3798(TestDevice testDevice) : base(testDevice) //[FailsOnMauiIOS] //public void Issue3798Test() //{ - // RunningApp.WaitForElement("listViewSeparatorColor"); - // RunningApp.Screenshot("Green ListView Separator"); - // RunningApp.Tap(q => q.Marked("item1")); - // RunningApp.Screenshot("Red ListView Separator"); + // App.WaitForElement("listViewSeparatorColor"); + // App.Screenshot("Green ListView Separator"); + // App.Tap(q => q.Marked("item1")); + // App.Screenshot("Red ListView Separator"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3809.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3809.cs index c2716676b073..a56c928752e5 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3809.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3809.cs @@ -28,7 +28,7 @@ public Issue3809(TestDevice testDevice) : base(testDevice) //{ // // ensure initial paddings are honored // AssertSafeAreaText($"{_safeAreaText}{true}"); - // var element = RunningApp.WaitForFirstElement(_paddingLabel); + // var element = App.WaitForFirstElement(_paddingLabel); // bool usesSafeAreaInsets = false; // if (element.ReadText() != "25, 25, 25, 25") @@ -39,16 +39,16 @@ public Issue3809(TestDevice testDevice) : base(testDevice) // Assert.AreEqual(element.ReadText(), "25, 25, 25, 25"); // // disable Safe Area Insets - // RunningApp.Tap(_safeAreaAutomationId); + // App.Tap(_safeAreaAutomationId); // AssertSafeAreaText($"{_safeAreaText}{false}"); - // element = RunningApp.WaitForFirstElement(_paddingLabel); + // element = App.WaitForFirstElement(_paddingLabel); // Assert.AreEqual(element.ReadText(), "25, 25, 25, 25"); // // enable Safe Area insets - // RunningApp.Tap(_safeAreaAutomationId); + // App.Tap(_safeAreaAutomationId); // AssertSafeAreaText($"{_safeAreaText}{true}"); - // element = RunningApp.WaitForFirstElement(_paddingLabel); + // element = App.WaitForFirstElement(_paddingLabel); // Assert.AreNotEqual(element.ReadText(), "0, 0, 0, 0"); // if (!usesSafeAreaInsets) @@ -56,10 +56,10 @@ public Issue3809(TestDevice testDevice) : base(testDevice) // // Set Padding and then disable safe area insets - // RunningApp.Tap(_setPagePadding); - // RunningApp.Tap(_safeAreaAutomationId); + // App.Tap(_setPagePadding); + // App.Tap(_safeAreaAutomationId); // AssertSafeAreaText($"{_safeAreaText}{false}"); - // element = RunningApp.WaitForFirstElement(_paddingLabel); + // element = App.WaitForFirstElement(_paddingLabel); // Assert.AreEqual(element.ReadText(), "25, 25, 25, 25"); //} diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3840.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3840.cs index 521395594e70..6c038ab754a7 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3840.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3840.cs @@ -18,15 +18,15 @@ public Issue3840(TestDevice testDevice) : base(testDevice) // [Category(UITestCategories.ScrollView)] // public void TranslatingViewKeepsScrollViewPosition() // { -// RunningApp.WaitForElement(_failedText); -// RunningApp.Tap(_button1); -// RunningApp.Tap(_button2); +// App.WaitForElement(_failedText); +// App.Tap(_button1); +// App.Tap(_button2); //#if WINDOWS -// var label = RunningApp.WaitForElement(_failedText); +// var label = App.WaitForElement(_failedText); // Assert.AreEqual(0, label[0].Rect.Height); // Assert.AreEqual(0, label[0].Rect.Width); //#else -// var result = RunningApp.QueryUntilNotPresent(() => RunningApp.Query(_failedText)); +// var result = App.QueryUntilNotPresent(() => App.Query(_failedText)); //#endif // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4138.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4138.cs index dda82b3e6cbf..d8c2d8a67c73 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4138.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4138.cs @@ -17,8 +17,8 @@ public Issue4138(TestDevice testDevice) : base(testDevice) //[FailsOnIOS] //public void TitleIconIsCentered() //{ - // var element = RunningApp.WaitForElement("coffee.png")[0]; - // var rect = RunningApp.RootViewRect(); + // var element = App.WaitForElement("coffee.png")[0]; + // var rect = App.RootViewRect(); // Assert.AreEqual(element.Rect.CenterX, rect.CenterX); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue416.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue416.cs index 50e870197ac2..684d2d19491f 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue416.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue416.cs @@ -16,8 +16,8 @@ public Issue416(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.Navigation)] //public void Issue416TestsNavBarPresent() //{ - // RunningApp.WaitForElement(q => q.Marked("Test Page")); - // RunningApp.WaitForElement(q => q.Marked("I should have a nav bar")); - // RunningApp.Screenshot("All element present"); + // App.WaitForElement(q => q.Marked("Test Page")); + // App.WaitForElement(q => q.Marked("I should have a nav bar")); + // App.Screenshot("All element present"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4303.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4303.cs index d1f779a27d5c..c290fce7cb5f 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4303.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4303.cs @@ -16,9 +16,9 @@ public Issue4303(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.LifeCycle)] //public void Issue4303Test() //{ - // RunningApp.WaitForElement(c => c.Text(Success)); - // RunningApp.WaitForElement(c => c.Marked(btnAutomationID)); - // RunningApp.Tap(c => c.Marked(btnAutomationID)); - // RunningApp.WaitForElement(c => c.Text(ChildSuccess)); + // App.WaitForElement(c => c.Text(Success)); + // App.WaitForElement(c => c.Marked(btnAutomationID)); + // App.Tap(c => c.Marked(btnAutomationID)); + // App.WaitForElement(c => c.Text(ChildSuccess)); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4314.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4314.cs index da367ee76db8..6e674f99dd97 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4314.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4314.cs @@ -17,15 +17,15 @@ public Issue4314(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.ContextActions)] //public void Issue4341Test() //{ - // RunningApp.WaitForElement(c => c.Marked("Email")); - // RunningApp.ActivateContextMenu("Subject Line 0"); - // RunningApp.WaitForElement("Delete"); - // RunningApp.Tap("Delete"); - // RunningApp.ActivateContextMenu("Subject Line 1"); - // RunningApp.Tap("Delete"); - // RunningApp.WaitForElement(c => c.Marked(Success)); - // RunningApp.Back(); - // RunningApp.WaitForElement(c => c.Marked("Email")); - // RunningApp.SwipeRightToLeft(); + // App.WaitForElement(c => c.Marked("Email")); + // App.ActivateContextMenu("Subject Line 0"); + // App.WaitForElement("Delete"); + // App.Tap("Delete"); + // App.ActivateContextMenu("Subject Line 1"); + // App.Tap("Delete"); + // App.WaitForElement(c => c.Marked(Success)); + // App.Back(); + // App.WaitForElement(c => c.Marked("Email")); + // App.SwipeRightToLeft(); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4356.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4356.cs index 24a23b941674..3e90248aafa0 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4356.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4356.cs @@ -17,11 +17,11 @@ public Issue4356(TestDevice testDevice) : base(testDevice) //[FailsOnIOS] //public void Issue4356Test() //{ - // RunningApp.WaitForElement(q => q.Marked("Will this repo work?")); - // RunningApp.WaitForElement(q => q.Marked("Remove item")); - // RunningApp.Tap(q => q.Marked("Remove item")); - // RunningApp.Tap(q => q.Marked("Remove item")); - // RunningApp.Tap(q => q.Marked("Add item")); - // RunningApp.WaitForElement(q => q.Marked("Added from Button Command")); + // App.WaitForElement(q => q.Marked("Will this repo work?")); + // App.WaitForElement(q => q.Marked("Remove item")); + // App.Tap(q => q.Marked("Remove item")); + // App.Tap(q => q.Marked("Remove item")); + // App.Tap(q => q.Marked("Add item")); + // App.WaitForElement(q => q.Marked("Added from Button Command")); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue45749.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue45749.cs index 3441193f4e9f..bc4a4aba8116 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue45749.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue45749.cs @@ -16,11 +16,11 @@ public Issue45749(TestDevice testDevice) : base(testDevice) //[FailsOnMauiIOS] //public void DisableScrollingOnCustomHorizontalListView() //{ - // RunningApp.WaitForElement("Button"); - // RunningApp.WaitForElement(q => q.Marked("True"), timeout: TimeSpan.FromSeconds(2)); - // RunningApp.Screenshot("Custom HorizontalListView Scrolling Enabled Default"); - // RunningApp.Tap(q => q.Marked("Toggle ScrollView.IsEnabled")); - // RunningApp.WaitForElement(q => q.Marked("False"), timeout: TimeSpan.FromSeconds(2)); - // RunningApp.Screenshot("Custom HorizontalListView Scrolling Disabled"); + // App.WaitForElement("Button"); + // App.WaitForElement(q => q.Marked("True"), timeout: TimeSpan.FromSeconds(2)); + // App.Screenshot("Custom HorizontalListView Scrolling Enabled Default"); + // App.Tap(q => q.Marked("Toggle ScrollView.IsEnabled")); + // App.WaitForElement(q => q.Marked("False"), timeout: TimeSpan.FromSeconds(2)); + // App.Screenshot("Custom HorizontalListView Scrolling Disabled"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4597.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4597.cs index b55fc5d79b7a..311e87196d8b 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4597.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4597.cs @@ -81,7 +81,7 @@ public Issue4597(TestDevice testDevice) : base(testDevice) // SetupTest(nameof(ListView), fileSource); // var imageVisible = - // RunningApp.QueryUntilPresent(GetImage, 10, 2000); + // App.QueryUntilPresent(GetImage, 10, 2000); // Assert.AreEqual(1, imageVisible.Length); // SetImageSourceToNull(); @@ -109,15 +109,15 @@ public Issue4597(TestDevice testDevice) : base(testDevice) //void SetImageSourceToNull() //{ - // RunningApp.Tap("ClickMe"); - // RunningApp.WaitForElement(_appearText); + // App.Tap("ClickMe"); + // App.WaitForElement(_appearText); //} //Xamarin.UITest.Queries.AppResult TestForImageVisible() //{ - // var images = RunningApp.QueryUntilPresent(() => + // var images = App.QueryUntilPresent(() => // { - // var result = RunningApp.WaitForElement(_fileNameAutomationId); + // var result = App.WaitForElement(_fileNameAutomationId); // if (result[0].Rect.Height > 1) // return result; @@ -135,7 +135,7 @@ public Issue4597(TestDevice testDevice) : base(testDevice) //void TestForImageNotVisible(Xamarin.UITest.Queries.AppResult previousFinding) //{ - // var imageVisible = RunningApp.Query(_fileNameAutomationId); + // var imageVisible = App.Query(_fileNameAutomationId); // if (imageVisible.Length > 0) // { @@ -145,19 +145,19 @@ public Issue4597(TestDevice testDevice) : base(testDevice) //void SetupTest(string controlType, bool fileSource) //{ - // RunningApp.WaitForElement(_nextTestId); + // App.WaitForElement(_nextTestId); // string activeTest = null; - // while (RunningApp.Query(controlType).Length == 0) + // while (App.Query(controlType).Length == 0) // { - // activeTest = RunningApp.WaitForElement(_activeTestId)[0].ReadText(); - // RunningApp.Tap(_nextTestId); - // RunningApp.WaitForNoElement(activeTest); + // activeTest = App.WaitForElement(_activeTestId)[0].ReadText(); + // App.Tap(_nextTestId); + // App.WaitForNoElement(activeTest); // } - // string sourceLabel = RunningApp.WaitForFirstElement("SourceLabel").ReadText(); + // string sourceLabel = App.WaitForFirstElement("SourceLabel").ReadText(); // if (fileSource && sourceLabel != _imageFromFile) - // RunningApp.Tap(_switchUriId); + // App.Tap(_switchUriId); // else if (!fileSource && sourceLabel != _imageFromUri) - // RunningApp.Tap(_switchUriId); + // App.Tap(_switchUriId); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4684.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4684.cs index 96324fb88e7f..012c2eef34fd 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4684.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4684.cs @@ -16,14 +16,14 @@ public Issue4684(TestDevice testDevice) : base(testDevice) //public void NavigatingBackAndForthDoesNotCrash() //{ // TapInFlyout("Connect"); - // RunningApp.Tap("Control"); + // App.Tap("Control"); // TapInFlyout("Home"); // TapInFlyout("Connect"); - // RunningApp.Tap("Connect"); - // RunningApp.Tap("Control"); + // App.Tap("Connect"); + // App.Tap("Control"); - // RunningApp.WaitForElement("Success"); + // App.WaitForElement("Success"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4714.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4714.cs index e053fc7cc121..1cf8ed3d9051 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4714.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4714.cs @@ -16,10 +16,10 @@ public Issue4714(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.Gestures)] //public void Issue4714Test() //{ - // RunningApp.WaitForElement(InitialText); - // RunningApp.DoubleTap(InitialText); - // RunningApp.Tap(InitialText); - // RunningApp.Tap(InitialText); - // RunningApp.WaitForElement($"{InitialText}: 4"); + // App.WaitForElement(InitialText); + // App.DoubleTap(InitialText); + // App.Tap(InitialText); + // App.Tap(InitialText); + // App.WaitForElement($"{InitialText}: 4"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4720.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4720.cs index fd76a35bc05f..03e053c8a452 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4720.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4720.cs @@ -22,12 +22,12 @@ public Issue4720(TestDevice testDevice) : base(testDevice) // for (int n = 0; n < iterations; n++) // { - // RunningApp.WaitForElement(q => q.Marked("New Page")); - // RunningApp.Tap(q => q.Marked("New Page")); - // RunningApp.WaitForElement(q => q.Marked("Close Page")); + // App.WaitForElement(q => q.Marked("New Page")); + // App.Tap(q => q.Marked("New Page")); + // App.WaitForElement(q => q.Marked("Close Page")); // Thread.Sleep(250); - // RunningApp.Tap(q => q.Marked("Close Page")); + // App.Tap(q => q.Marked("Close Page")); // } - // RunningApp.Tap(q => q.Marked("GC")); + // App.Tap(q => q.Marked("GC")); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4973.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4973.cs index 5f53c5fd2676..4b65feb58563 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4973.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue4973.cs @@ -17,14 +17,14 @@ public Issue4973(TestDevice testDevice) : base(testDevice) //[FailsOnAndroid] //public void Issue4973Test() //{ - // RunningApp.Tap(q => q.Text("Tab5")); + // App.Tap(q => q.Text("Tab5")); - // RunningApp.WaitForElement(q => q.Text("Test")); + // App.WaitForElement(q => q.Text("Test")); // GarbageCollectionHelper.Collect(); - // RunningApp.Tap(q => q.Text("Tab1")); + // App.Tap(q => q.Text("Tab1")); - // RunningApp.Tap(q => q.Text("Tab2")); + // App.Tap(q => q.Text("Tab2")); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5132.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5132.cs index 32adfc91edd5..5421559598bb 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5132.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5132.cs @@ -19,7 +19,7 @@ public Issue5132(TestDevice testDevice) : base(testDevice) // [Category(UITestCategories.Shell)] // public void ShellFlyoutAndHamburgerAutomationProperties() // { - // RunningApp.WaitForElement(q => q.Marked(_idIconElement)); + // App.WaitForElement(q => q.Marked(_idIconElement)); // TapInFlyout(_titleElement, _idIconElement); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5159.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5159.cs index ff2ae6256462..fc8638acca97 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5159.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5159.cs @@ -16,45 +16,45 @@ public Issue5159(TestDevice testDevice) : base(testDevice) //[Test] //public void InvisibleDatepickerShowsDialogOnFocus() //{ - // RunningApp.WaitForElement(DatePickerButton); - // RunningApp.Screenshot("Issue 5159 page is showing in all it's glory"); - // RunningApp.Tap(DatePickerButton); + // App.WaitForElement(DatePickerButton); + // App.Screenshot("Issue 5159 page is showing in all it's glory"); + // App.Tap(DatePickerButton); - // RunningApp.WaitForElement(x => x.Class("DatePicker")); + // App.WaitForElement(x => x.Class("DatePicker")); - // RunningApp.Screenshot("DatePicker is shown"); - // RunningApp.TapCoordinates(5, 100); + // App.Screenshot("DatePicker is shown"); + // App.TapCoordinates(5, 100); //} //[Microsoft.Maui.Controls.Compatibility.UITests.FailsOnAndroid] //[Test] //public void InvisibleTimepickerShowsDialogOnFocus() //{ - // RunningApp.WaitForElement(TimePickerButton); - // RunningApp.Screenshot("Issue 5159 page is showing in all it's glory"); - // RunningApp.Tap(TimePickerButton); + // App.WaitForElement(TimePickerButton); + // App.Screenshot("Issue 5159 page is showing in all it's glory"); + // App.Tap(TimePickerButton); - // RunningApp.WaitForElement(x => x.Class("timePicker")); + // App.WaitForElement(x => x.Class("timePicker")); - // RunningApp.Screenshot("TimePicker is shown"); - // RunningApp.TapCoordinates(5, 100); + // App.Screenshot("TimePicker is shown"); + // App.TapCoordinates(5, 100); //} //[FailsOnAndroid] //[Test] //public void InvisiblePickerShowsDialogOnFocus() //{ - // RunningApp.WaitForElement(PickerButton); - // RunningApp.Screenshot("Issue 5159 page is showing in all it's glory"); - // RunningApp.Tap(PickerButton); + // App.WaitForElement(PickerButton); + // App.Screenshot("Issue 5159 page is showing in all it's glory"); + // App.Tap(PickerButton); - // RunningApp.WaitForElement("Foo"); + // App.WaitForElement("Foo"); - // RunningApp.Screenshot("Picker is shown"); + // App.Screenshot("Picker is shown"); - // RunningApp.Tap("Foo"); + // App.Tap("Foo"); - // RunningApp.WaitForNoElement("Foo"); + // App.WaitForNoElement("Foo"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue530.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue530.cs index 81279c149fb4..cf6af88fa596 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue530.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue530.cs @@ -16,15 +16,15 @@ public Issue530(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.ListView)] //public void Issue530TestsLoadAsync() //{ - // RunningApp.WaitForElement(q => q.Button("Load")); - // RunningApp.Screenshot("All elements present"); - // RunningApp.Tap(q => q.Button("Load")); + // App.WaitForElement(q => q.Button("Load")); + // App.Screenshot("All elements present"); + // App.Tap(q => q.Button("Load")); - // RunningApp.WaitForElement(q => q.Marked("John")); - // RunningApp.WaitForElement(q => q.Marked("Paul")); - // RunningApp.WaitForElement(q => q.Marked("George")); - // RunningApp.WaitForElement(q => q.Marked("Ringo")); + // App.WaitForElement(q => q.Marked("John")); + // App.WaitForElement(q => q.Marked("Paul")); + // App.WaitForElement(q => q.Marked("George")); + // App.WaitForElement(q => q.Marked("Ringo")); - // RunningApp.Screenshot("List items loaded async"); + // App.Screenshot("List items loaded async"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5412.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5412.cs index 2316e37d6f31..db7d114c5f24 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5412.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5412.cs @@ -21,16 +21,16 @@ public Issue5412(TestDevice testDevice) : base(testDevice) // var settings = "Settings"; // var back = "Back"; - // RunningApp.WaitForElement(hamburgerText); - // RunningApp.Tap(hamburgerText); + // App.WaitForElement(hamburgerText); + // App.Tap(hamburgerText); - // RunningApp.WaitForElement(settings); - // RunningApp.Tap(settings); + // App.WaitForElement(settings); + // App.Tap(settings); - // RunningApp.WaitForElement(back); - // RunningApp.Tap(back); + // App.WaitForElement(back); + // App.Tap(back); // // This fails if the menu isn't displayed (original error behavior) - // RunningApp.WaitForElement(hamburgerText); + // App.WaitForElement(hamburgerText); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5470.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5470.cs index 1cea94a4603c..510df17446a2 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5470.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5470.cs @@ -18,6 +18,6 @@ public Issue5470(TestDevice testDevice) : base(testDevice) //public void Issue5470Test() //{ // Thread.Sleep(500); // give it time to crash - // RunningApp.WaitForElement(q => q.Marked("IssuePageLabel")); + // App.WaitForElement(q => q.Marked("IssuePageLabel")); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5500.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5500.cs index c1260e8ee28d..eff54def5736 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5500.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5500.cs @@ -17,16 +17,16 @@ public Issue5500(TestDevice testDevice) : base(testDevice) //[FailsOnIOS] //public void VerifyEditorTextChangeEventsAreFiring() //{ - // RunningApp.WaitForElement("EditorAutomationId"); - // RunningApp.EnterText("EditorAutomationId", "Test 1"); + // App.WaitForElement("EditorAutomationId"); + // App.EnterText("EditorAutomationId", "Test 1"); - // Assert.AreEqual("Test 1", RunningApp.WaitForElement("EditorAutomationId")[0].ReadText()); - // Assert.AreEqual("Test 1", RunningApp.WaitForElement("EntryAutomationId")[0].ReadText()); + // Assert.AreEqual("Test 1", App.WaitForElement("EditorAutomationId")[0].ReadText()); + // Assert.AreEqual("Test 1", App.WaitForElement("EntryAutomationId")[0].ReadText()); - // RunningApp.ClearText("EntryAutomationId"); - // RunningApp.EnterText("EntryAutomationId", "Test 2"); + // App.ClearText("EntryAutomationId"); + // App.EnterText("EntryAutomationId", "Test 2"); - // Assert.AreEqual("Test 2", RunningApp.WaitForElement("EditorAutomationId")[0].ReadText()); - // Assert.AreEqual("Test 2", RunningApp.WaitForElement("EntryAutomationId")[0].ReadText()); + // Assert.AreEqual("Test 2", App.WaitForElement("EditorAutomationId")[0].ReadText()); + // Assert.AreEqual("Test 2", App.WaitForElement("EntryAutomationId")[0].ReadText()); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5503.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5503.cs index 718d8961a2ce..6eae9443eed5 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5503.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5503.cs @@ -19,17 +19,17 @@ public Issue5503(TestDevice testDevice) : base(testDevice) //[FailsOnIOS] //public void ToggleAppearanceApiBackgroundColorListView() //{ - // RunningApp.WaitForElement(ChangeBackgroundButtonAutomationId); + // App.WaitForElement(ChangeBackgroundButtonAutomationId); - // RunningApp.Screenshot("ListView cells have clear background, default color from code"); + // App.Screenshot("ListView cells have clear background, default color from code"); - // RunningApp.Tap(ChangeBackgroundButtonAutomationId); - // RunningApp.NavigateBack(); - // RunningApp.WaitForNoElement(ChangeBackgroundButtonAutomationId); + // App.Tap(ChangeBackgroundButtonAutomationId); + // App.NavigateBack(); + // App.WaitForNoElement(ChangeBackgroundButtonAutomationId); // AppSetup.NavigateToIssue(typeof(Issue5503), RunningApp); - // RunningApp.WaitForElement(ChangeBackgroundButtonAutomationId); + // App.WaitForElement(ChangeBackgroundButtonAutomationId); - // RunningApp.Screenshot("ListView cells have Red background, set by Appearance API"); + // App.Screenshot("ListView cells have Red background, set by Appearance API"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue55555.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue55555.cs index 5869e5b5b3c5..cdb5863cd00b 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue55555.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue55555.cs @@ -17,6 +17,6 @@ public Issue55555(TestDevice testDevice) : base(testDevice) //[FailsOnIOS] //public void TGroupDisplayBindingPresentRecycleElementTest() //{ - // RunningApp.WaitForElement(q => q.Marked("vegetables")); + // App.WaitForElement(q => q.Marked("vegetables")); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5766.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5766.cs index 119f142461e4..e5800a7b85ea 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5766.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5766.cs @@ -44,13 +44,13 @@ public Issue5766(TestDevice testDevice) : base(testDevice) //[Ignore("Fails sometimes - needs a better test")] //public void FrameSizeGetsCorruptedWhenListViewIsScrolled() //{ - // RunningApp.WaitForElement(StartText1); + // App.WaitForElement(StartText1); // var start = GetLabels(RunningApp, StartText1); // var smalls = GetLabels(RunningApp, SmallText1); // var bigs = GetLabels(RunningApp, BigText1); - // RunningApp.ScrollDownTo(EndText1, List1, ScrollStrategy.Gesture, 0.9, 15000, timeout: TimeSpan.FromMinutes(1)); - // RunningApp.ScrollUpTo(StartText1, List1, ScrollStrategy.Gesture, 0.9, 15000, timeout: TimeSpan.FromMinutes(1)); + // App.ScrollDownTo(EndText1, List1, ScrollStrategy.Gesture, 0.9, 15000, timeout: TimeSpan.FromMinutes(1)); + // App.ScrollUpTo(StartText1, List1, ScrollStrategy.Gesture, 0.9, 15000, timeout: TimeSpan.FromMinutes(1)); // var startAfter = GetLabels(RunningApp, StartText1); // Assert.IsTrue(RectIsEquals(start, startAfter)); @@ -60,13 +60,13 @@ public Issue5766(TestDevice testDevice) : base(testDevice) // Assert.IsTrue(RectIsEquals(bigs, bigAfter)); // // list2 with ListViewCachingStrategy.RecycleElement - issue 6297 - // RunningApp.WaitForElement(StartText2); + // App.WaitForElement(StartText2); // start = GetLabels(RunningApp, StartText2); // smalls = GetLabels(RunningApp, SmallText2); // bigs = GetLabels(RunningApp, BigText2); - // RunningApp.ScrollDownTo(EndText2, List2, ScrollStrategy.Gesture, 0.9, 15000, timeout: TimeSpan.FromMinutes(1)); - // RunningApp.ScrollUpTo(StartText2, List2, ScrollStrategy.Gesture, 0.9, 15000, timeout: TimeSpan.FromMinutes(1)); + // App.ScrollDownTo(EndText2, List2, ScrollStrategy.Gesture, 0.9, 15000, timeout: TimeSpan.FromMinutes(1)); + // App.ScrollUpTo(StartText2, List2, ScrollStrategy.Gesture, 0.9, 15000, timeout: TimeSpan.FromMinutes(1)); // startAfter = GetLabels(RunningApp, StartText2); // Assert.IsTrue(RectIsEquals(start, startAfter)); diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5793.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5793.cs index 9a7df2956a4c..f63592a55e91 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5793.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5793.cs @@ -17,15 +17,15 @@ public Issue5793(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.CollectionView)] //public void Reset() //{ - // RunningApp.WaitForElement("Reset"); + // App.WaitForElement("Reset"); // // Verify the item is there - // RunningApp.WaitForElement("cover1.jpg, 0"); + // App.WaitForElement("cover1.jpg, 0"); // // Clear the collection - // RunningApp.Tap("Reset"); + // App.Tap("Reset"); // // Verify the item is gone - // RunningApp.WaitForNoElement("cover1.jpg, 0"); + // App.WaitForNoElement("cover1.jpg, 0"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5949.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5949.cs index a98a7fbd7fb4..f0027af79e8c 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5949.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue5949.cs @@ -16,12 +16,12 @@ public Issue5949(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.CollectionView)] //public void DoNotAccessDisposedCollectionView() //{ - // RunningApp.WaitForElement("Login"); - // RunningApp.Tap("Login"); + // App.WaitForElement("Login"); + // App.Tap("Login"); - // RunningApp.WaitForElement(Issue5949_2.BackButton); - // RunningApp.Tap(Issue5949_2.BackButton); + // App.WaitForElement(Issue5949_2.BackButton); + // App.Tap(Issue5949_2.BackButton); - // RunningApp.WaitForElement("Login"); + // App.WaitForElement("Login"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6077.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6077.cs index f51151438dc4..9df240838c79 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6077.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6077.cs @@ -17,6 +17,6 @@ public Issue6077(TestDevice testDevice) : base(testDevice) //public void LastColumnShouldBeVisible() //{ // // If the partial column shows up, then Item 5 will be in it - // RunningApp.WaitForElement("Item 5"); + // App.WaitForElement("Item 5"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6127.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6127.cs index 60689d09a1bb..b9cf2951c31d 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6127.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6127.cs @@ -16,11 +16,11 @@ public Issue6127(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.ToolbarItem)] //public void Issue6127Test() //{ - // RunningApp.WaitForElement(PrimaryToolbarIcon); + // App.WaitForElement(PrimaryToolbarIcon); - // RunningApp.Tap("More options"); - // RunningApp.WaitForElement(SecondaryToolbarIcon); + // App.Tap("More options"); + // App.WaitForElement(SecondaryToolbarIcon); - // RunningApp.Screenshot("There is a secondary toolbar menu and item"); + // App.Screenshot("There is a secondary toolbar menu and item"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6184.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6184.cs index 75b514f0ac49..894c96a19a7f 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6184.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6184.cs @@ -16,9 +16,9 @@ public Issue6184(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.Shell)] //public void GitHubIssue6184() //{ - // RunningApp.WaitForElement(q => q.Marked("More")); - // RunningApp.Tap(q => q.Marked("More")); - // RunningApp.Tap(q => q.Marked("Issue 5")); - // RunningApp.WaitForElement(q => q.Marked("Issue 5")); + // App.WaitForElement(q => q.Marked("More")); + // App.Tap(q => q.Marked("More")); + // App.Tap(q => q.Marked("Issue 5")); + // App.WaitForElement(q => q.Marked("Issue 5")); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6258.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6258.cs index 8dd790c7eab7..5ad689296f6e 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6258.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6258.cs @@ -16,8 +16,8 @@ public Issue6258(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.ListView)] //public void ContextActionsIconImageSource() //{ - // RunningApp.WaitForElement("ListViewItem"); - // RunningApp.ActivateContextMenu("ListViewItem"); - // RunningApp.WaitForElement("coffee.png"); + // App.WaitForElement("ListViewItem"); + // App.ActivateContextMenu("ListViewItem"); + // App.WaitForElement("coffee.png"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6323.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6323.cs index c207bba3ece1..9297251ef963 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6323.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6323.cs @@ -16,6 +16,6 @@ public Issue6323(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.WebView)] //public void Issue6323Test() //{ - // RunningApp.WaitForElement("Success"); + // App.WaitForElement("Success"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6484.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6484.cs index 9b9eb70ae711..cccd79d3e694 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6484.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6484.cs @@ -16,6 +16,6 @@ public Issue6484(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.Shell)] //public void RemovingIntermediatePagesBreaksShell() //{ - // RunningApp.WaitForElement("Success"); + // App.WaitForElement("Success"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6609.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6609.cs index 5bd6cb289f1e..b42894407fda 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6609.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6609.cs @@ -17,9 +17,9 @@ public Issue6609(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.CollectionView)] //public void SelectionChangedCommandParameterBoundToSelectedItemShouldMatchSelectedItem() //{ - // RunningApp.WaitForElement("Item 2"); - // RunningApp.Tap("Item 2"); + // App.WaitForElement("Item 2"); + // App.Tap("Item 2"); - // RunningApp.WaitForElement("Success"); + // App.WaitForElement("Success"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6738.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6738.cs index 566a7c60bd7e..3b2488856ecb 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6738.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6738.cs @@ -17,17 +17,17 @@ public Issue6738(TestDevice testDevice) : base(testDevice) //[FailsOnIOS] //public void FlyoutNavigationBetweenItemsWithNavigationStacks() //{ - // RunningApp.WaitForElement(pushAutomationId); - // RunningApp.Tap(pushAutomationId); - // RunningApp.WaitForElement(insertAutomationId); - // RunningApp.Tap(insertAutomationId); + // App.WaitForElement(pushAutomationId); + // App.Tap(pushAutomationId); + // App.WaitForElement(insertAutomationId); + // App.Tap(insertAutomationId); // TapInFlyout(flyoutOtherTitle, timeoutMessage: flyoutOtherTitle); // TapInFlyout(flyoutMainTitle, timeoutMessage: flyoutMainTitle); - // RunningApp.WaitForElement(returnAutomationId); - // RunningApp.Tap(returnAutomationId); - // RunningApp.NavigateBack(); - // RunningApp.NavigateBack(); + // App.WaitForElement(returnAutomationId); + // App.Tap(returnAutomationId); + // App.NavigateBack(); + // App.NavigateBack(); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6784.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6784.cs index adf2bb4c0c77..3dd9872604e2 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6784.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6784.cs @@ -16,39 +16,39 @@ public Issue6784(TestDevice testDevice) : base(testDevice) //[Test] //public void CurrentItemIsSetWhenSelectingShellSectionAggregatedInMoreTab() //{ - // RunningApp.WaitForElement(x => x.Class("UITabBarButton").Marked("More")); - // RunningApp.Tap(x => x.Class("UITabBarButton").Marked("More")); + // App.WaitForElement(x => x.Class("UITabBarButton").Marked("More")); + // App.Tap(x => x.Class("UITabBarButton").Marked("More")); - // RunningApp.WaitForElement(x => x.Class("UITableViewCell").Text("Tab 5")); - // RunningApp.Tap(x => x.Class("UITableViewCell").Text("Tab 5")); + // App.WaitForElement(x => x.Class("UITableViewCell").Text("Tab 5")); + // App.Tap(x => x.Class("UITableViewCell").Text("Tab 5")); - // RunningApp.WaitForElement(x => x.Text("Success")); + // App.WaitForElement(x => x.Text("Success")); //} //[Test] //public void MoreControllerOpensOnFirstClick() //{ - // RunningApp.WaitForElement(x => x.Class("UITabBarButton").Marked("More")); - // RunningApp.Tap(x => x.Class("UITabBarButton").Marked("More")); + // App.WaitForElement(x => x.Class("UITabBarButton").Marked("More")); + // App.Tap(x => x.Class("UITabBarButton").Marked("More")); - // RunningApp.WaitForElement(x => x.Class("UITableViewCell").Text("Tab 5")); - // RunningApp.Tap(x => x.Class("UITableViewCell").Text("Tab 5")); + // App.WaitForElement(x => x.Class("UITableViewCell").Text("Tab 5")); + // App.Tap(x => x.Class("UITableViewCell").Text("Tab 5")); - // RunningApp.Tap(x => x.Class("UITabBarButton").Marked("Tab 4")); - // RunningApp.WaitForElement("Tab 4 Content"); + // App.Tap(x => x.Class("UITabBarButton").Marked("Tab 4")); + // App.WaitForElement("Tab 4 Content"); - // RunningApp.Tap(x => x.Class("UITabBarButton").Marked("More")); - // RunningApp.WaitForElement(x => x.Class("UITableViewCell").Text("Tab 6")); + // App.Tap(x => x.Class("UITabBarButton").Marked("More")); + // App.WaitForElement(x => x.Class("UITableViewCell").Text("Tab 6")); //} //[Test] //public void MoreControllerDoesNotShowEditButton() //{ - // RunningApp.WaitForElement(x => x.Class("UITabBarButton").Marked("More")); - // RunningApp.Tap(x => x.Class("UITabBarButton").Marked("More")); + // App.WaitForElement(x => x.Class("UITabBarButton").Marked("More")); + // App.Tap(x => x.Class("UITabBarButton").Marked("More")); - // RunningApp.WaitForElement(x => x.Class("UITableViewCell").Text("Tab 5")); + // App.WaitForElement(x => x.Class("UITableViewCell").Text("Tab 5")); - // Assert.AreEqual(RunningApp.Query(x => x.Marked("Edit")).Count(), 0); + // Assert.AreEqual(App.Query(x => x.Marked("Edit")).Count(), 0); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6878.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6878.cs index ebaa96a3325b..3918677b38c0 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6878.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6878.cs @@ -16,11 +16,11 @@ public Issue6878(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.Shell)] //public void ShellItemItemsClearTests() //{ - // RunningApp.WaitForElement(StatusLabel); - // RunningApp.Tap(ClearShellItems); + // App.WaitForElement(StatusLabel); + // App.Tap(ClearShellItems); - // var label = RunningApp.WaitForElement(StatusLabel)[0]; + // var label = App.WaitForElement(StatusLabel)[0]; // Assert.AreEqual(StatusLabelText, label.ReadText()); - // RunningApp.Tap(PostClearTopTab); + // App.Tap(PostClearTopTab); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6932_emptyviewstring.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6932_emptyviewstring.cs index 6cb50c8e2fb2..39c68b6eddf7 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6932_emptyviewstring.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6932_emptyviewstring.cs @@ -17,46 +17,46 @@ public Issue6932_emptyviewstring(TestDevice testDevice) : base(testDevice) //[FailsOnMauiIOS] //public void EmptyViewStringBecomesVisibleWhenItemsSourceIsCleared() //{ - // RunningApp.Screenshot("Screen opens, items are shown"); + // App.Screenshot("Screen opens, items are shown"); - // RunningApp.WaitForElement(_viewModel.LayoutAutomationId); - // RunningApp.Tap(_viewModel.ClearAutomationId); - // RunningApp.WaitForElement(_viewModel.EmptyViewStringDescription); + // App.WaitForElement(_viewModel.LayoutAutomationId); + // App.Tap(_viewModel.ClearAutomationId); + // App.WaitForElement(_viewModel.EmptyViewStringDescription); - // RunningApp.Screenshot("Empty view is visible"); + // App.Screenshot("Empty view is visible"); //} //[Test] //[FailsOnMauiIOS] //public void EmptyViewStringBecomesVisibleWhenItemsSourceIsEmptiedOneByOne() //{ - // RunningApp.Screenshot("Screen opens, items are shown"); + // App.Screenshot("Screen opens, items are shown"); - // RunningApp.WaitForElement(_viewModel.LayoutAutomationId); + // App.WaitForElement(_viewModel.LayoutAutomationId); // for (var i = 0; i < _viewModel.ItemsSource.Count; i++) - // RunningApp.Tap(_viewModel.RemoveAutomationId); + // App.Tap(_viewModel.RemoveAutomationId); - // RunningApp.WaitForElement(_viewModel.EmptyViewStringDescription); + // App.WaitForElement(_viewModel.EmptyViewStringDescription); - // RunningApp.Screenshot("Empty view is visible"); + // App.Screenshot("Empty view is visible"); //} //[Test] //[FailsOnMauiIOS] //public void EmptyViewStringHidesWhenItemsSourceIsFilled() //{ - // RunningApp.Screenshot("Screen opens, items are shown"); + // App.Screenshot("Screen opens, items are shown"); - // RunningApp.WaitForElement(_viewModel.LayoutAutomationId); - // RunningApp.Tap(_viewModel.ClearAutomationId); - // RunningApp.WaitForElement(_viewModel.EmptyViewStringDescription); + // App.WaitForElement(_viewModel.LayoutAutomationId); + // App.Tap(_viewModel.ClearAutomationId); + // App.WaitForElement(_viewModel.EmptyViewStringDescription); - // RunningApp.Screenshot("Items are cleared, empty view visible"); + // App.Screenshot("Items are cleared, empty view visible"); - // RunningApp.Tap(_viewModel.AddAutomationId); - // RunningApp.WaitForNoElement(_viewModel.EmptyViewStringDescription); + // App.Tap(_viewModel.AddAutomationId); + // App.WaitForNoElement(_viewModel.EmptyViewStringDescription); - // RunningApp.Screenshot("Item is added, empty view is not visible"); + // App.Screenshot("Item is added, empty view is not visible"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6932_emptyviewtemplate.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6932_emptyviewtemplate.cs index 7877d7f08d29..e2a0d4b4873e 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6932_emptyviewtemplate.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6932_emptyviewtemplate.cs @@ -17,46 +17,46 @@ public Issue6932_emptyviewtemplate(TestDevice testDevice) : base(testDevice) //[FailsOnMauiIOS] //public void EmptyViewTemplateBecomesVisibleWhenItemsSourceIsCleared() //{ - // RunningApp.Screenshot("Screen opens, items are shown"); + // App.Screenshot("Screen opens, items are shown"); - // RunningApp.WaitForElement(_viewModel.LayoutAutomationId); - // RunningApp.Tap(_viewModel.ClearAutomationId); - // RunningApp.WaitForElement(_viewModel.EmptyTemplateAutomationId); + // App.WaitForElement(_viewModel.LayoutAutomationId); + // App.Tap(_viewModel.ClearAutomationId); + // App.WaitForElement(_viewModel.EmptyTemplateAutomationId); - // RunningApp.Screenshot("Empty view is visible"); + // App.Screenshot("Empty view is visible"); //} //[Test] //[FailsOnMauiIOS] //public void EmptyViewTemplateBecomesVisibleWhenItemsSourceIsEmptiedOneByOne() //{ - // RunningApp.Screenshot("Screen opens, items are shown"); + // App.Screenshot("Screen opens, items are shown"); - // RunningApp.WaitForElement(_viewModel.LayoutAutomationId); + // App.WaitForElement(_viewModel.LayoutAutomationId); // for (var i = 0; i < _viewModel.ItemsSource.Count; i++) - // RunningApp.Tap(_viewModel.RemoveAutomationId); + // App.Tap(_viewModel.RemoveAutomationId); - // RunningApp.WaitForElement(_viewModel.EmptyTemplateAutomationId); + // App.WaitForElement(_viewModel.EmptyTemplateAutomationId); - // RunningApp.Screenshot("Empty view is visible"); + // App.Screenshot("Empty view is visible"); //} //[Test] //[FailsOnMauiIOS] //public void EmptyViewTemplateHidesWhenItemsSourceIsFilled() //{ - // RunningApp.Screenshot("Screen opens, items are shown"); + // App.Screenshot("Screen opens, items are shown"); - // RunningApp.WaitForElement(_viewModel.LayoutAutomationId); - // RunningApp.Tap(_viewModel.ClearAutomationId); - // RunningApp.WaitForElement(_viewModel.EmptyTemplateAutomationId); + // App.WaitForElement(_viewModel.LayoutAutomationId); + // App.Tap(_viewModel.ClearAutomationId); + // App.WaitForElement(_viewModel.EmptyTemplateAutomationId); - // RunningApp.Screenshot("Items are cleared, empty view visible"); + // App.Screenshot("Items are cleared, empty view visible"); - // RunningApp.Tap(_viewModel.AddAutomationId); - // RunningApp.WaitForNoElement(_viewModel.EmptyTemplateAutomationId); + // App.Tap(_viewModel.AddAutomationId); + // App.WaitForNoElement(_viewModel.EmptyTemplateAutomationId); - // RunningApp.Screenshot("Item is added, empty view is not visible"); + // App.Screenshot("Item is added, empty view is not visible"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7167.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7167.cs index 787debae7bb5..81c938fcaf91 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7167.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7167.cs @@ -24,23 +24,23 @@ public Issue7167(TestDevice testDevice) : base(testDevice) //{ // // arrange // // add items to the list and scroll down till item "25" - // RunningApp.Screenshot("Empty ListView"); - // RunningApp.Tap(q => q.Button(AddRangeCommandId)); - // RunningApp.Tap(q => q.Button(AddRangeCommandId)); - // RunningApp.WaitForElement(c => c.Index(25).Property("Enabled", true)); - // RunningApp.Print.Tree(); - // RunningApp.ScrollDownTo(a => a.Marked("25").Property("text").Contains("25"), + // App.Screenshot("Empty ListView"); + // App.Tap(q => q.Button(AddRangeCommandId)); + // App.Tap(q => q.Button(AddRangeCommandId)); + // App.WaitForElement(c => c.Index(25).Property("Enabled", true)); + // App.Print.Tree(); + // App.ScrollDownTo(a => a.Marked("25").Property("text").Contains("25"), // b => b.Marked(ListViewId), ScrollStrategy.Auto); - // RunningApp.WaitForElement(x => x.Marked("25")); + // App.WaitForElement(x => x.Marked("25")); // // act // // when adding additional items via a addrange and a CollectionChangedEventArgs.Action.Reset is sent // // then the listview shouldnt reset or it should not scroll to the top - // RunningApp.Tap(q => q.Marked(AddRangeCommandId)); + // App.Tap(q => q.Marked(AddRangeCommandId)); // // assert // // assert that item "25" is still visible - // var result = RunningApp.Query(x => x.Marked(ListViewId).Child().Marked("25")); + // var result = App.Query(x => x.Marked(ListViewId).Child().Marked("25")); // Assert.That(result?.Length <= 0); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7181.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7181.cs index b85fbb04ff4b..ee8dc4a0b0c2 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7181.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7181.cs @@ -17,17 +17,17 @@ public Issue7181(TestDevice testDevice) : base(testDevice) //public void ShellToolbarItemTests() //{ // var count = 0; - // var toolbarButton = RunningApp.WaitForElement(ToolbarBtn); + // var toolbarButton = App.WaitForElement(ToolbarBtn); // Assert.AreEqual(DefaultToolbarItemText, toolbarButton[0].ReadText()); // for (int i = 0; i < 5; i++) // { - // RunningApp.Tap(ToolbarBtn); + // App.Tap(ToolbarBtn); - // toolbarButton = RunningApp.WaitForElement(ToolbarBtn); + // toolbarButton = App.WaitForElement(ToolbarBtn); // Assert.AreEqual($"{AfterClickToolbarItemText} {count++}", toolbarButton[0].ReadText()); // } - // RunningApp.Tap(SetToolbarIconBtn); + // App.Tap(SetToolbarIconBtn); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7240.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7240.cs index d5944bbb8319..1205163446fc 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7240.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7240.cs @@ -16,10 +16,10 @@ public Issue7240(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.Shell)] //public void ShellSecondPageHasSameLayoutAsPrimary() //{ - // RunningApp.WaitForElement(ClickMe); - // RunningApp.Tap(ClickMe); - // RunningApp.WaitForElement("Page Count:2"); - // RunningApp.Tap(ClickMe); - // RunningApp.WaitForElement(Success); + // App.WaitForElement(ClickMe); + // App.Tap(ClickMe); + // App.WaitForElement("Page Count:2"); + // App.Tap(ClickMe); + // App.WaitForElement(Success); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7290.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7290.cs index 39f91b9c9668..0a4e00990927 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7290.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7290.cs @@ -18,7 +18,7 @@ public Issue7290(TestDevice testDevice) : base(testDevice) //[FailsOnIOS] //public void DisplayActionSheetAndDisplayAlertFromOnAppearing() //{ - // RunningApp.Tap("Cancel"); - // RunningApp.Tap("Close Action Sheet"); + // App.Tap("Cancel"); + // App.Tap("Close Action Sheet"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7311.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7311.cs index 48e5aa3dfa2b..e0f0c26f530d 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7311.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7311.cs @@ -16,19 +16,19 @@ public Issue7311(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.Picker)] //public void OpeningPickerPressingBackButtonTwiceShouldNotOpenPickerAgain() //{ - // RunningApp.WaitForElement(PickerId); - // RunningApp.Tap(PickerId); + // App.WaitForElement(PickerId); + // App.Tap(PickerId); - // RunningApp.WaitForElement(FirstPickerItem); + // App.WaitForElement(FirstPickerItem); - // RunningApp.Back(); + // App.Back(); - // RunningApp.WaitForNoElement(FirstPickerItem); + // App.WaitForNoElement(FirstPickerItem); - // RunningApp.Back(); + // App.Back(); - // RunningApp.WaitForNoElement(FirstPickerItem, "Picker is again visible after second back button press", TimeSpan.FromSeconds(10)); + // App.WaitForNoElement(FirstPickerItem, "Picker is again visible after second back button press", TimeSpan.FromSeconds(10)); - // RunningApp.Screenshot("Back at the previous page, not showing the picker again"); + // App.Screenshot("Back at the previous page, not showing the picker again"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7329.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7329.cs index bc4315025071..9114b92d8afd 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7329.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7329.cs @@ -24,22 +24,22 @@ public Issue7329(TestDevice testDevice) : base(testDevice) // return; // } - // RunningApp.WaitForElement("1"); + // App.WaitForElement("1"); - // RunningApp.QueryUntilPresent(() => + // App.QueryUntilPresent(() => // { // try // { - // RunningApp.ScrollDownTo("30", strategy: ScrollStrategy.Gesture, swipeSpeed: 100); + // App.ScrollDownTo("30", strategy: ScrollStrategy.Gesture, swipeSpeed: 100); // } // catch // { // // just ignore if it fails so it can keep trying to scroll // } - // return RunningApp.Query("30"); + // return App.Query("30"); // }); - // RunningApp.Query("30"); + // App.Query("30"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7396.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7396.cs index 7cc813102a22..e5d0c387362a 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7396.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7396.cs @@ -18,11 +18,11 @@ public Issue7396(TestDevice testDevice) : base(testDevice) //public void BottomTabColorTest() //{ // //7396 Issue | Shell: Setting Shell.BackgroundColor overrides all colors of TabBar - // RunningApp.WaitForElement(CreateBottomTabButton); - // RunningApp.Tap(CreateBottomTabButton); - // RunningApp.Tap(CreateBottomTabButton); - // RunningApp.Tap(ChangeShellColorButton); - // RunningApp.Screenshot("I should see a bottom tabbar icon"); + // App.WaitForElement(CreateBottomTabButton); + // App.Tap(CreateBottomTabButton); + // App.Tap(CreateBottomTabButton); + // App.Tap(ChangeShellColorButton); + // App.Screenshot("I should see a bottom tabbar icon"); // Assert.Inconclusive("Check that bottom tabbar icon is visible"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7556.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7556.cs index d4d7cd4e2160..424251011769 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7556.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7556.cs @@ -17,54 +17,54 @@ public Issue7556(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.FlyoutPage)] //public void MasterStillVisibleAfterPushingAndPoppingModalPage() //{ - // if (!RunningApp.IsTablet()) + // if (!App.IsTablet()) // return; - // RunningApp.SetOrientationLandscape(); - // RunningApp.WaitForElement("Split"); - // RunningApp.WaitForElement("Flyout Visible"); - // RunningApp.Tap("PushModalPage"); - // RunningApp.Tap("PopModalPage"); - // RunningApp.WaitForElement("Flyout Visible"); + // App.SetOrientationLandscape(); + // App.WaitForElement("Split"); + // App.WaitForElement("Flyout Visible"); + // App.Tap("PushModalPage"); + // App.Tap("PopModalPage"); + // App.WaitForElement("Flyout Visible"); //} //[Test] //public void SplitOnLandscapeFailsToDetectClose() //{ - // if (!RunningApp.IsTablet()) + // if (!App.IsTablet()) // return; - // while (RunningApp.WaitForElement("CurrentMasterBehavior")[0].ReadText() != FlyoutLayoutBehavior.SplitOnLandscape.ToString()) + // while (App.WaitForElement("CurrentMasterBehavior")[0].ReadText() != FlyoutLayoutBehavior.SplitOnLandscape.ToString()) // { - // RunningApp.Tap("ChangeMasterBehavior"); + // App.Tap("ChangeMasterBehavior"); - // if (RunningApp.Query("Flyout Visible").Length > 0) - // RunningApp.Tap("Close Flyout"); + // if (App.Query("Flyout Visible").Length > 0) + // App.Tap("Close Flyout"); // } - // RunningApp.Tap("Flyout"); - // RunningApp.WaitForElement("Flyout Visible"); - // RunningApp.Tap("Close Flyout"); + // App.Tap("Flyout"); + // App.WaitForElement("Flyout Visible"); + // App.Tap("Close Flyout"); - // RunningApp.SetOrientationLandscape(); - // RunningApp.SetOrientationPortrait(); - // RunningApp.SetOrientationLandscape(); - // RunningApp.SetOrientationPortrait(); + // App.SetOrientationLandscape(); + // App.SetOrientationPortrait(); + // App.SetOrientationLandscape(); + // App.SetOrientationPortrait(); - // if (RunningApp.Query("Flyout Visible").Length > 0) - // RunningApp.Tap("Close Flyout"); + // if (App.Query("Flyout Visible").Length > 0) + // App.Tap("Close Flyout"); - // RunningApp.Tap("Flyout"); - // RunningApp.WaitForElement("Flyout Visible"); - // RunningApp.Tap("Close Flyout"); - // RunningApp.Tap("Flyout"); - // RunningApp.WaitForElement("Flyout Visible"); + // App.Tap("Flyout"); + // App.WaitForElement("Flyout Visible"); + // App.Tap("Close Flyout"); + // App.Tap("Flyout"); + // App.WaitForElement("Flyout Visible"); //} //[TearDown] //public override void TearDown() //{ - // RunningApp.SetOrientationPortrait(); + // App.SetOrientationPortrait(); // base.TearDown(); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue774.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue774.cs index 18c6ad5811bf..52cf68979c2b 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue774.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue774.cs @@ -17,31 +17,31 @@ public Issue774(TestDevice testDevice) : base(testDevice) //[FailsOnAndroid] //public void Issue774TestsDismissActionSheetAfterRotation() //{ - // RunningApp.Tap(q => q.Button("Show ActionSheet")); - // RunningApp.Screenshot("Show ActionSheet"); + // App.Tap(q => q.Button("Show ActionSheet")); + // App.Screenshot("Show ActionSheet"); - // RunningApp.SetOrientationLandscape(); - // RunningApp.Screenshot("Rotate Device"); + // App.SetOrientationLandscape(); + // App.Screenshot("Rotate Device"); // // Wait for the action sheet element to show up - // RunningApp.WaitForElement(q => q.Marked("What's up")); + // App.WaitForElement(q => q.Marked("What's up")); - // var dismiss = RunningApp.Query("Dismiss"); + // var dismiss = App.Query("Dismiss"); // var target = dismiss.Length > 0 ? "Dismiss" : "Destroy"; - // RunningApp.Tap(q => q.Marked(target)); - // RunningApp.WaitForNoElement(q => q.Marked(target)); + // App.Tap(q => q.Marked(target)); + // App.WaitForNoElement(q => q.Marked(target)); - // RunningApp.Screenshot("Dismiss ActionSheet"); + // App.Screenshot("Dismiss ActionSheet"); //} //[TearDown] //public override void TearDown() //{ - // RunningApp.SetOrientationPortrait(); + // App.SetOrientationPortrait(); // base.TearDown(); //} diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7803.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7803.cs index bd3e86c7694c..539e69773f67 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7803.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7803.cs @@ -17,20 +17,20 @@ public Issue7803(TestDevice testDevice) : base(testDevice) //[FailsOnMauiIOS] //public void DelayedIsRefreshingAndCommandTest_SwipeDown() //{ - // var collectionView = RunningApp.WaitForElement(q => q.Marked("CollectionView7803"))[0]; + // var collectionView = App.WaitForElement(q => q.Marked("CollectionView7803"))[0]; - // RunningApp.Pan(new Drag(collectionView.Rect, Drag.Direction.TopToBottom, Drag.DragLength.Medium)); + // App.Pan(new Drag(collectionView.Rect, Drag.Direction.TopToBottom, Drag.DragLength.Medium)); - // RunningApp.WaitForElement(q => q.Marked("Count: 20")); - // RunningApp.WaitForNoElement(q => q.Marked("Count: 30")); + // App.WaitForElement(q => q.Marked("Count: 20")); + // App.WaitForNoElement(q => q.Marked("Count: 30")); // AppResult[] lastCellResults = null; - // RunningApp.QueryUntilPresent(() => + // App.QueryUntilPresent(() => // { - // RunningApp.DragCoordinates(collectionView.Rect.CenterX, collectionView.Rect.Y + collectionView.Rect.Height - 50, collectionView.Rect.CenterX, collectionView.Rect.Y + 5); + // App.DragCoordinates(collectionView.Rect.CenterX, collectionView.Rect.Y + collectionView.Rect.Height - 50, collectionView.Rect.CenterX, collectionView.Rect.Y + 5); - // lastCellResults = RunningApp.Query("19"); + // lastCellResults = App.Query("19"); // return lastCellResults; // }, 10, 1); diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7823.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7823.cs index 00dda26891b3..a3782fc348b8 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7823.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7823.cs @@ -17,22 +17,22 @@ public Issue7823_XF(TestDevice testDevice) : base(testDevice) //[FailsOnAndroid] //public void Issue7823TestIsClippedIssue() //{ - // RunningApp.WaitForElement(RootFrame); + // App.WaitForElement(RootFrame); // AssertIsClipped(true); - // RunningApp.Tap(SetClipBounds); + // App.Tap(SetClipBounds); // AssertIsClipped(false); //} //void AssertIsClipped(bool expected) //{ - // if (RunningApp.IsApiHigherThan(21)) + // if (App.IsApiHigherThan(21)) // { - // var cliptoOutlineValue = RunningApp.InvokeFromElement(SecondaryFrame, GetClipToOutline)[0]; + // var cliptoOutlineValue = App.InvokeFromElement(SecondaryFrame, GetClipToOutline)[0]; // Assert.AreEqual(expected, cliptoOutlineValue); // } - // else if (RunningApp.IsApiHigherThan(19)) + // else if (App.IsApiHigherThan(19)) // { - // var clipBounds = RunningApp.InvokeFromElement(SecondaryFrame, GetClipBounds)[0]; + // var clipBounds = App.InvokeFromElement(SecondaryFrame, GetClipBounds)[0]; // if (expected) // Assert.IsNotNull(clipBounds); // else @@ -40,7 +40,7 @@ public Issue7823_XF(TestDevice testDevice) : base(testDevice) // } // else // { - // var clipChildrenValue = RunningApp.InvokeFromElement(SecondaryFrame, GetClipChildren)[0]; + // var clipChildrenValue = App.InvokeFromElement(SecondaryFrame, GetClipChildren)[0]; // Assert.AreEqual(expected, clipChildrenValue); // } //} diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7856.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7856.cs index e6f3a3776eba..a6e9d74d42f5 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7856.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7856.cs @@ -16,14 +16,14 @@ public Issue7856(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.Shell)] //public void BackButtonBehaviorTest() //{ - // RunningApp.Tap(x => x.Text("Tap to Navigate To the Page With BackButtonBehavior")); + // App.Tap(x => x.Text("Tap to Navigate To the Page With BackButtonBehavior")); - // RunningApp.WaitForElement(x => x.Text("Navigate again")); + // App.WaitForElement(x => x.Text("Navigate again")); - // RunningApp.Tap(x => x.Text("Navigate again")); + // App.Tap(x => x.Text("Navigate again")); - // RunningApp.WaitForElement(x => x.Text("Test")); + // App.WaitForElement(x => x.Text("Test")); - // RunningApp.Tap(x => x.Text("Test")); + // App.Tap(x => x.Text("Test")); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7886.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7886.cs index 93007e642f10..6ada4109cfc0 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7886.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7886.cs @@ -16,9 +16,9 @@ public Issue7886(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.Navigation)] //public void NoNREOnPushModalAsyncAndBack() //{ - // RunningApp.WaitForElement(TriggerModalAutomationId); - // RunningApp.Tap(TriggerModalAutomationId); - // RunningApp.WaitForElement(PopModalAutomationId); - // RunningApp.Tap(PopModalAutomationId); + // App.WaitForElement(TriggerModalAutomationId); + // App.Tap(TriggerModalAutomationId); + // App.WaitForElement(PopModalAutomationId); + // App.Tap(PopModalAutomationId); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7890.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7890.cs index df8593e99c08..07c48f51a95d 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7890.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7890.cs @@ -16,15 +16,15 @@ public Issue7890(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.ListView)] //public void TestCorrectListItemsRemoved() //{ - // RunningApp.WaitForElement(q => q.Button("RemoveBtn")); - // RunningApp.Tap(q => q.Button("RemoveBtn")); + // App.WaitForElement(q => q.Button("RemoveBtn")); + // App.Tap(q => q.Button("RemoveBtn")); // var toRemove = Enumerable.Range(RemoveFrom, RemoveCount).ToList(); // foreach (var c in Enumerable.Range(0, Count)) // { // if (toRemove.Contains(c)) - // Assert.IsNull(RunningApp.Query(q => q.Marked(c.ToString())).FirstOrDefault()); + // Assert.IsNull(App.Query(q => q.Marked(c.ToString())).FirstOrDefault()); // else - // Assert.IsNotNull(RunningApp.Query(q => q.Marked(c.ToString())).FirstOrDefault()); + // Assert.IsNotNull(App.Query(q => q.Marked(c.ToString())).FirstOrDefault()); // } //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7993.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7993.cs index 9eded0dbeea9..dbe5213a6482 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7993.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7993.cs @@ -16,24 +16,24 @@ public Issue7993(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.CollectionView)] //public void CollectionViewVerticalOffset() //{ - // var colView = RunningApp.WaitForElement("CollectionView7993")[0]; + // var colView = App.WaitForElement("CollectionView7993")[0]; - // RunningApp.WaitForElement(x => x.Marked("VerticalOffset: 0")); + // App.WaitForElement(x => x.Marked("VerticalOffset: 0")); // AppResult[] lastCellResults = null; - // RunningApp.QueryUntilPresent(() => + // App.QueryUntilPresent(() => // { - // RunningApp.DragCoordinates(colView.Rect.CenterX, colView.Rect.Y + colView.Rect.Height - 50, colView.Rect.CenterX, colView.Rect.Y + 5); + // App.DragCoordinates(colView.Rect.CenterX, colView.Rect.Y + colView.Rect.Height - 50, colView.Rect.CenterX, colView.Rect.Y + 5); - // lastCellResults = RunningApp.Query("19"); + // lastCellResults = App.Query("19"); // return lastCellResults; // }, 20, 1); // Assert.IsTrue(lastCellResults?.Any() ?? false); - // RunningApp.Tap(x => x.Marked("NewItemsSource")); - // RunningApp.WaitForElement(x => x.Marked("VerticalOffset: 0")); + // App.Tap(x => x.Marked("NewItemsSource")); + // App.WaitForElement(x => x.Marked("VerticalOffset: 0")); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8008.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8008.cs index ad9b96d88720..bbf1cca39426 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8008.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8008.cs @@ -17,6 +17,6 @@ public Issue8008(TestDevice testDevice) : base(testDevice) //[FailsOnIOS] //public void RemovingShellItemCorrectlyPicksNextValidShellItemAsVisibleShellItem() //{ - // RunningApp.WaitForElement("Success"); + // App.WaitForElement("Success"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8145.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8145.cs index e78773c5d807..55b5dc2d1953 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8145.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8145.cs @@ -20,10 +20,10 @@ public Issue8145(TestDevice testDevice) : base(testDevice) // [FailsOnAndroid] // public void Issue8145ShellToolbarDisposedException() // { -// RunningApp.WaitForElement("More"); -// RunningApp.Tap("More"); -// RunningApp.WaitForElement("target"); -// RunningApp.Tap("target"); -// RunningApp.WaitForElement("Success"); +// App.WaitForElement("More"); +// App.Tap("More"); +// App.WaitForElement("target"); +// App.Tap("target"); +// App.WaitForElement("Success"); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8186.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8186.cs index 5b24935717cc..57b710dd3ec8 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8186.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8186.cs @@ -16,9 +16,9 @@ public Issue8186(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.RefreshView)] //public void SetIsRefreshingToTrueInOnAppearingDoesntCrash() //{ - // RunningApp.WaitForElement("Success"); - // RunningApp.Tap("PushPage"); - // RunningApp.Tap("PopPage"); - // RunningApp.WaitForElement("Success"); + // App.WaitForElement("Success"); + // App.Tap("PushPage"); + // App.Tap("PopPage"); + // App.WaitForElement("Success"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8203.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8203.cs index c6fbe830c685..6b97b489eb5f 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8203.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8203.cs @@ -18,9 +18,9 @@ public Issue8203(TestDevice testDevice) : base(testDevice) //[FailsOnIOS] //public void SelectionChangedShouldBeRaisedOnceWhenSelectionChanges() //{ - // RunningApp.WaitForElement("one"); - // RunningApp.Tap("one"); - // RunningApp.Tap("two"); - // RunningApp.WaitForElement("SelectionChanged has been raised 2 times."); + // App.WaitForElement("one"); + // App.Tap("one"); + // App.Tap("two"); + // App.WaitForElement("SelectionChanged has been raised 2 times."); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8279.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8279.cs index cc8eb9e0d994..2a08dcdfaa73 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8279.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8279.cs @@ -16,55 +16,55 @@ public Issue8279(TestDevice testDevice) : base(testDevice) //[Test] //public void ScrollWithNoItemButGroupTest() //{ - // RunningApp.WaitForElement(Reset); - // RunningApp.Tap(Reset); - // RunningApp.WaitForElement(ScrollWithNoItemButGroup); - // RunningApp.Tap(ScrollWithNoItemButGroup); + // App.WaitForElement(Reset); + // App.Tap(Reset); + // App.WaitForElement(ScrollWithNoItemButGroup); + // App.Tap(ScrollWithNoItemButGroup); // // This will fail if the list didn't scroll. If it did scroll, it will succeed - // RunningApp.WaitForElement(q => q.Marked("Header 3"), timeout: TimeSpan.FromSeconds(2)); + // App.WaitForElement(q => q.Marked("Header 3"), timeout: TimeSpan.FromSeconds(2)); //} //[Test] //public void ScrollWithItemButNoGroupTest() //{ - // RunningApp.WaitForElement(Reset); - // RunningApp.Tap(Reset); - // RunningApp.WaitForElement(ScrollWithItemButNoGroup); - // RunningApp.Tap(ScrollWithItemButNoGroup); + // App.WaitForElement(Reset); + // App.Tap(Reset); + // App.WaitForElement(ScrollWithItemButNoGroup); + // App.Tap(ScrollWithItemButNoGroup); // // This will fail if the list didn't scroll. If it did scroll, it will succeed - // RunningApp.WaitForElement(q => q.Marked("title 1"), timeout: TimeSpan.FromSeconds(2)); + // App.WaitForElement(q => q.Marked("title 1"), timeout: TimeSpan.FromSeconds(2)); //} //[Test] //public void ScrollWithItemWithGroupTest() //{ - // RunningApp.WaitForElement(Reset); - // RunningApp.Tap(Reset); - // RunningApp.WaitForElement(ScrollWithItemWithGroup); - // RunningApp.Tap(ScrollWithItemWithGroup); + // App.WaitForElement(Reset); + // App.Tap(Reset); + // App.WaitForElement(ScrollWithItemWithGroup); + // App.Tap(ScrollWithItemWithGroup); // // This will fail if the list didn't scroll. If it did scroll, it will succeed - // RunningApp.WaitForElement(q => q.Marked("Header 3"), timeout: TimeSpan.FromSeconds(2)); + // App.WaitForElement(q => q.Marked("Header 3"), timeout: TimeSpan.FromSeconds(2)); //} //[Test] //public void ScrollWithNoItemNoGroupTest() //{ - // RunningApp.WaitForElement(Reset); - // RunningApp.Tap(Reset); - // RunningApp.WaitForElement(ScrollWithNoItemNoGroup); - // RunningApp.Tap(ScrollWithNoItemNoGroup); + // App.WaitForElement(Reset); + // App.Tap(Reset); + // App.WaitForElement(ScrollWithNoItemNoGroup); + // App.Tap(ScrollWithNoItemNoGroup); // // This will pass if the list didn't scroll and remain on the same state - // RunningApp.WaitForElement(q => q.Marked("Header 1"), timeout: TimeSpan.FromSeconds(2)); + // App.WaitForElement(q => q.Marked("Header 1"), timeout: TimeSpan.FromSeconds(2)); //} //[Test] //public void ScrollWithNoItemEmptyGroupTest() //{ - // RunningApp.WaitForElement(Reset); - // RunningApp.Tap(Reset); - // RunningApp.WaitForElement(ScrollWithNoItemEmptyGroup); - // RunningApp.Tap(ScrollWithNoItemEmptyGroup); + // App.WaitForElement(Reset); + // App.Tap(Reset); + // App.WaitForElement(ScrollWithNoItemEmptyGroup); + // App.Tap(ScrollWithNoItemEmptyGroup); // // This will fail if the list didn't scroll. If it did scroll, it will succeed - // RunningApp.WaitForElement(q => q.Marked("Header 2"), timeout: TimeSpan.FromSeconds(2)); + // App.WaitForElement(q => q.Marked("Header 2"), timeout: TimeSpan.FromSeconds(2)); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8291.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8291.cs index 480f76d3f535..504ba6e06c27 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8291.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8291.cs @@ -17,22 +17,22 @@ public Issue8291(TestDevice testDevice) : base(testDevice) //[FailsOnAndroid] //public void ContextMenuShowsUpWhenPressAndHoldTextOnEditorAndEntryField() //{ - // RunningApp.TouchAndHold("PressEditor"); + // App.TouchAndHold("PressEditor"); // TestForPopup(); - // RunningApp.Tap("PressEntry"); - // RunningApp.TouchAndHold("PressEntry"); + // App.Tap("PressEntry"); + // App.TouchAndHold("PressEntry"); // TestForPopup(); //} //void TestForPopup() //{ - // var result = RunningApp.QueryUntilPresent(() => + // var result = App.QueryUntilPresent(() => // { - // return RunningApp.Query("Paste") - // .Union(RunningApp.Query("Share")) - // .Union(RunningApp.Query("Copy")) - // .Union(RunningApp.Query("Cut")) - // .Union(RunningApp.Query("Select All")) + // return App.Query("Paste") + // .Union(App.Query("Share")) + // .Union(App.Query("Copy")) + // .Union(App.Query("Cut")) + // .Union(App.Query("Select All")) // .ToArray(); // }); diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8308.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8308.cs index 3a7b97d0bd59..23f078ba701a 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8308.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8308.cs @@ -16,12 +16,12 @@ public Issue8308(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.CollectionView)] //public void NavigatingBackToCollectionViewShouldNotCrash() //{ - // RunningApp.WaitForElement("Instructions"); + // App.WaitForElement("Instructions"); // TapInFlyout("Page 2"); - // RunningApp.WaitForElement("Instructions2"); + // App.WaitForElement("Instructions2"); // TapInFlyout("Page 1"); - // RunningApp.WaitForElement("Instructions"); + // App.WaitForElement("Instructions"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8461.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8461.cs index 1591c5b56ec0..4f8db8da603e 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8461.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8461.cs @@ -17,19 +17,19 @@ public Issue8461(TestDevice testDevice) : base(testDevice) //[FailsOnIOS] //public void ShellSwipeToDismiss() //{ - // var pushButton = RunningApp.WaitForElement(ButtonId); + // var pushButton = App.WaitForElement(ButtonId); // Assert.AreEqual(1, pushButton.Length); - // RunningApp.Tap(ButtonId); + // App.Tap(ButtonId); - // var page2Layout = RunningApp.WaitForElement(LayoutId); + // var page2Layout = App.WaitForElement(LayoutId); // Assert.AreEqual(1, page2Layout.Length); // // Swipe in from left across 1/2 of screen width - // RunningApp.SwipeLeftToRight(LayoutId, 0.99, 500, false); + // App.SwipeLeftToRight(LayoutId, 0.99, 500, false); // // Swipe in from left across full screen width - // RunningApp.SwipeLeftToRight(0.99, 500); + // App.SwipeLeftToRight(0.99, 500); - // pushButton = RunningApp.WaitForElement(ButtonId); + // pushButton = App.WaitForElement(ButtonId); // Assert.AreEqual(1, pushButton.Length); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8526.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8526.cs index 7a66c03adb03..a13992485667 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8526.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8526.cs @@ -17,7 +17,7 @@ public Issue8526(TestDevice testDevice) : base(testDevice) //[FailsOnIOS] //public void DisplayPromptShouldWorkInPageLoad() //{ - // RunningApp.WaitForElement(Success); - // RunningApp.Tap("Cancel"); + // App.WaitForElement(Success); + // App.Tap("Cancel"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8741.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8741.cs index 08287fee611f..7c7597342a2d 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8741.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8741.cs @@ -17,32 +17,32 @@ public Issue8741(TestDevice testDevice) : base(testDevice) //[FailsOnAndroid] //public void Issue8741Test() //{ - // RunningApp.WaitForElement("Add"); - // RunningApp.Tap("Add"); + // App.WaitForElement("Add"); + // App.Tap("Add"); // var toolbarItemColorValue = GetToolbarItemColorValue(); // int disabledAlpha = GetAlphaValue(toolbarItemColorValue); - // Assert.AreEqual("0", RunningApp.WaitForElement("ClickCount")[0].ReadText()); + // Assert.AreEqual("0", App.WaitForElement("ClickCount")[0].ReadText()); - // RunningApp.Tap("ToggleEnabled"); - // RunningApp.Tap("Add"); + // App.Tap("ToggleEnabled"); + // App.Tap("Add"); // toolbarItemColorValue = GetToolbarItemColorValue(); // int enabledAlpha = GetAlphaValue(toolbarItemColorValue); // Assert.Less(disabledAlpha, enabledAlpha); - // Assert.AreEqual("1", RunningApp.WaitForElement("ClickCount")[0].ReadText()); + // Assert.AreEqual("1", App.WaitForElement("ClickCount")[0].ReadText()); - // RunningApp.Tap("ToggleEnabled"); - // RunningApp.Tap("Add"); + // App.Tap("ToggleEnabled"); + // App.Tap("Add"); - // Assert.AreEqual("1", RunningApp.WaitForElement("ClickCount")[0].ReadText()); + // Assert.AreEqual("1", App.WaitForElement("ClickCount")[0].ReadText()); //} //private object GetToolbarItemColorValue() //{ - // return RunningApp.Query(x => x.Text("Add").Invoke("getCurrentTextColor"))[0]; + // return App.Query(x => x.Text("Add").Invoke("getCurrentTextColor"))[0]; //} //private int GetAlphaValue(object toolbarItemColorValue) diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue889.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue889.cs index 19e7a92b34e7..dd478428365d 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue889.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue889.cs @@ -17,13 +17,13 @@ public Issue889(TestDevice testDevice) : base(testDevice) //[Description("Reproduce app crash - Issue #983")] //public void Issue899TestsAppCrashWhenSwitchingTabs() //{ - // RunningApp.Tap(q => q.Marked("Push new page")); - // RunningApp.WaitForElement(q => q.Marked("I have been pushed")); - // RunningApp.Screenshot("Push page"); - // RunningApp.Back(); - // RunningApp.Screenshot("Navigate back"); + // App.Tap(q => q.Marked("Push new page")); + // App.WaitForElement(q => q.Marked("I have been pushed")); + // App.Screenshot("Push page"); + // App.Back(); + // App.Screenshot("Navigate back"); - // RunningApp.Tap(q => q.Marked("Tab 2 Title")); - // RunningApp.Screenshot("Go to second tab"); + // App.Tap(q => q.Marked("Tab 2 Title")); + // App.Screenshot("Go to second tab"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue892.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue892.cs index a0888549b1d3..7fafcaaf9b23 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue892.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue892.cs @@ -20,42 +20,42 @@ public Issue892(TestDevice testDevice) : base(testDevice) //{ // NavigateToEndAndBack(); - // RunningApp.Tap(q => q.Marked("Present Flyout")); + // App.Tap(q => q.Marked("Present Flyout")); - // RunningApp.Tap(q => q.Marked("Page 5")); + // App.Tap(q => q.Marked("Page 5")); - // RunningApp.Tap(q => q.Marked("Close Flyout")); + // App.Tap(q => q.Marked("Close Flyout")); - // RunningApp.Screenshot("Select new detail navigation"); + // App.Screenshot("Select new detail navigation"); // NavigateToEndAndBack(); //} //void NavigateToEndAndBack() //{ - // RunningApp.WaitForElement(q => q.Button("Push next page")); // still required on iOS - // RunningApp.Tap(q => q.Marked("Push next page")); - // RunningApp.Screenshot("Pushed first page"); - - // RunningApp.WaitForElement(q => q.Button("Push next next page")); // still required on iOS - // RunningApp.Tap(q => q.Marked("Push next next page")); - // RunningApp.Screenshot("Pushed second page"); - - // RunningApp.WaitForElement(q => q.Marked("You are at the end of the line")); - // RunningApp.Screenshot("Pushed last page"); - - // RunningApp.Tap(q => q.Marked("Check back one")); - // RunningApp.WaitForElement(q => q.Marked("Pop one")); - // RunningApp.Back(); - // RunningApp.Screenshot("Navigate Back"); - - // RunningApp.Tap(q => q.Marked("Check back two")); - // RunningApp.WaitForElement(q => q.Marked("Pop two")); - // RunningApp.Back(); - // RunningApp.Screenshot("Navigate Back"); - - // RunningApp.Tap(q => q.Marked("Check back three")); - // RunningApp.WaitForElement(q => q.Marked("At root")); - // RunningApp.Screenshot("At root"); + // App.WaitForElement(q => q.Button("Push next page")); // still required on iOS + // App.Tap(q => q.Marked("Push next page")); + // App.Screenshot("Pushed first page"); + + // App.WaitForElement(q => q.Button("Push next next page")); // still required on iOS + // App.Tap(q => q.Marked("Push next next page")); + // App.Screenshot("Pushed second page"); + + // App.WaitForElement(q => q.Marked("You are at the end of the line")); + // App.Screenshot("Pushed last page"); + + // App.Tap(q => q.Marked("Check back one")); + // App.WaitForElement(q => q.Marked("Pop one")); + // App.Back(); + // App.Screenshot("Navigate Back"); + + // App.Tap(q => q.Marked("Check back two")); + // App.WaitForElement(q => q.Marked("Pop two")); + // App.Back(); + // App.Screenshot("Navigate Back"); + + // App.Tap(q => q.Marked("Check back three")); + // App.WaitForElement(q => q.Marked("At root")); + // App.Screenshot("At root"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8964.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8964.cs index 0dde8e3c14a9..8114fed6a8e1 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8964.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue8964.cs @@ -18,28 +18,28 @@ public Issue8964(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void Issue8964Test() // { -// RunningApp.WaitForElement(q => q.Marked($"Item Position - 4")); -// var rect = RunningApp.Query("carouseView")[0].Rect; +// App.WaitForElement(q => q.Marked($"Item Position - 4")); +// var rect = App.Query("carouseView")[0].Rect; // SwipePreviousItem(rect); -// RunningApp.WaitForElement(q => q.Marked($"Item Position - 4")); +// App.WaitForElement(q => q.Marked($"Item Position - 4")); // SwipePreviousItem(rect); -// RunningApp.WaitForElement(q => q.Marked($"Item Position - 4")); +// App.WaitForElement(q => q.Marked($"Item Position - 4")); // SwipePreviousItem(rect); -// RunningApp.WaitForElement(q => q.Marked($"Item Position - 4")); +// App.WaitForElement(q => q.Marked($"Item Position - 4")); // SwipePreviousItem(rect); -// RunningApp.WaitForElement(q => q.Marked($"Item Position - 4")); +// App.WaitForElement(q => q.Marked($"Item Position - 4")); // SwipePreviousItem(rect); -// RunningApp.WaitForElement(q => q.Marked($"Item Position - 4")); -// RunningApp.WaitForElement(q => q.Marked($"Counter 6")); +// App.WaitForElement(q => q.Marked($"Item Position - 4")); +// App.WaitForElement(q => q.Marked($"Counter 6")); // } // void SwipePreviousItem(Xamarin.UITest.Queries.AppRect rect) // { //#if ANDROID -// RunningApp.DragCoordinates(rect.X + 10, rect.Y, rect.X + rect.Width - 10, rect.Y); +// App.DragCoordinates(rect.X + 10, rect.Y, rect.X + rect.Width - 10, rect.Y); //#else -// RunningApp.SwipeLeftToRight("carouseView"); +// App.SwipeLeftToRight("carouseView"); //#endif // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue9088.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue9088.cs index 37a4e168707a..bfa6ce49fd84 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue9088.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue9088.cs @@ -16,68 +16,68 @@ public Issue9088(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.Shell)] //public void Issue9088SwipeViewConfictWithShellMenuSwipeInFromLeft() //{ - // RunningApp.WaitForElement(x => x.Marked(SwipeViewId)); + // App.WaitForElement(x => x.Marked(SwipeViewId)); - // RunningApp.SwipeRightToLeft(SwipeViewId); - // RunningApp.WaitFor( - // () => RunningApp.Query(x => x.Marked(LeftCountLabelId)).FirstOrDefault()?.Text == "1", + // App.SwipeRightToLeft(SwipeViewId); + // App.WaitFor( + // () => App.Query(x => x.Marked(LeftCountLabelId)).FirstOrDefault()?.Text == "1", // "Swipe left failed at 1. swipe with speed 500"); - // RunningApp.SwipeRightToLeft(SwipeViewId, 0.67, 250); - // RunningApp.WaitFor( - // () => RunningApp.Query(x => x.Marked(LeftCountLabelId)).FirstOrDefault()?.Text == "2", + // App.SwipeRightToLeft(SwipeViewId, 0.67, 250); + // App.WaitFor( + // () => App.Query(x => x.Marked(LeftCountLabelId)).FirstOrDefault()?.Text == "2", // "Swipe left failed at 2. swipe with speed 250"); - // RunningApp.SwipeRightToLeft(SwipeViewId, 0.67, 100); - // RunningApp.WaitFor( - // () => RunningApp.Query(x => x.Marked(LeftCountLabelId)).FirstOrDefault()?.Text == "3", + // App.SwipeRightToLeft(SwipeViewId, 0.67, 100); + // App.WaitFor( + // () => App.Query(x => x.Marked(LeftCountLabelId)).FirstOrDefault()?.Text == "3", // "Swipe left failed at 3. swipe with speed 100"); - // RunningApp.SwipeLeftToRight(SwipeViewId, 0.67, 100); - // RunningApp.WaitFor( - // () => RunningApp.Query(x => x.Marked(RightCountLabelId)).FirstOrDefault()?.Text == "1", + // App.SwipeLeftToRight(SwipeViewId, 0.67, 100); + // App.WaitFor( + // () => App.Query(x => x.Marked(RightCountLabelId)).FirstOrDefault()?.Text == "1", // "Swipe right failed at 1. swipe with speed 100"); - // RunningApp.SwipeLeftToRight(SwipeViewId, 0.67, 250); - // RunningApp.WaitFor( - // () => RunningApp.Query(x => x.Marked(RightCountLabelId)).FirstOrDefault()?.Text == "2", + // App.SwipeLeftToRight(SwipeViewId, 0.67, 250); + // App.WaitFor( + // () => App.Query(x => x.Marked(RightCountLabelId)).FirstOrDefault()?.Text == "2", // "Swipe right failed at 2. swipe with speed 250"); - // RunningApp.SwipeLeftToRight(SwipeViewId, 0.67, 500); - // RunningApp.WaitFor( - // () => RunningApp.Query(x => x.Marked(RightCountLabelId)).FirstOrDefault()?.Text == "3", + // App.SwipeLeftToRight(SwipeViewId, 0.67, 500); + // App.WaitFor( + // () => App.Query(x => x.Marked(RightCountLabelId)).FirstOrDefault()?.Text == "3", // "Swipe right failed at 3. swipe with speed 500"); - // RunningApp.SwipeRightToLeft(SwipeViewId); - // RunningApp.WaitFor( - // () => RunningApp.Query(x => x.Marked(LeftCountLabelId)).FirstOrDefault()?.Text == "4", + // App.SwipeRightToLeft(SwipeViewId); + // App.WaitFor( + // () => App.Query(x => x.Marked(LeftCountLabelId)).FirstOrDefault()?.Text == "4", // "Swipe left failed at 4. swipe with speed 500"); - // RunningApp.SwipeLeftToRight(SwipeViewId); - // RunningApp.WaitFor( - // () => RunningApp.Query(x => x.Marked(RightCountLabelId)).FirstOrDefault()?.Text == "4", + // App.SwipeLeftToRight(SwipeViewId); + // App.WaitFor( + // () => App.Query(x => x.Marked(RightCountLabelId)).FirstOrDefault()?.Text == "4", // "Swipe right failed at 4. swipe with speed 500"); - // RunningApp.SwipeRightToLeft(SwipeViewId); - // RunningApp.WaitFor( - // () => RunningApp.Query(x => x.Marked(LeftCountLabelId)).FirstOrDefault()?.Text == "5", + // App.SwipeRightToLeft(SwipeViewId); + // App.WaitFor( + // () => App.Query(x => x.Marked(LeftCountLabelId)).FirstOrDefault()?.Text == "5", // "Swipe left failed at 4. swipe with speed 500"); - // RunningApp.SwipeLeftToRight(SwipeViewId); - // RunningApp.WaitFor( - // () => RunningApp.Query(x => x.Marked(RightCountLabelId)).FirstOrDefault()?.Text == "5", + // App.SwipeLeftToRight(SwipeViewId); + // App.WaitFor( + // () => App.Query(x => x.Marked(RightCountLabelId)).FirstOrDefault()?.Text == "5", // "Swipe right failed at 4. swipe with speed 500"); - // RunningApp.SwipeLeftToRight(SwipeViewId); - // RunningApp.WaitFor( - // () => RunningApp.Query(x => x.Marked(RightCountLabelId)).FirstOrDefault()?.Text == "6", + // App.SwipeLeftToRight(SwipeViewId); + // App.WaitFor( + // () => App.Query(x => x.Marked(RightCountLabelId)).FirstOrDefault()?.Text == "6", // "Swipe right failed at 4. swipe with speed 500"); - // RunningApp.SwipeRightToLeft(SwipeViewId); - // RunningApp.WaitFor( - // () => RunningApp.Query(x => x.Marked(LeftCountLabelId)).FirstOrDefault()?.Text == "6", + // App.SwipeRightToLeft(SwipeViewId); + // App.WaitFor( + // () => App.Query(x => x.Marked(LeftCountLabelId)).FirstOrDefault()?.Text == "6", // "Swipe left failed at 4. swipe with speed 500"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue9360.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue9360.cs index 906db86ee392..a4fb8d9e817b 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue9360.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue9360.cs @@ -17,6 +17,6 @@ public Issue9360(TestDevice testDevice) : base(testDevice) //[FailsOnAndroid] //public void NavigationPageRendererMenuItemIconOverrideWorks() //{ - // RunningApp.WaitForElement("HEART"); + // App.WaitForElement("HEART"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue9440.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue9440.cs index 8fc4a23af215..0d5b02fc901c 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue9440.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue9440.cs @@ -17,7 +17,7 @@ public Issue9440(TestDevice testDevice) : base(testDevice) //public void GitHubIssue9440() //{ // DoubleTapInFlyout(Test1); - // RunningApp.WaitForElement(q => q.Marked(Test1)); + // App.WaitForElement(q => q.Marked(Test1)); // Assert.AreEqual(false, FlyoutIsPresented); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue9686.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue9686.cs index 835fc0a18fa0..afae288be1fb 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue9686.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue9686.cs @@ -18,10 +18,10 @@ public Issue9686(TestDevice testDevice) : base(testDevice) //[FailsOnIOS] //public void AddRemoveEmptyGroupsShouldNotCrashOnInsert() //{ - // RunningApp.WaitForElement(Run); - // RunningApp.Tap(Run); - // RunningApp.WaitForElement("Item 1"); - // RunningApp.Tap(Run); - // RunningApp.WaitForElement(Success); + // App.WaitForElement(Run); + // App.Tap(Run); + // App.WaitForElement("Item 1"); + // App.Tap(Run); + // App.WaitForElement(Success); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue9711.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue9711.cs index 7ded242b0e12..7f25281eed3c 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue9711.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue9711.cs @@ -22,13 +22,13 @@ public Issue9711(TestDevice testDevice) : base(testDevice) // // crashes, one of the RunningApp queries will throw, failing the test. // Assert.DoesNotThrowAsync(async () => // { - // RunningApp.Tap(x => x.Marked("Group2")); + // App.Tap(x => x.Marked("Group2")); // await Task.Delay(3000); - // RunningApp.Tap(x => x.Marked("Group1")); + // App.Tap(x => x.Marked("Group1")); // await Task.Delay(3000); - // RunningApp.Tap(x => x.Marked("Group0")); + // App.Tap(x => x.Marked("Group0")); // await Task.Delay(3000); - // RunningApp.Query(x => x.Marked("9711TestListView")); + // App.Query(x => x.Marked("9711TestListView")); // }); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue973.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue973.cs index 661608e57ca5..608c93f1e25d 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue973.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue973.cs @@ -18,25 +18,25 @@ public Issue973(TestDevice testDevice) : base(testDevice) //[Description("Test tab reset when swapping out detail")] //public void Issue973TestsTabResetAfterDetailSwap() //{ - // RunningApp.WaitForElement(q => q.Marked("Initial Page Left aligned")); - // RunningApp.WaitForElement(q => q.Marked("Tab 1")); + // App.WaitForElement(q => q.Marked("Initial Page Left aligned")); + // App.WaitForElement(q => q.Marked("Tab 1")); - // RunningApp.Tap(q => q.Marked("Tab 2")); - // RunningApp.WaitForElement(q => q.Marked("Initial Page Right aligned")); - // RunningApp.Screenshot("Tab 2 showing"); + // App.Tap(q => q.Marked("Tab 2")); + // App.WaitForElement(q => q.Marked("Initial Page Right aligned")); + // App.Screenshot("Tab 2 showing"); - // RunningApp.Tap(q => q.Marked("Present Flyout")); + // App.Tap(q => q.Marked("Present Flyout")); - // RunningApp.Tap(q => q.Marked("Page 4")); - // RunningApp.Screenshot("Change detail page"); + // App.Tap(q => q.Marked("Page 4")); + // App.Screenshot("Change detail page"); - // RunningApp.Tap(q => q.Marked("Close Flyout")); + // App.Tap(q => q.Marked("Close Flyout")); - // RunningApp.WaitForElement(q => q.Marked("Page 4 Left aligned")); - // RunningApp.Screenshot("Tab 1 Showing and tab 1 should be selected"); + // App.WaitForElement(q => q.Marked("Page 4 Left aligned")); + // App.Screenshot("Tab 1 Showing and tab 1 should be selected"); - // RunningApp.Tap(q => q.Marked("Tab 2")); - // RunningApp.WaitForElement(q => q.Marked("Page 4 Right aligned")); - // RunningApp.Screenshot("Tab 2 showing"); + // App.Tap(q => q.Marked("Tab 2")); + // App.WaitForElement(q => q.Marked("Page 4 Right aligned")); + // App.Screenshot("Tab 2 showing"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/LabelTextType.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/LabelTextType.cs index 4c6a6eb5a839..85195b9ea646 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/LabelTextType.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/LabelTextType.cs @@ -17,14 +17,14 @@ public LabelTextType(TestDevice testDevice) : base(testDevice) //[FailsOnIOS] //public void LabelToggleHtmlAndPlainTextTest() //{ - // RunningApp.WaitForElement("TextTypeLabel"); - // RunningApp.Screenshot("I see plain text"); + // App.WaitForElement("TextTypeLabel"); + // App.Screenshot("I see plain text"); - // Assert.IsTrue(RunningApp.Query("TextTypeLabel").FirstOrDefault()?.Text == "

Hello World!

"); + // Assert.IsTrue(App.Query("TextTypeLabel").FirstOrDefault()?.Text == "

Hello World!

"); - // RunningApp.Tap("ToggleTextTypeButton"); - // RunningApp.Screenshot("I see HTML text"); + // App.Tap("ToggleTextTypeButton"); + // App.Screenshot("I see HTML text"); - // Assert.IsFalse(RunningApp.Query("TextTypeLabel").FirstOrDefault()?.Text.Contains("

") ?? true); + // Assert.IsFalse(App.Query("TextTypeLabel").FirstOrDefault()?.Text.Contains("

") ?? true); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ListViewNRE.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ListViewNRE.cs index ea72d7230523..e23d2f7de869 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ListViewNRE.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ListViewNRE.cs @@ -17,8 +17,8 @@ public ListViewNRE(TestDevice testDevice) : base(testDevice) //[FailsOnIOS] //public void ListViewNRETest() //{ - // RunningApp.WaitForElement(q => q.Marked("1")); - // RunningApp.Tap(q => q.Marked("1")); - // RunningApp.WaitForElement(q => q.Marked(Success)); + // App.WaitForElement(q => q.Marked("1")); + // App.Tap(q => q.Marked("1")); + // App.WaitForElement(q => q.Marked(Success)); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ListViewViewCellBinding.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ListViewViewCellBinding.cs index d57ed32df998..79ce6c139565 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ListViewViewCellBinding.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ListViewViewCellBinding.cs @@ -17,35 +17,35 @@ public ListViewViewCellBinding(TestDevice testDevice) : base(testDevice) //[FailsOnIOS] //public void ListViewViewCellBindingTestsAllElementsPresent() //{ - // RunningApp.WaitForElement(q => q.Marked("Remove")); - // RunningApp.WaitForElement(q => q.Marked("Add")); - // RunningApp.WaitForElement(q => q.Marked("1")); - // RunningApp.WaitForElement(q => q.Marked("$100.00")); - // RunningApp.WaitForElement(q => q.Marked("2")); - // RunningApp.WaitForElement(q => q.Marked("$200.00")); - // RunningApp.WaitForElement(q => q.Marked("3")); - // RunningApp.WaitForElement(q => q.Marked("$300.00")); + // App.WaitForElement(q => q.Marked("Remove")); + // App.WaitForElement(q => q.Marked("Add")); + // App.WaitForElement(q => q.Marked("1")); + // App.WaitForElement(q => q.Marked("$100.00")); + // App.WaitForElement(q => q.Marked("2")); + // App.WaitForElement(q => q.Marked("$200.00")); + // App.WaitForElement(q => q.Marked("3")); + // App.WaitForElement(q => q.Marked("$300.00")); - // RunningApp.Screenshot("All elements exist"); + // App.Screenshot("All elements exist"); //} //[Test] //[FailsOnIOS] //public void ListViewViewCellBindingTestsAddListItem() //{ - // RunningApp.Tap(q => q.Button("Add")); - // RunningApp.WaitForElement(q => q.Marked("4")); - // RunningApp.WaitForElement(q => q.Marked("$400.00")); - // RunningApp.Screenshot("List item added"); + // App.Tap(q => q.Button("Add")); + // App.WaitForElement(q => q.Marked("4")); + // App.WaitForElement(q => q.Marked("$400.00")); + // App.Screenshot("List item added"); //} //[Test] //[FailsOnIOS] //public void ListViewViewCellBindingTestsRemoveListItem() //{ - // RunningApp.Tap(q => q.Button("Remove")); - // RunningApp.WaitForNoElement(q => q.Marked("1")); - // RunningApp.WaitForNoElement(q => q.Marked("$100.00")); - // RunningApp.Screenshot("List item removed"); + // App.Tap(q => q.Button("Remove")); + // App.WaitForNoElement(q => q.Marked("1")); + // App.WaitForNoElement(q => q.Marked("$100.00")); + // App.Screenshot("List item removed"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/MapsModalCrash.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/MapsModalCrash.cs index 99725e578887..af04d5f8a9ec 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/MapsModalCrash.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/MapsModalCrash.cs @@ -18,10 +18,10 @@ public MapsModalCrash(TestDevice testDevice) : base(testDevice) //[FailsOnIOS] //public void CanDisplayModalOverMap() //{ - // RunningApp.WaitForElement(StartTest); - // RunningApp.Tap(StartTest); - // RunningApp.WaitForElement(DisplayModal); - // RunningApp.Tap(DisplayModal); - // RunningApp.WaitForElement(Success); + // App.WaitForElement(StartTest); + // App.Tap(StartTest); + // App.WaitForElement(DisplayModal); + // App.Tap(DisplayModal); + // App.WaitForElement(Success); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/NestedCollectionView.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/NestedCollectionView.cs index 748b5561c7c4..8ed8738f49aa 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/NestedCollectionView.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/NestedCollectionView.cs @@ -18,6 +18,6 @@ public NestedCollectionView(TestDevice testDevice) : base(testDevice) //public void NestedCollectionViewsShouldNotCrash() //{ // // If this page loaded and didn't crash, we're good. - // RunningApp.WaitForElement("Success"); + // App.WaitForElement("Success"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/RadioButtonTemplateFromStyle.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/RadioButtonTemplateFromStyle.cs index 5968a86e0686..25a7c3b779ed 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/RadioButtonTemplateFromStyle.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/RadioButtonTemplateFromStyle.cs @@ -17,8 +17,8 @@ public RadioButtonTemplateFromStyle(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.RadioButton)] //public void ContentRenderers() //{ - // RunningApp.WaitForElement("A"); - // RunningApp.WaitForElement("B"); - // RunningApp.WaitForElement("C"); + // App.WaitForElement("A"); + // App.WaitForElement("B"); + // App.WaitForElement("C"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/RestartAppTest.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/RestartAppTest.cs index 143db61702f4..255702685d1e 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/RestartAppTest.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/RestartAppTest.cs @@ -17,10 +17,10 @@ public RestartAppTest(TestDevice testDevice) : base(testDevice) //[FailsOnIOS] //public void ForcingRestartDoesNotCauseCrash() //{ - // RunningApp.WaitForElement(RestartButton); - // RunningApp.Tap(RestartButton); + // App.WaitForElement(RestartButton); + // App.Tap(RestartButton); // // If the app hasn't crashed, this test has passed - // RunningApp.WaitForElement(Success); + // App.WaitForElement(Success); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ScrollToGroup.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ScrollToGroup.cs index 8f318a24f958..b2689f077e53 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ScrollToGroup.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ScrollToGroup.cs @@ -18,55 +18,55 @@ public ScrollToGroup(TestDevice testDevice) : base(testDevice) //[FailsOnIOS] //public void CanScrollToGroupAndItemIndex() //{ - // RunningApp.WaitForElement("GroupIndexEntry"); - // RunningApp.Tap("GroupIndexEntry"); - // RunningApp.ClearText(); - // RunningApp.EnterText("5"); + // App.WaitForElement("GroupIndexEntry"); + // App.Tap("GroupIndexEntry"); + // App.ClearText(); + // App.EnterText("5"); - // RunningApp.Tap("ItemIndexEntry"); - // RunningApp.ClearText(); - // RunningApp.EnterText("1"); + // App.Tap("ItemIndexEntry"); + // App.ClearText(); + // App.EnterText("1"); - // RunningApp.Tap("GoButton"); + // App.Tap("GoButton"); // // Should scroll enough to display this item - // RunningApp.WaitForElement("Squirrel Girl"); + // App.WaitForElement("Squirrel Girl"); //} //[Test] //public void InvalidScrollToIndexShouldNotCrash() //{ - // RunningApp.WaitForElement("GroupIndexEntry"); - // RunningApp.Tap("GroupIndexEntry"); - // RunningApp.ClearText(); - // RunningApp.EnterText("55"); + // App.WaitForElement("GroupIndexEntry"); + // App.Tap("GroupIndexEntry"); + // App.ClearText(); + // App.EnterText("55"); - // RunningApp.Tap("ItemIndexEntry"); - // RunningApp.ClearText(); - // RunningApp.EnterText("1"); + // App.Tap("ItemIndexEntry"); + // App.ClearText(); + // App.EnterText("1"); - // RunningApp.Tap("GoButton"); + // App.Tap("GoButton"); // // Should scroll enough to display this item - // RunningApp.WaitForElement("Avengers"); + // App.WaitForElement("Avengers"); //} //[Test] //[Compatibility.UITests.FailsOnIOS] //public void CanScrollToGroupAndItem() //{ - // RunningApp.WaitForElement("GroupNameEntry"); - // RunningApp.Tap("GroupNameEntry"); - // RunningApp.ClearText(); - // RunningApp.EnterText("Heroes for Hire"); + // App.WaitForElement("GroupNameEntry"); + // App.Tap("GroupNameEntry"); + // App.ClearText(); + // App.EnterText("Heroes for Hire"); - // RunningApp.Tap("ItemNameEntry"); - // RunningApp.ClearText(); - // RunningApp.EnterText("Misty Knight"); + // App.Tap("ItemNameEntry"); + // App.ClearText(); + // App.EnterText("Misty Knight"); - // RunningApp.Tap("GoItemButton"); + // App.Tap("GoItemButton"); // // Should scroll enough to display this item - // RunningApp.WaitForElement("Luke Cage"); + // App.WaitForElement("Luke Cage"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellBackButtonBehavior.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellBackButtonBehavior.cs index 03b54da7566c..08d154e1c611 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellBackButtonBehavior.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellBackButtonBehavior.cs @@ -18,28 +18,28 @@ public ShellBackButtonBehavior(TestDevice testDevice) : base(testDevice) // [FailsOnAndroid] // public void CommandTest() // { -// RunningApp.Tap(ToggleCommandId); -// RunningApp.EnterText(EntryCommandParameter, "parameter"); +// App.Tap(ToggleCommandId); +// App.EnterText(EntryCommandParameter, "parameter"); // ShowFlyout(); // // API 19 workaround -// var commandResult = RunningApp.QueryUntilPresent(() => +// var commandResult = App.QueryUntilPresent(() => // { // ShowFlyout(); -// if (RunningApp.WaitForElement(CommandResultId)[0].ReadText() == "parameter") -// return RunningApp.WaitForElement(CommandResultId); +// if (App.WaitForElement(CommandResultId)[0].ReadText() == "parameter") +// return App.WaitForElement(CommandResultId); // return null; // })?.FirstOrDefault()?.ReadText(); // Assert.AreEqual("parameter", commandResult); -// RunningApp.EnterText(EntryCommandParameter, "canexecutetest"); -// RunningApp.Tap(ToggleCommandCanExecuteId); +// App.EnterText(EntryCommandParameter, "canexecutetest"); +// App.Tap(ToggleCommandCanExecuteId); -// commandResult = RunningApp.QueryUntilPresent(() => +// commandResult = App.QueryUntilPresent(() => // { -// if (RunningApp.WaitForElement(CommandResultId)[0].ReadText() == "parameter") -// return RunningApp.WaitForElement(CommandResultId); +// if (App.WaitForElement(CommandResultId)[0].ReadText() == "parameter") +// return App.WaitForElement(CommandResultId); // return null; // })?.FirstOrDefault()?.ReadText(); @@ -50,22 +50,22 @@ public ShellBackButtonBehavior(TestDevice testDevice) : base(testDevice) // [Test] // public void CommandWorksWhenItsTheOnlyThingSet() // { -// RunningApp.Tap(PushPageId); -// RunningApp.Tap(ToggleCommandId); -// RunningApp.EnterText(EntryCommandParameter, "parameter"); +// App.Tap(PushPageId); +// App.Tap(ToggleCommandId); +// App.EnterText(EntryCommandParameter, "parameter"); // // API 19 workaround -// var commandResult = RunningApp.QueryUntilPresent(() => +// var commandResult = App.QueryUntilPresent(() => // { //#if __ANDROID__ // TapBackArrow(); //#else -// RunningApp.Tap("Page 0"); +// App.Tap("Page 0"); //#endif -// if (RunningApp.WaitForElement(CommandResultId)[0].ReadText() == "parameter") -// return RunningApp.WaitForElement(CommandResultId); +// if (App.WaitForElement(CommandResultId)[0].ReadText() == "parameter") +// return App.WaitForElement(CommandResultId); // return null; // })?.FirstOrDefault()?.ReadText(); @@ -77,62 +77,62 @@ public ShellBackButtonBehavior(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void BackButtonSetToTextStillNavigatesBack() // { -// RunningApp.Tap(PushPageId); -// RunningApp.Tap(ToggleTextId); -// RunningApp.Tap("T3xt"); -// RunningApp.WaitForNoElement(FlyoutOpen); -// RunningApp.WaitForElement("Page 0"); +// App.Tap(PushPageId); +// App.Tap(ToggleTextId); +// App.Tap("T3xt"); +// App.WaitForNoElement(FlyoutOpen); +// App.WaitForElement("Page 0"); // } // [Test] // [FailsOnIOS] // public void BackButtonSetToTextStillOpensFlyout() // { -// RunningApp.Tap(ToggleTextId); +// App.Tap(ToggleTextId); -// RunningApp.Tap("T3xt"); -// RunningApp.WaitForElement(FlyoutOpen); +// App.Tap("T3xt"); +// App.WaitForElement(FlyoutOpen); // } //#if __ANDROID__ // [Test] // public void FlyoutDisabledDoesntOpenFlyoutWhenSetToText() // { -// RunningApp.WaitForElement("ToggleFlyoutBehavior"); -// RunningApp.Tap("ToggleFlyoutBehavior"); -// RunningApp.Tap("ToggleFlyoutBehavior"); -// RunningApp.WaitForElement("Flyout Behavior: Disabled"); -// RunningApp.Tap(ToggleTextId); -// RunningApp.Tap("T3xt"); -// RunningApp.WaitForNoElement(FlyoutOpen); +// App.WaitForElement("ToggleFlyoutBehavior"); +// App.Tap("ToggleFlyoutBehavior"); +// App.Tap("ToggleFlyoutBehavior"); +// App.WaitForElement("Flyout Behavior: Disabled"); +// App.Tap(ToggleTextId); +// App.Tap("T3xt"); +// App.WaitForNoElement(FlyoutOpen); // } //#else // [Test] // [FailsOnIOS] // public void FlyoutDisabledDoesntOpenFlyoutWhenSetToText() // { -// RunningApp.WaitForElement("ToggleFlyoutBehavior"); -// RunningApp.Tap(ToggleTextId); -// RunningApp.WaitForElement("T3xt"); -// RunningApp.Tap("ToggleFlyoutBehavior"); -// RunningApp.WaitForElement("T3xt"); -// RunningApp.Tap("ToggleFlyoutBehavior"); -// RunningApp.WaitForElement("Flyout Behavior: Disabled"); -// RunningApp.Tap("T3xt"); -// RunningApp.WaitForNoElement(FlyoutOpen); +// App.WaitForElement("ToggleFlyoutBehavior"); +// App.Tap(ToggleTextId); +// App.WaitForElement("T3xt"); +// App.Tap("ToggleFlyoutBehavior"); +// App.WaitForElement("T3xt"); +// App.Tap("ToggleFlyoutBehavior"); +// App.WaitForElement("Flyout Behavior: Disabled"); +// App.Tap("T3xt"); +// App.WaitForNoElement(FlyoutOpen); // } //#endif // [Test] // public void AutomationIdOnIconOverride() // { -// RunningApp.WaitForElement("ToggleFlyoutBehavior"); -// RunningApp.Tap(ToggleIconId); -// RunningApp.WaitForElement("CoffeeAutomation"); -// RunningApp.Tap("ToggleFlyoutBehavior"); -// RunningApp.WaitForElement("CoffeeAutomation"); -// RunningApp.Tap("ToggleFlyoutBehavior"); -// RunningApp.WaitForElement("Flyout Behavior: Disabled"); -// RunningApp.Tap("CoffeeAutomation"); -// RunningApp.WaitForNoElement(FlyoutOpen); +// App.WaitForElement("ToggleFlyoutBehavior"); +// App.Tap(ToggleIconId); +// App.WaitForElement("CoffeeAutomation"); +// App.Tap("ToggleFlyoutBehavior"); +// App.WaitForElement("CoffeeAutomation"); +// App.Tap("ToggleFlyoutBehavior"); +// App.WaitForElement("Flyout Behavior: Disabled"); +// App.Tap("CoffeeAutomation"); +// App.WaitForNoElement(FlyoutOpen); // } } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellFlyoutContent.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellFlyoutContent.cs index abd8b5d6efd3..bbd0e08395b3 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellFlyoutContent.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellFlyoutContent.cs @@ -16,12 +16,12 @@ public ShellFlyoutContent(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.Shell)] //public void FlyoutContentTests() //{ - // RunningApp.WaitForElement("PageLoaded"); + // App.WaitForElement("PageLoaded"); // TapInFlyout("Flyout Item"); - // RunningApp.Tap("ToggleContent"); + // App.Tap("ToggleContent"); // TapInFlyout("ContentView"); // TapInFlyout("Flyout Item"); - // RunningApp.Tap("ToggleFlyoutContentTemplate"); + // App.Tap("ToggleFlyoutContentTemplate"); // TapInFlyout("ContentView"); // TapInFlyout("Flyout Item"); //} diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellFlyoutContentOffset.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellFlyoutContentOffset.cs index ab932986cc27..25e6b04ba91b 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellFlyoutContentOffset.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellFlyoutContentOffset.cs @@ -18,7 +18,7 @@ public ShellFlyoutContentOffset(TestDevice testDevice) : base(testDevice) //[FailsOnIOS] //public void FlyoutContentOffsetsCorrectly() //{ - // RunningApp.WaitForElement("PageLoaded"); + // App.WaitForElement("PageLoaded"); // var flyoutLoc = GetLocationAndRotateToNextContent("Item 1"); // var labelLoc = GetLocationAndRotateToNextContent("LabelContent"); // var scrollViewLoc = GetLocationAndRotateToNextContent("ScrollViewContent"); @@ -31,7 +31,7 @@ public ShellFlyoutContentOffset(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.Shell)] //public void FlyoutContentOffsetsCorrectlyWithHeader() //{ - // RunningApp.Tap("ToggleHeader"); + // App.Tap("ToggleHeader"); // GetLocationAndRotateToNextContent("Item 1"); // var labelLoc = GetLocationAndRotateToNextContent("LabelContent"); // var scrollViewLoc = GetLocationAndRotateToNextContent("ScrollViewContent"); @@ -42,9 +42,9 @@ public ShellFlyoutContentOffset(TestDevice testDevice) : base(testDevice) //float GetLocationAndRotateToNextContent(string automationId) //{ // ShowFlyout(); - // var y = RunningApp.WaitForElement(automationId)[0].Rect.Y; - // RunningApp.Tap("CloseFlyout"); - // RunningApp.Tap("ToggleFlyoutContent"); + // var y = App.WaitForElement(automationId)[0].Rect.Y; + // App.Tap("CloseFlyout"); + // App.Tap("ToggleFlyoutContent"); // return y; //} diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellFlyoutContentWithZeroMargin.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellFlyoutContentWithZeroMargin.cs index c2a8e1feafc9..a8efaad7465b 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellFlyoutContentWithZeroMargin.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellFlyoutContentWithZeroMargin.cs @@ -16,10 +16,10 @@ public ShellFlyoutContentWithZeroMargin(TestDevice testDevice) : base(testDevice //[Test] //public void FlyoutHeaderBehaviorFixed() //{ - // RunningApp.Tap(nameof(FlyoutHeaderBehavior.Fixed)); + // App.Tap(nameof(FlyoutHeaderBehavior.Fixed)); // this.ShowFlyout(); // float startingHeight = GetFlyoutHeight(); - // RunningApp.ScrollDown("Item 4", ScrollStrategy.Gesture); + // App.ScrollDown("Item 4", ScrollStrategy.Gesture); // float endHeight = GetFlyoutHeight(); // Assert.AreEqual(startingHeight, endHeight); @@ -30,10 +30,10 @@ public ShellFlyoutContentWithZeroMargin(TestDevice testDevice) : base(testDevice //[Test] //public void FlyoutHeaderBehaviorCollapseOnScroll() //{ - // RunningApp.Tap(nameof(FlyoutHeaderBehavior.CollapseOnScroll)); + // App.Tap(nameof(FlyoutHeaderBehavior.CollapseOnScroll)); // this.ShowFlyout(); // float startingHeight = GetFlyoutHeight(); - // RunningApp.ScrollDown("Item 4", ScrollStrategy.Gesture); + // App.ScrollDown("Item 4", ScrollStrategy.Gesture); // float endHeight = GetFlyoutHeight(); // Assert.Greater(startingHeight, endHeight); @@ -43,29 +43,29 @@ public ShellFlyoutContentWithZeroMargin(TestDevice testDevice) : base(testDevice //[FailsOnIOS] //public void FlyoutHeaderBehaviorScroll() //{ - // RunningApp.Tap(nameof(FlyoutHeaderBehavior.Scroll)); + // App.Tap(nameof(FlyoutHeaderBehavior.Scroll)); // this.ShowFlyout(); // var startingY = GetFlyoutY(); - // RunningApp.ScrollDown("Item 5", ScrollStrategy.Gesture); + // App.ScrollDown("Item 5", ScrollStrategy.Gesture); // var nextY = GetFlyoutY(); // while (nextY != null) // { // Assert.Greater(startingY.Value, nextY.Value); // startingY = nextY; - // RunningApp.ScrollDown("Item 5", ScrollStrategy.Gesture); + // App.ScrollDown("Item 5", ScrollStrategy.Gesture); // nextY = GetFlyoutY(); // } //} //float GetFlyoutHeight() => - // RunningApp.WaitForElement("FlyoutHeaderId")[0].Rect.Height; + // App.WaitForElement("FlyoutHeaderId")[0].Rect.Height; //float? GetFlyoutY() //{ // var flyoutHeader = - // RunningApp.Query("FlyoutHeaderId"); + // App.Query("FlyoutHeaderId"); // if (flyoutHeader.Length == 0) // return null; diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellFlyoutHeaderBehavior.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellFlyoutHeaderBehavior.cs index 43fa4711fc80..0fd03ec51156 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellFlyoutHeaderBehavior.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellFlyoutHeaderBehavior.cs @@ -16,12 +16,12 @@ public ShellFlyoutHeaderBehavior(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.Shell)] //public void FlyoutContentTests() //{ - // RunningApp.WaitForElement("PageLoaded"); + // App.WaitForElement("PageLoaded"); // TapInFlyout("Flyout Item"); - // RunningApp.Tap("ToggleContent"); + // App.Tap("ToggleContent"); // TapInFlyout("ContentView"); // TapInFlyout("Flyout Item"); - // RunningApp.Tap("ToggleFlyoutContentTemplate"); + // App.Tap("ToggleFlyoutContentTemplate"); // TapInFlyout("ContentView"); // TapInFlyout("Flyout Item"); //} diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellFlyoutSizing.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellFlyoutSizing.cs index 10860ee35dbe..d6ae0a99f640 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellFlyoutSizing.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellFlyoutSizing.cs @@ -17,30 +17,30 @@ public ShellFlyoutSizing(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.Shell)] //public void FlyoutHeightAndWidthResetsBackToOriginalSize() //{ - // RunningApp.WaitForElement("PageLoaded"); + // App.WaitForElement("PageLoaded"); // this.ShowFlyout(); - // var initialWidth = RunningApp.WaitForElement("FlyoutHeader")[0].Rect.Width; - // var initialHeight = RunningApp.WaitForElement("FlyoutFooter")[0].Rect.Y; + // var initialWidth = App.WaitForElement("FlyoutHeader")[0].Rect.Width; + // var initialHeight = App.WaitForElement("FlyoutFooter")[0].Rect.Y; // TapInFlyout("ChangeFlyoutSizes", makeSureFlyoutStaysOpen: true); - // Assert.AreNotEqual(initialWidth, RunningApp.WaitForElement("FlyoutHeader")[0].Rect.Width); - // Assert.AreNotEqual(initialHeight, RunningApp.WaitForElement("FlyoutFooter")[0].Rect.Y); + // Assert.AreNotEqual(initialWidth, App.WaitForElement("FlyoutHeader")[0].Rect.Width); + // Assert.AreNotEqual(initialHeight, App.WaitForElement("FlyoutFooter")[0].Rect.Y); // TapInFlyout("ResetFlyoutSizes", makeSureFlyoutStaysOpen: true); - // Assert.AreEqual(initialWidth, RunningApp.WaitForElement("FlyoutHeader")[0].Rect.Width); - // Assert.AreEqual(initialHeight, RunningApp.WaitForElement("FlyoutFooter")[0].Rect.Y); + // Assert.AreEqual(initialWidth, App.WaitForElement("FlyoutHeader")[0].Rect.Width); + // Assert.AreEqual(initialHeight, App.WaitForElement("FlyoutFooter")[0].Rect.Y); //} //[Test] //[Category(UITestCategories.Shell)] //public void FlyoutHeightAndWidthIncreaseAndDecreaseCorrectly() //{ - // RunningApp.WaitForElement("PageLoaded"); + // App.WaitForElement("PageLoaded"); // this.ShowFlyout(); // TapInFlyout("ChangeFlyoutSizes", makeSureFlyoutStaysOpen: true); - // var initialWidth = RunningApp.WaitForElement("FlyoutHeader")[0].Rect.Width; - // var initialHeight = RunningApp.WaitForElement("FlyoutFooter")[0].Rect.Y; + // var initialWidth = App.WaitForElement("FlyoutHeader")[0].Rect.Width; + // var initialHeight = App.WaitForElement("FlyoutFooter")[0].Rect.Y; // TapInFlyout("DecreaseFlyoutSizes", makeSureFlyoutStaysOpen: true); - // var newWidth = RunningApp.WaitForElement("FlyoutHeader")[0].Rect.Width; - // var newHeight = RunningApp.WaitForElement("FlyoutFooter")[0].Rect.Y; + // var newWidth = App.WaitForElement("FlyoutHeader")[0].Rect.Width; + // var newHeight = App.WaitForElement("FlyoutFooter")[0].Rect.Y; // Assert.That(initialWidth - newWidth, Is.EqualTo(10).Within(1)); // Assert.That(initialHeight - newHeight, Is.EqualTo(10).Within(1)); diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellGestures.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellGestures.cs index 1f0912e3e2c1..0fff3ae0ca97 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellGestures.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellGestures.cs @@ -17,9 +17,9 @@ public ShellGestures(TestDevice testDevice) : base(testDevice) // public void SwipeGesture() // { // TapInFlyout(SwipeTitle, usingSwipe: true); -// RunningApp.WaitForElement(SwipeGestureSuccessId); -// RunningApp.SwipeLeftToRight(SwipeGestureSuccessId); -// RunningApp.WaitForElement(SwipeGestureSuccess); +// App.WaitForElement(SwipeGestureSuccessId); +// App.SwipeLeftToRight(SwipeGestureSuccessId); +// App.WaitForElement(SwipeGestureSuccess); // } // [Test] @@ -27,9 +27,9 @@ public ShellGestures(TestDevice testDevice) : base(testDevice) // public void TableViewScroll() // { // TapInFlyout(TableViewTitle); -// RunningApp.WaitForElement(TableViewId); +// App.WaitForElement(TableViewId); -// RunningApp.ScrollDownTo("entry30", TableViewId, ScrollStrategy.Gesture, swipePercentage: 0.20, timeout: TimeSpan.FromMinutes(1)); +// App.ScrollDownTo("entry30", TableViewId, ScrollStrategy.Gesture, swipePercentage: 0.20, timeout: TimeSpan.FromMinutes(1)); // } // [Test] @@ -37,8 +37,8 @@ public ShellGestures(TestDevice testDevice) : base(testDevice) // public void ListViewScroll() // { // TapInFlyout(ListViewTitle); -// RunningApp.WaitForElement(ListViewId); -// RunningApp.ScrollDownTo("30 Entry", ListViewId, ScrollStrategy.Gesture, swipePercentage: 0.20, timeout: TimeSpan.FromMinutes(1)); +// App.WaitForElement(ListViewId); +// App.ScrollDownTo("30 Entry", ListViewId, ScrollStrategy.Gesture, swipePercentage: 0.20, timeout: TimeSpan.FromMinutes(1)); // } //#if ANDROID @@ -48,9 +48,9 @@ public ShellGestures(TestDevice testDevice) : base(testDevice) // public void TouchListener() // { // TapInFlyout(TouchListenerTitle); -// RunningApp.WaitForElement(TouchListenerSuccessId); -// RunningApp.SwipeLeftToRight(TouchListenerSuccessId); -// RunningApp.WaitForElement(TouchListenerSuccess); +// App.WaitForElement(TouchListenerSuccessId); +// App.SwipeLeftToRight(TouchListenerSuccessId); +// App.WaitForElement(TouchListenerSuccess); // } //#endif } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellInsets.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellInsets.cs index 12374ca98a5a..76b92d857443 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellInsets.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellInsets.cs @@ -17,22 +17,22 @@ public ShellInsets(TestDevice testDevice) : base(testDevice) //[FailsOnIOS] //public void EntryScrollTest() //{ - // RunningApp.Tap(EntryTest); - // var originalPosition = RunningApp.WaitForElement(EntrySuccess)[0].Rect; - // RunningApp.Tap(EntryToClick); - // RunningApp.EnterText(EntryToClick, "keyboard"); + // App.Tap(EntryTest); + // var originalPosition = App.WaitForElement(EntrySuccess)[0].Rect; + // App.Tap(EntryToClick); + // App.EnterText(EntryToClick, "keyboard"); // // if the device has too much height then try clicking the second entry // // to trigger keyboard movement - // if (RunningApp.Query(EntrySuccess).Length != 0) + // if (App.Query(EntrySuccess).Length != 0) // { - // RunningApp.Tap(ResetKeyboard); - // RunningApp.DismissKeyboard(); - // RunningApp.Tap(EntryToClick2); - // RunningApp.EnterText(EntryToClick2, "keyboard"); + // App.Tap(ResetKeyboard); + // App.DismissKeyboard(); + // App.Tap(EntryToClick2); + // App.EnterText(EntryToClick2, "keyboard"); // } - // var entry = RunningApp.Query(EntrySuccess); + // var entry = App.Query(EntrySuccess); // // ios10 on appcenter for some reason still returns this entry // // even though it's hidden so this is a fall back test just to ensure @@ -40,14 +40,14 @@ public ShellInsets(TestDevice testDevice) : base(testDevice) // if (entry.Length > 0 && entry[0].Rect.Y > 0) // { // Thread.Sleep(2000); - // entry = RunningApp.Query(EntrySuccess); + // entry = App.Query(EntrySuccess); // if (entry.Length > 0) // Assert.LessOrEqual(entry[0].Rect.Y, originalPosition.Y); // } - // RunningApp.Tap(ResetKeyboard2); - // var finalPosition = RunningApp.WaitForElement(EntrySuccess)[0].Rect; + // App.Tap(ResetKeyboard2); + // var finalPosition = App.WaitForElement(EntrySuccess)[0].Rect; // // verify that label has returned to about the same spot // var diff = Math.Abs(originalPosition.Y - finalPosition.Y); @@ -58,8 +58,8 @@ public ShellInsets(TestDevice testDevice) : base(testDevice) //[Test] //public void ListViewScrollTest() //{ - // RunningApp.Tap(ListViewTest); - // RunningApp.WaitForElement("Item0"); + // App.Tap(ListViewTest); + // App.WaitForElement("Item0"); //} @@ -67,8 +67,8 @@ public ShellInsets(TestDevice testDevice) : base(testDevice) //[Compatibility.UITests.FailsOnIOS] //public void SafeAreaOnBlankPage() //{ - // RunningApp.Tap(EmptyPageSafeAreaTest); - // var noSafeAreaLocation = RunningApp.WaitForElement(SafeAreaTopLabel); + // App.Tap(EmptyPageSafeAreaTest); + // var noSafeAreaLocation = App.WaitForElement(SafeAreaTopLabel); // Assert.AreEqual(0, noSafeAreaLocation[0].Rect.Y); //} @@ -76,15 +76,15 @@ public ShellInsets(TestDevice testDevice) : base(testDevice) //[Compatibility.UITests.FailsOnIOS] //public void SafeArea() //{ - // RunningApp.Tap(SafeAreaTest); - // var noSafeAreaLocation = RunningApp.WaitForElement(SafeAreaBottomLabel); + // App.Tap(SafeAreaTest); + // var noSafeAreaLocation = App.WaitForElement(SafeAreaBottomLabel); // Assert.AreEqual(1, noSafeAreaLocation.Length); - // RunningApp.Tap(Reset); + // App.Tap(Reset); - // RunningApp.Tap(ToggleSafeArea); - // RunningApp.Tap(SafeAreaTest); - // var safeAreaLocation = RunningApp.WaitForElement(SafeAreaBottomLabel); + // App.Tap(ToggleSafeArea); + // App.Tap(SafeAreaTest); + // var safeAreaLocation = App.WaitForElement(SafeAreaBottomLabel); // Assert.AreEqual(1, safeAreaLocation.Length); // Assert.Greater(safeAreaLocation[0].Rect.Y, noSafeAreaLocation[0].Rect.Y); @@ -93,16 +93,16 @@ public ShellInsets(TestDevice testDevice) : base(testDevice) //[Test] //public void PaddingWithoutSafeArea() //{ - // RunningApp.EnterText(q => q.Raw($"* marked:'{PaddingEntry}'"), "0"); - // RunningApp.Tap(PaddingTest); - // var zeroPadding = RunningApp.WaitForElement(PaddingLabel); + // App.EnterText(q => q.Raw($"* marked:'{PaddingEntry}'"), "0"); + // App.Tap(PaddingTest); + // var zeroPadding = App.WaitForElement(PaddingLabel); // Assert.AreEqual(1, zeroPadding.Length); - // RunningApp.Tap(Reset); + // App.Tap(Reset); - // RunningApp.EnterText(PaddingEntry, "100"); - // RunningApp.Tap(PaddingTest); - // var somePadding = RunningApp.WaitForElement(PaddingLabel); + // App.EnterText(PaddingEntry, "100"); + // App.Tap(PaddingTest); + // var somePadding = App.WaitForElement(PaddingLabel); // Assert.AreEqual(1, somePadding.Length); // Assert.Greater(somePadding[0].Rect.Y, zeroPadding[0].Rect.Y); diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellItemIsVisible.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellItemIsVisible.cs index 3982570a211c..ab9c74dd931b 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellItemIsVisible.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellItemIsVisible.cs @@ -16,62 +16,62 @@ public ShellItemIsVisible(TestDevice testDevice) : base(testDevice) // [Test] //public void FlyoutItemVisible() //{ - // RunningApp.Tap("ToggleFlyoutItem3"); + // App.Tap("ToggleFlyoutItem3"); // ShowFlyout(); - // RunningApp.WaitForElement("Item2 Flyout"); - // RunningApp.WaitForNoElement("Item3 Flyout"); + // App.WaitForElement("Item2 Flyout"); + // App.WaitForNoElement("Item3 Flyout"); //} //[Test] //public void HideActiveShellContent() //{ - // RunningApp.Tap("ToggleItem1"); - // RunningApp.WaitForElement("Welcome to Tab 1"); - // RunningApp.WaitForNoElement("ToggleItem1"); + // App.Tap("ToggleItem1"); + // App.WaitForElement("Welcome to Tab 1"); + // App.WaitForNoElement("ToggleItem1"); //} //[Test] //public void HideFlyoutItem() //{ - // RunningApp.WaitForElement("ToggleItem1"); + // App.WaitForElement("ToggleItem1"); // ShowFlyout(); - // RunningApp.WaitForElement("Item2 Flyout"); - // RunningApp.Tap("Item2 Flyout"); - // RunningApp.Tap("AllVisible"); - // RunningApp.Tap("ToggleItem2"); + // App.WaitForElement("Item2 Flyout"); + // App.Tap("Item2 Flyout"); + // App.Tap("AllVisible"); + // App.Tap("ToggleItem2"); // ShowFlyout(); - // RunningApp.WaitForElement("Item1 Flyout"); - // RunningApp.WaitForNoElement("Item2 Flyout"); + // App.WaitForElement("Item1 Flyout"); + // App.WaitForNoElement("Item2 Flyout"); //} //[Test] //public void ClearAndRecreateShellElements() //{ - // RunningApp.WaitForElement("ClearAndRecreate"); - // RunningApp.Tap("ClearAndRecreate"); - // RunningApp.WaitForElement("ClearAndRecreate"); - // RunningApp.Tap("ClearAndRecreate"); + // App.WaitForElement("ClearAndRecreate"); + // App.Tap("ClearAndRecreate"); + // App.WaitForElement("ClearAndRecreate"); + // App.Tap("ClearAndRecreate"); //} //[Test] //public void ClearAndRecreateFromSecondaryPage() //{ - // RunningApp.WaitForElement("ClearAndRecreate"); + // App.WaitForElement("ClearAndRecreate"); // ShowFlyout(); - // RunningApp.Tap("Item2 Flyout"); - // RunningApp.Tap("ToggleItem1"); - // RunningApp.Tap("ClearAndRecreate"); - // RunningApp.Tap("Top Tab 2"); - // RunningApp.Tap("Top Tab 1"); + // App.Tap("Item2 Flyout"); + // App.Tap("ToggleItem1"); + // App.Tap("ClearAndRecreate"); + // App.Tap("Top Tab 2"); + // App.Tap("Top Tab 1"); //} //[Test] //public void ClearAndRecreateShellContent() //{ - // RunningApp.WaitForElement("ClearAndRecreateShellContent"); - // RunningApp.Tap("ClearAndRecreateShellContent"); - // RunningApp.WaitForElement("ClearAndRecreate"); - // RunningApp.Tap("ClearAndRecreate"); + // App.WaitForElement("ClearAndRecreateShellContent"); + // App.Tap("ClearAndRecreateShellContent"); + // App.WaitForElement("ClearAndRecreate"); + // App.Tap("ClearAndRecreate"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellSearchHandlerItemSizing.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellSearchHandlerItemSizing.cs index a58ed56992df..7b3d7aea488f 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellSearchHandlerItemSizing.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellSearchHandlerItemSizing.cs @@ -16,9 +16,9 @@ public ShellSearchHandlerItemSizing(TestDevice testDevice) : base(testDevice) //[Category(UITestCategories.Shell)] //public void SearchHandlerSizesCorrectly() //{ - // RunningApp.WaitForElement("SearchHandler"); - // RunningApp.EnterText("SearchHandler", "Hello"); - // var contentSize = RunningApp.WaitForElement("searchresult")[0].Rect; + // App.WaitForElement("SearchHandler"); + // App.EnterText("SearchHandler", "Hello"); + // var contentSize = App.WaitForElement("searchresult")[0].Rect; // Assert.Less(contentSize.Height, 100); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellTitleView.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellTitleView.cs index 71aa714ac98e..f822d458f85b 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellTitleView.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellTitleView.cs @@ -17,25 +17,25 @@ public ShellTitleView(TestDevice testDevice) : base(testDevice) //public void TitleWidthMeasuresCorrectly_13949() //{ // this.TapInFlyout("Width Measure (13949)"); - // RunningApp.WaitForElement("Text"); - // RunningApp.WaitForElement("B1"); - // RunningApp.WaitForElement("B2"); + // App.WaitForElement("Text"); + // App.WaitForElement("B1"); + // App.WaitForElement("B2"); //} //[Test] //public void TitleWidthWithToolBarItemMeasuresCorrectly_13949() //{ // this.TapInFlyout("Width Measure and ToolBarItem (13949)"); - // RunningApp.WaitForElement("Text"); - // RunningApp.WaitForElement("B1"); - // RunningApp.WaitForElement("B2"); + // App.WaitForElement("Text"); + // App.WaitForElement("B1"); + // App.WaitForElement("B2"); //} //[Test] //public void TitleViewPositionsCorrectly() //{ - // var titleView = RunningApp.WaitForElement("TitleViewId")[0].Rect; - // var topTab = RunningApp.WaitForElement("page 2")[0].Rect; + // var titleView = App.WaitForElement("TitleViewId")[0].Rect; + // var topTab = App.WaitForElement("page 2")[0].Rect; // var titleViewBottom = titleView.Y + titleView.Height; // var topTabTop = topTab.Y; @@ -46,14 +46,14 @@ public ShellTitleView(TestDevice testDevice) : base(testDevice) //[Test] //public void NoDuplicateTitleViews() //{ - // var titleView = RunningApp.WaitForElement("TitleViewId"); + // var titleView = App.WaitForElement("TitleViewId"); // Assert.AreEqual(1, titleView.Length); - // RunningApp.Tap("page 2"); - // RunningApp.Tap("page 3"); - // RunningApp.Tap("page 4"); - // titleView = RunningApp.WaitForElement("TitleViewId"); + // App.Tap("page 2"); + // App.Tap("page 3"); + // App.Tap("page 4"); + // titleView = App.WaitForElement("TitleViewId"); // Assert.AreEqual(1, titleView.Length); //} diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellWithCustomRendererDisabledAnimation.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellWithCustomRendererDisabledAnimation.cs index 85ded5470df6..89f1ad2681ff 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellWithCustomRendererDisabledAnimation.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/ShellWithCustomRendererDisabledAnimation.cs @@ -16,8 +16,8 @@ public ShellWithCustomRendererDisabledAnimation(TestDevice testDevice) : base(te //[Category(UITestCategories.Shell)] //public void NavigationWithACustomRendererThatDoesntSetAnAnimationStillWorks() //{ - // RunningApp.Tap("PageLoaded"); - // RunningApp.Tap("GoBack"); - // RunningApp.WaitForElement("PageLoaded"); + // App.Tap("PageLoaded"); + // App.Tap("GoBack"); + // App.WaitForElement("PageLoaded"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/SwipeBackNavCrash.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/SwipeBackNavCrash.cs index d675a2f53796..4f357ab92a02 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/SwipeBackNavCrash.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/SwipeBackNavCrash.cs @@ -17,17 +17,17 @@ public SwipeBackNavCrash(TestDevice testDevice) : base(testDevice) // [FailsOnIOS] // public void SwipeBackNavCrashTestsAllElementsPresent() // { -// RunningApp.WaitForElement(q => q.Marked("Page One")); -// RunningApp.WaitForElement(q => q.Button("Go to second page")); +// App.WaitForElement(q => q.Marked("Page One")); +// App.WaitForElement(q => q.Button("Go to second page")); // } // [Test] // [FailsOnIOS] // public void SwipeBackNavCrashTestsGoToSecondPage() // { -// RunningApp.WaitForElement(q => q.Marked("Page One")); -// RunningApp.Tap(q => q.Button("Go to second page")); -// RunningApp.Screenshot("At Second Page"); +// App.WaitForElement(q => q.Marked("Page One")); +// App.Tap(q => q.Button("Go to second page")); +// App.Screenshot("At Second Page"); // } //#if IOS @@ -35,17 +35,17 @@ public SwipeBackNavCrash(TestDevice testDevice) : base(testDevice) // [Compatibility.UITests.FailsOnIOS] // public void SwipeBackNavCrashTestsSwipeBackDoesNotCrash () // { -// RunningApp.WaitForElement (q => q.Marked ("Page One")); -// RunningApp.Tap (q => q.Button ("Go to second page")); -// RunningApp.WaitForElement (q => q.Marked ("Swipe lightly left and right to crash this page")); +// App.WaitForElement (q => q.Marked ("Page One")); +// App.Tap (q => q.Button ("Go to second page")); +// App.WaitForElement (q => q.Marked ("Swipe lightly left and right to crash this page")); // System.Threading.Thread.Sleep (3); -// var mainBounds = RunningApp.RootViewRect(); +// var mainBounds = App.RootViewRect(); // Gestures.Pan (RunningApp, new Drag (mainBounds, 0, 125, 75, 125, Drag.Direction.LeftToRight)); // System.Threading.Thread.Sleep (3); -// RunningApp.Screenshot ("Crash?"); -// RunningApp.WaitForElement (q => q.Marked ("Swipe lightly left and right to crash this page")); +// App.Screenshot ("Crash?"); +// App.WaitForElement (q => q.Marked ("Swipe lightly left and right to crash this page")); // } //#endif } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/TabbedPageTests.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/TabbedPageTests.cs index d674104708f5..b2ec1397f259 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/TabbedPageTests.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/TabbedPageTests.cs @@ -17,33 +17,33 @@ public TabbedPageTests(TestDevice testDevice) : base(testDevice) //[FailsOnIOS] //public void TabbedPageWithModalIssueTestsAllElementsPresent() //{ - // RunningApp.WaitForElement(q => q.Marked("Page 1")); - // RunningApp.WaitForElement(q => q.Marked("Page 2")); - // RunningApp.WaitForElement(q => q.Button("Pop")); + // App.WaitForElement(q => q.Marked("Page 1")); + // App.WaitForElement(q => q.Marked("Page 2")); + // App.WaitForElement(q => q.Button("Pop")); - // RunningApp.Screenshot("All elements present"); + // App.Screenshot("All elements present"); //} //[Test] //[FailsOnIOS] //public void TabbedPageWithModalIssueTestsPopFromFirstTab() //{ - // RunningApp.Tap(q => q.Button("Pop")); - // RunningApp.WaitForElement(q => q.Marked("Bug Repro's")); + // App.Tap(q => q.Button("Pop")); + // App.WaitForElement(q => q.Marked("Bug Repro's")); - // RunningApp.Screenshot("Popped from first tab"); + // App.Screenshot("Popped from first tab"); //} //[Test] //[FailsOnIOS] //public void TabbedPageWithModalIssueTestsPopFromSecondTab() //{ - // RunningApp.Tap(q => q.Marked("Page 2")); - // RunningApp.WaitForElement(q => q.Button("Pop 2")); - // RunningApp.Screenshot("On second tab"); + // App.Tap(q => q.Marked("Page 2")); + // App.WaitForElement(q => q.Button("Pop 2")); + // App.Screenshot("On second tab"); - // RunningApp.Tap(q => q.Button("Pop 2")); - // RunningApp.WaitForElement(q => q.Marked("Bug Repro's")); - // RunningApp.Screenshot("Popped from second tab"); + // App.Tap(q => q.Button("Pop 2")); + // App.WaitForElement(q => q.Marked("Bug Repro's")); + // App.Screenshot("Popped from second tab"); //} } \ No newline at end of file diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/TabbedPageWithList.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/TabbedPageWithList.cs index f0cd4d044471..9567ff96af1f 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/TabbedPageWithList.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/TabbedPageWithList.cs @@ -17,21 +17,21 @@ public TabbedPageWithList(TestDevice testDevice) : base(testDevice) //[FailsOnIOS] //public void TabbedPageWithListViewIssueTestsAllElementsPresent() //{ - // RunningApp.WaitForElement(q => q.Marked("Tab Two")); - // RunningApp.WaitForElement(q => q.Marked("List Page")); - // RunningApp.Screenshot("All elements present"); + // App.WaitForElement(q => q.Marked("Tab Two")); + // App.WaitForElement(q => q.Marked("List Page")); + // App.Screenshot("All elements present"); //} //[Test] //[FailsOnIOS] //public void TabbedPageWithListViewIssueTestsNavigateToAndVerifyListView() //{ - // RunningApp.Tap(q => q.Marked("List Page")); + // App.Tap(q => q.Marked("List Page")); - // RunningApp.WaitForElement(q => q.Marked("Jason")); - // RunningApp.WaitForElement(q => q.Marked("Ermau")); - // RunningApp.WaitForElement(q => q.Marked("Seth")); + // App.WaitForElement(q => q.Marked("Jason")); + // App.WaitForElement(q => q.Marked("Ermau")); + // App.WaitForElement(q => q.Marked("Seth")); - // RunningApp.Screenshot("ListView correct"); + // App.Screenshot("ListView correct"); //} } \ No newline at end of file