diff --git a/Xamarin.Forms.Core.Android.UITests/Xamarin.Forms.Core.Android.UITests.csproj b/Xamarin.Forms.Core.Android.UITests/Xamarin.Forms.Core.Android.UITests.csproj
index 85f98b2ca1..8a9a61883e 100644
--- a/Xamarin.Forms.Core.Android.UITests/Xamarin.Forms.Core.Android.UITests.csproj
+++ b/Xamarin.Forms.Core.Android.UITests/Xamarin.Forms.Core.Android.UITests.csproj
@@ -114,84 +114,12 @@
Tests\LabelUITests.cs
-
- Tests\Legacy-AbsoluteLayoutGalleryTest.cs
-
-
- Tests\Legacy-BoundViewUITest.cs
-
-
- Tests\Legacy-ButtonUITests.cs
-
-
- Tests\Legacy-CarouselPageUITests.cs
-
Tests\Legacy-CellsUITests.cs
-
- Tests\Legacy-ClipToBoundsUITests.cs
-
-
- Tests\Legacy-EditorUITests.cs
-
-
- Tests\Legacy-EntryUITests.cs
-
-
- Tests\Legacy-GridGalleryUITests.cs
-
-
- Tests\Legacy-GroupedListActionsUITests.cs
-
-
- Tests\Legacy-InputIntentUITests.cs
-
-
- Tests\Legacy-ListUITests.cs
-
-
- Tests\Legacy-MapUITests.cs
-
-
- Tests\Legacy-MinimumSizeUITest.cs
-
Tests\Legacy-NavigationBarUITests.cs
-
- Tests\Legacy-RelativeLayoutUITest.cs
-
-
- Tests\Legacy-SearchBarUITests.cs
-
-
- Tests\Legacy-SliderUITests.cs
-
-
- Tests\Legacy-StackLayoutUITest.cs
-
-
- Tests\Legacy-StepperUITests.cs
-
-
- Tests\Legacy-SwitchUITests.cs
-
-
- Tests\Legacy-TableViewUITests.cs
-
-
- Tests\Legacy-TemplatedCarouselPageUITests.cs
-
-
- Tests\Legacy-TemplatedTabPageUITests.cs
-
-
- Tests\Legacy-UnevenViewCellUITests.cs
-
-
- Tests\Legacy-ViewCellUITests.cs
-
Tests\PickerUITests.cs
diff --git a/Xamarin.Forms.Core.Windows.UITests/Xamarin.Forms.Core.Windows.UITests.csproj b/Xamarin.Forms.Core.Windows.UITests/Xamarin.Forms.Core.Windows.UITests.csproj
index ba113d5d21..c817d65537 100644
--- a/Xamarin.Forms.Core.Windows.UITests/Xamarin.Forms.Core.Windows.UITests.csproj
+++ b/Xamarin.Forms.Core.Windows.UITests/Xamarin.Forms.Core.Windows.UITests.csproj
@@ -115,87 +115,15 @@
Tests\LabelUITests.cs
-
- Tests\Legacy-AbsoluteLayoutGalleryTest.cs
-
-
- Tests\Legacy-BoundViewUITest.cs
-
-
- Tests\Legacy-ButtonUITests.cs
-
-
- Tests\Legacy-CarouselPageUITests.cs
-
Tests\Legacy-CellsUITests.cs
-
- Tests\Legacy-ClipToBoundsUITests.cs
-
-
- Tests\Legacy-EditorUITests.cs
-
-
- Tests\Legacy-EntryUITests.cs
-
-
- Tests\Legacy-GridGalleryUITests.cs
-
-
- Tests\Legacy-GroupedListActionsUITests.cs
-
-
- Tests\Legacy-InputIntentUITests.cs
-
-
- Tests\Legacy-ListUITests.cs
-
-
- Tests\Legacy-MapUITests.cs
-
-
- Tests\Legacy-MinimumSizeUITest.cs
-
Tests\Legacy-NavigationBarUITests.cs
-
- Tests\Legacy-RelativeLayoutUITest.cs
-
-
- Tests\Legacy-SearchBarUITests.cs
-
-
- Tests\Legacy-SliderUITests.cs
-
-
- Tests\Legacy-StackLayoutUITest.cs
-
-
- Tests\Legacy-StepperUITests.cs
-
-
- Tests\Legacy-SwitchUITests.cs
-
-
- Tests\Legacy-TableViewUITests.cs
-
-
- Tests\Legacy-TemplatedCarouselPageUITests.cs
-
-
- Tests\Legacy-TemplatedTabPageUITests.cs
-
Tests\Legacy-UnevenListTests.cs
-
- Tests\Legacy-UnevenViewCellUITests.cs
-
-
- Tests\Legacy-ViewCellUITests.cs
-
Tests\PickerUITests.cs
diff --git a/Xamarin.Forms.Core.iOS.UITests/Queries.cs b/Xamarin.Forms.Core.iOS.UITests/Queries.cs
index 2d4f2dcab8..e1c00ee92c 100644
--- a/Xamarin.Forms.Core.iOS.UITests/Queries.cs
+++ b/Xamarin.Forms.Core.iOS.UITests/Queries.cs
@@ -46,34 +46,8 @@ namespace Xamarin.Forms.Core.UITests
public const string AppearingGallery = "* marked:'Appearing Gallery'";
// Legacy galleries
- public const string AbsoluteLayoutGalleryLegacy = "* marked:'AbsoluteLayout Gallery - Legacy'";
- public const string BoundPageGalleryLegacy = "* marked:'BoundPage Gallery - Legacy'";
- public const string ButtonGalleryLegacy = "* marked:'Button Gallery - Legacy'";
public const string CellsGalleryLegacy = "* marked:'Cells Gallery - Legacy'";
- public const string CarouselPageGalleryLegacy = "* marked:'CarouselPage Gallery - Legacy'";
- public const string ClipToBoundsGalleryLegacy = "* marked:'ClipToBounds Gallery - Legacy'";
- public const string EditorGalleryLegacy = "* marked:'Editor Gallery - Legacy'";
- public const string EntryGalleryLegacy = "* marked:'Entry Gallery - Legacy'";
- public const string GridGalleryLegacy = "* marked:'Grid Gallery - Legacy'";
- public const string GroupedListActionsGalleryLegacy = "* marked:'GroupedListActions Gallery - Legacy'";
- public const string GroupedListGalleryLegacy = "* marked:'GroupedList Gallery - Legacy'";
- public const string InputIntentGalleryLegacy = "* marked:'InputIntent Gallery - Legacy'";
- public const string ListViewGalleryLegacy = "* marked:'ListView Gallery - Legacy'";
- public const string MapGalleryLegacy = "* marked:'Map Gallery - Legacy'";
- public const string MinimumSizeGalleryLegacy = "* marked:'MinimumSize Gallery - Legacy'";
- public const string NavigationBarGalleryLegacy = "* marked:'NavigationBar Gallery - Legacy'";
- public const string RelativeLayoutGalleryLegacy = "* marked:'RelativeLayout Gallery - Legacy'";
- public const string SearchBarGalleryLegacy = "* marked:'SearchBar Gallery - Legacy'";
- public const string SliderGalleryLegacy = "* marked:'Slider Gallery - Legacy'";
- public const string StackLayoutGalleryLegacy = "* marked:'StackLayout Gallery - Legacy'";
- public const string StepperGalleryLegacy = "* marked:'Stepper Gallery - Legacy'";
- public const string SwitchGalleryLegacy = "* marked:'Switch Gallery - Legacy'";
- public const string TableViewGalleryLegacy = "* marked:'TableView Gallery - Legacy'";
- public const string TemplatedCarouselPageGalleryLegacy = "* marked:'TemplatedCarouselPage Gallery - Legacy'";
- public const string TemplatedTabbedPageGalleryLegacy = "* marked:'TemplatedTabbedPage Gallery - Legacy'";
- public const string UnevenViewCellGalleryLegacy = "* marked:'UnevenViewCell Gallery - Legacy'";
public const string UnevenListGalleryLegacy = "* marked:'UnevenList Gallery - Legacy'";
- public const string ViewCellGalleryLegacy = "* marked:'ViewCell Gallery - Legacy'";
}
internal static class Queries
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/ActivityIndicatorUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/ActivityIndicatorUITests.cs
index 325a5682e1..a2de9d52bb 100644
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/ActivityIndicatorUITests.cs
+++ b/Xamarin.Forms.Core.iOS.UITests/Tests/ActivityIndicatorUITests.cs
@@ -42,18 +42,6 @@ namespace Xamarin.Forms.Core.UITests
[UiTestExempt (ExemptReason.CannotTest, "Invalid interaction")]
public override void _UnFocus () {}
- //[UiTest (typeof(ActivityIndicator), "Color")]
- public void Color ()
- {
- //TODO: this was failing and is changing in next version of calabash (UI-Test-pre nuget) to a json rgb
-
-// var remote = RemoteFactory.CreateRemote (App, "Color", PlatformViewType);
-// remote.GoTo ();
-//
-// var color = remote.GetProperty (ActivityIndicator.ColorProperty);
-// Assert.AreEqual (Forms.Color.Lime, color);
- }
-
// ActivityIndicator tests
[Test]
[UiTest (typeof(ActivityIndicator), "IsRunning")]
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/DisplayAlertUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/DisplayAlertUITests.cs
index be0e4997a8..74bd895821 100644
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/DisplayAlertUITests.cs
+++ b/Xamarin.Forms.Core.iOS.UITests/Tests/DisplayAlertUITests.cs
@@ -3,7 +3,6 @@ using Xamarin.UITest;
using System;
using System.Threading;
-
namespace Xamarin.Forms.Core.UITests
{
[TestFixture]
@@ -60,26 +59,5 @@ namespace Xamarin.Forms.Core.UITests
App.Screenshot ("Display Alert Closed with True");
App.WaitForElement (c => c.Marked ("Result: True"));
}
-
-// [Test]
-// public void TestRotation ()
-// {
-// App.SetOrientationLandscape ();
-//
-// //App.Tap (c => c.Marked ("Alert Override1"));
-// // 27-01-2015 14:30:02.125 -08:00 - 28524 - Tapping first element (2 total) matching Marked("Alert Override1") at coordinates [ 512, 113 ].
-//
-// App.TapCoordinates (665, 512);
-//
-// App.WaitForElement (c => c.Marked ("TheAlertTitle"));
-//
-// App.Screenshot ("Display Alert After Rotation");
-// App.WaitForElement (c => c.Marked ("TheAlertTitle"));
-// App.Tap (c => c.Marked("TheCancelButton"));
-// App.WaitForNoElement (c => c.Marked("TheCancelButton"));
-// App.SetOrientationPortrait ();
-//
-// }
-
}
}
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-AbsoluteLayoutGalleryTest.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-AbsoluteLayoutGalleryTest.cs
deleted file mode 100644
index c23a0d276f..0000000000
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-AbsoluteLayoutGalleryTest.cs
+++ /dev/null
@@ -1,229 +0,0 @@
-using NUnit.Framework;
-using Xamarin.UITest;
-using System;
-using System.Threading;
-using Xamarin.UITest.Queries;
-using System.Diagnostics;
-
-namespace Xamarin.Forms.Core.UITests
-{
- [TestFixture]
- [Category ("AbsoluteLayout")]
- internal class AbsoluteLayoutGalleryTests : BaseTestFixture
- {
- // TODO: Port to new conventions
-
- public AbsoluteLayoutGalleryTests ()
- {
- ShouldResetPerFixture = false;
- }
-
- protected override void NavigateToGallery ()
- {
- App.NavigateToGallery (GalleryQueries.AbsoluteLayoutGalleryLegacy);
- }
-
- [Test]
- public void AbsoluteLayoutGalleryMoveBox ()
- {
- App.Screenshot ("At Gallery");
-
- // App.WaitForElement (q => q.Raw (Views.BoxView), "Timeout : Box Renderers");
- // Assert.AreEqual (1, App.Query (q => q.Raw (Views.BoxView)).Length);
-
- // App.WaitForElement (q => q.Raw (Views.Label), "Timeout : Labels");
- // Assert.AreEqual (4, App.Query(q => q.Raw (Views.Label)).Length);
-
- // App.WaitForElement (q => q.Raw (Views.Slider), "Timeout : Sliders");
- // Assert.AreEqual (4, App.Query(q => q.Raw (Views.Slider)).Length);
- // App.Screenshot ("All elements exist");
-
- // App.WaitForElement (q => q.Raw (Views.Slider));
- // // Move green box left
- // var sliders = (App.Query (q => q.Raw (Views.Slider)));
- // var sliderCenter = (sliders[0]).Rect.CenterX;
- // var sliderLeft = (sliders[0]).Rect.X;
- // var sliderRight = sliderLeft + (sliders[0]).Rect.Width;
-
- // var xSlider = (sliders[0]).Rect.CenterY;
- // var ySlider = (sliders[1]).Rect.CenterY;
-
- //var absoluteBounds = App.Query (PlatformQueries.AbsoluteGalleryBackground)[0].Rect;
-
- //// Move box left
- //App.DragFromTo (sliderCenter, xSlider, sliderLeft, xSlider, Speed.Slow);
- //Assert.AreEqual (absoluteBounds.X, (App.Query (PlatformQueries.BoxRendererQuery))[0].Rect.X, 2.0);
- //App.Screenshot ("Box moved to left bounds");
-
- //// Move box right
- //App.DragFromTo (sliderLeft, xSlider, sliderRight, xSlider, Speed.Slow);
- //Assert.AreEqual (absoluteBounds.X + absoluteBounds.Width, (App.Query (PlatformQueries.BoxRendererQuery))[0].Rect.X + (App.Query (PlatformQueries.BoxRendererQuery))[0].Rect.Width, 2.0);
- //App.Screenshot ("Box moved to right bounds");
-
- ////Move box up
- //var boxContainer = App.Query (PlatformQueries.AbsoluteGalleryBackground)[0];
- //var boxContainerTop = boxContainer.Rect.Y;
- //var boxContainerBottom = boxContainer.Rect.Y + boxContainer.Rect.Height;
-
- //App.DragFromTo (sliderCenter, ySlider, sliderLeft, ySlider, Speed.Slow);
- //Assert.AreEqual (boxContainerTop, (App.Query (PlatformQueries.BoxRendererQuery))[0].Rect.Y);
- //App.Screenshot ("Box moved to top bounds");
-
- //// Move box down
- //App.DragFromTo (sliderLeft, ySlider, sliderRight, ySlider, Speed.Slow);
- //Assert.AreEqual (boxContainerBottom, (App.Query (PlatformQueries.BoxRendererQuery))[0].Rect.Y + (App.Query (PlatformQueries.BoxRendererQuery))[0].Rect.Height);
- //App.Screenshot ("Box moved to bottom bounds");
- }
-
- //[Test]
- //[Description ("MaxWidth")]
- //public void AbsoluteLayoutGalleryResizeToMaximumWidth ()
- //{
- //App.WaitForElement (PlatformQueries.Sliders, "Timeout : Sliders");
-
- //AppRect widthSlider = (App.Query (PlatformQueries.Sliders))[2].Rect;
- //float sliderCenter = widthSlider.CenterX;
- //float sliderY = widthSlider.CenterY;
- //float sliderRight = widthSlider.X + widthSlider.Width;
-
- //App.DragFromTo (sliderCenter, sliderY, sliderRight, sliderY, Speed.Slow);
-
- //AppRect absoluteBounds = App.Query (PlatformQueries.AbsoluteGalleryBackground)[0].Rect;
- //AppRect boxBounds = App.Query (PlatformQueries.BoxRendererQuery)[0].Rect;
-
- //Assert.AreEqual (absoluteBounds.Width, boxBounds.Width, 2.0);
- //App.Screenshot ("Box at maximum width");
- //}
-
- //[Test]
- //[Description ("MaxHeight")]
- //public void AbsoluteLayoutGalleryResizeToMaximumHeight ()
- //{
- //App.WaitForElement (PlatformQueries.Sliders, "Timeout : Sliders");
-
- //AppRect widthSlider = (App.Query (PlatformQueries.Sliders))[3].Rect;
- //float sliderCenter = widthSlider.CenterX;
- //float sliderY = widthSlider.CenterY;
- //float sliderRight = widthSlider.X + widthSlider.Width;
-
- //App.DragFromTo (sliderCenter, sliderY, sliderRight, sliderY, Speed.Slow);
-
- //AppRect absoluteBounds = App.Query (PlatformQueries.AbsoluteGalleryBackground)[0].Rect;
- //AppRect boxBounds = App.Query (PlatformQueries.BoxRendererQuery)[0].Rect;
-
- //Assert.AreEqual (absoluteBounds.Height, boxBounds.Height, 2.0);
- //App.Screenshot ("Box at maximum height");
- //}
-
- //[Test]
- //[Description ("MinWidth")]
- //public void AbsoluteLayoutGalleryResizeToMinimumWidth ()
- //{
- //App.WaitForElement (PlatformQueries.Sliders, "Timeout : Sliders");
-
- //AppRect widthSlider = (App.Query (PlatformQueries.Sliders))[2].Rect;
- //float sliderCenter = widthSlider.CenterX;
- //float sliderY = widthSlider.CenterY;
- //float sliderLeft = widthSlider.X - 20;
-
- //App.DragFromTo (sliderCenter, sliderY, sliderLeft, sliderY, Speed.Slow);
-
- //bool isZeroed = false;
- //if (App.Query (PlatformQueries.BoxRendererQuery).Length == 0) {
- // // Android removes 0 width BoxView
- // isZeroed = true;
- //} else {
- // if (App.Query (PlatformQueries.BoxRendererQuery)[0].Rect.Width <= 4.0)
- // isZeroed = true;
- //}
-
- //Assert.IsTrue (isZeroed, "Box is minimum width");
- //App.Screenshot ("Box at minimum width");
- }
-
- //[Test]
- //[Description ("MinHeight")]
- //public void AbsoluteLayoutGalleryResizeToMinimumHeight ()
- //{
- //App.WaitForElement (PlatformQueries.Sliders, "Timeout : Sliders");
-
- //AppRect widthSlider = (App.Query (PlatformQueries.Sliders))[3].Rect;
- //float sliderCenter = widthSlider.CenterX;
- //float sliderY = widthSlider.CenterY;
- //float sliderLeft = widthSlider.X - 20;
-
- //App.DragFromTo (sliderCenter, sliderY, sliderLeft, sliderY, Speed.Slow);
-
- //bool isZeroed = false;
- //if (App.Query (PlatformQueries.BoxRendererQuery).Length == 0) {
- // // Android removes 0 height BoxView
- // isZeroed = true;
- //} else {
- // if (App.Query (PlatformQueries.BoxRendererQuery)[0].Rect.Height <= 4.0)
- // isZeroed = true;
- //}
-
- //Assert.IsTrue (isZeroed, "Box is minimum height");
- //App.Screenshot ("Box at minimum height");
- //}
-
-/*******************************************************/
-/**************** Landscape tests **********************/
-/*******************************************************/
-
- //[Test]
- //[Description ("Move box around with sliders - landscape")]
- //public void AbsoluteLayoutGalleryMoveBoxLandscape ()
- //{
- // App.SetOrientationLandscape ();
- // App.Screenshot ("Rotated to Landscape");
- // AbsoluteLayoutGalleryMoveBox ();
- // App.SetOrientationPortrait ();
- // App.Screenshot ("Rotated to Portrait");
- //}
-
- //[Test]
- //[Description ("Resize to max width with sliders - landscape")]
- //public void AbsoluteLayoutGalleryResizeToMaximumWidthLandscape ()
- //{
- // App.SetOrientationLandscape ();
- // App.Screenshot ("Rotated to Landscape");
- // AbsoluteLayoutGalleryResizeToMaximumWidth ();
- // App.SetOrientationPortrait ();
- // App.Screenshot ("Rotated to Portrait");
- //}
-
- //[Test]
- //[Description ("Resize to max height with sliders - landscape")]
- //public void AbsoluteLayoutGalleryResizeToMaximumHeightLandscape ()
- //{
- // App.SetOrientationLandscape ();
- // App.Screenshot ("Rotated to Landscape");
- // AbsoluteLayoutGalleryResizeToMaximumHeight ();
- // App.SetOrientationPortrait ();
- // App.Screenshot ("Rotated to Portrait");
- //}
-
- //[Test]
- //[Description ("Resize to min height with sliders - landscape")]
- //public void AbsoluteLayoutGalleryResizeToMinimumWidthLandscape ()
- //{
- // App.SetOrientationLandscape ();
- // App.Screenshot ("Rotated to Landscape");
- // AbsoluteLayoutGalleryResizeToMinimumWidth ();
- // App.SetOrientationPortrait ();
- // App.Screenshot ("Rotated to Portrait");
- //}
-
- //[Test]
- //[Description ("Resize to min height with sliders - landscape")]
- //public void AbsoluteLayoutGalleryResizeToMinimumHeightLandscape ()
- //{
- // App.SetOrientationLandscape ();
- // App.Screenshot ("Rotated to Landscape");
- // AbsoluteLayoutGalleryResizeToMinimumHeight ();
- // App.SetOrientationPortrait ();
- // App.Screenshot ("Rotated to Portrait");
- //}
- //}
-}
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-BoundViewUITest.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-BoundViewUITest.cs
deleted file mode 100644
index 4f2a733a18..0000000000
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-BoundViewUITest.cs
+++ /dev/null
@@ -1,93 +0,0 @@
-using NUnit.Framework;
-using Xamarin.UITest;
-using System;
-using System.Threading;
-
-namespace Xamarin.Forms.Core.UITests
-{
- [TestFixture]
- [Category ("Templated")]
- internal class BoundViewGalleryTests : BaseTestFixture
- {
- // TODO: Port to new conventions
-
- public BoundViewGalleryTests ()
- {
- ShouldResetPerFixture = false;
- }
-
- protected override void NavigateToGallery ()
- {
- App.NavigateToGallery (GalleryQueries.BoundPageGalleryLegacy);
- }
-
- //void AllElementsPresent ()
- //{
- // App.WaitForElement (q => q.Button ("Click Me!"));
- // App.Screenshot ("All elements present");
- //}
-
- [Test]
- [Description ("Test bound view navigation")]
- public void BoundViewGalleryNavigateToAndBack ()
- {
- App.Screenshot ("At Gallery");
-
-// AllElementsPresent ();
-
-// App.Tap (q => q.Button ("Click Me!"));
-// App.WaitForElement (q => q.Marked ("Second Page"), "Timeout : Second Page");
-// App.Screenshot ("Navigation to next page successful");
-
-// App.Tap (PlatformQueries.Back);
-// App.WaitForElement (q => q.Button ("Click Me!"), "Timeout : Click Me!");
-// App.Screenshot ("Navigation back successful");
- }
-
-// [Test]
-// [Description ("Test button click")]
-// public void BoundViewGalleryClickButton ()
-// {
-// App.Tap (q => q.Button ("Click Me!"));
-// App.WaitForElement (q => q.Marked ("Second Page"), "Timeout : Second Page");
-// }
-
-
-// [Test]
-// [Description ("Verify all elements are preset - landscape")]
-// public void BoundViewGalleryAllElementsPresentLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// Thread.Sleep (1000);
-// App.Screenshot ("Rotated to Landscape");
-// AllElementsPresent ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Description ("Test bound view navigation- landscape")]
-// public void BoundViewGalleryNavigateToAndBackLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// Thread.Sleep (1000);
-// App.Screenshot ("Rotated to Landscape");
-// BoundViewGalleryNavigateToAndBack ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Description ("Test button click - landscape")]
-// public void BoundViewGalleryClickButtonLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// Thread.Sleep (1000);
-// App.Screenshot ("Rotated to Landscape");
-// BoundViewGalleryClickButton ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
- }
-}
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-ButtonUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-ButtonUITests.cs
deleted file mode 100644
index 71443ce2a5..0000000000
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-ButtonUITests.cs
+++ /dev/null
@@ -1,98 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using NUnit.Framework;
-
-namespace Xamarin.Forms.Core.UITests
-{
- // Run these to test in CI before full suite
- [TestFixture]
- [Category ("Button")]
- internal class ButtonGalleryTests : BaseTestFixture
- {
- // TODO: Rotate Button - test rotation
- // TODO: Port to new conventions
-
- public ButtonGalleryTests ()
- {
- ShouldResetPerFixture = false;
- }
-
- protected override void NavigateToGallery ()
- {
- App.NavigateToGallery (GalleryQueries.ButtonGalleryLegacy);
- }
-
- [Test]
- [Description ("Disabled Button")]
- public void ButtonGalleryOnOffDisbledButton ()
- {
- App.Screenshot ("At Gallery");
-
- // App.ScrollDownForElement (q => q.Marked ("Cannot Tap"), 3);
- // App.Tap (q => q.Button ("Disabled Button"));
- // Assert.AreEqual (1, App.Query (q => q.Button ("Disabled Button")).Length);
- // App.Screenshot ("Tried to tap disabled button");
- // App.Tap (PlatformQueries.Switch);
- // App.Screenshot ("Tapped switch");
- // App.Tap (q => q.Button ("Disabled Button"));
- // App.WaitForElement (q => q.Marked ("TAPPED!"));
- // App.Screenshot ("Disabled button should not be enabled and change labels text");
- }
-
- //[Test]
- //[UiTest (Test.Device.StartTimer)]
- //[Description ("Clicking the 'Timer Button'")]
- //public void ButtonGalleryTimerButton ()
- //{
- // App.ScrollDownForElement (q => q.Marked ("Timer"), 10);
- // App.Screenshot ("Press 'Timer' Button");
-
- // App.Tap (q => q.Button ("Timer"));
-
- // App.WaitForElement (q => q.Marked ("Timer Elapsed 3"), "Timeout : Timer Elapsed 3");
- // App.Screenshot ("Timer button elapsed 3");
- //}
-
- //[Test]
- //[UiTest (Test.Page.DisplayAlert)]
- //public void ButtonGalleryAlertAccepted ()
- //{
- // App.ScrollDownForElement (q => q.Marked ("Alert"), 10);
-
- // App.Screenshot ("Press 'Alert' Button");
-
- // App.Tap (q => q.Marked ("Alert"));
- // App.WaitForElement (q => q.Marked ("Accept"), "Timeout : Accept");
-
- // App.Screenshot ("Press 'Accept' or 'Cancel'");
-
- // App.Tap (q => q.Marked ("Accept"));
- // App.WaitForElement (q => q.Button ("Accepted"), "Timeout : Accepted");
-
- // App.Screenshot ("See 'Accepted' or 'Cancelled'");
- //}
-
-
- //[Test]
- //[UiTest (Test.Page.DisplayAlert)]
- //public void ButtonGalleryAlertCancelled ()
- //{
- // App.ScrollDownForElement (q => q.Marked ("Alert"), 10);
-
- // App.Screenshot ("Press 'Alert' Button");
-
- // App.Tap (q => q.Marked ("Alert"));
- // App.WaitForElement (q => q.Marked ("Cancel"), "Timeout : Cancel");
-
- // App.Screenshot ("Press 'Accept' or 'Cancel'");
-
- // App.Tap (q => q.Marked ("Cancel"));
- // App.WaitForElement (q => q.Button ("Cancelled"), "Timeout : Cancelled");
-
- // App.Screenshot ("See 'Accepted' or 'Cancelled'");
- //}
- }
-}
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-CarouselPageUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-CarouselPageUITests.cs
deleted file mode 100644
index 14a6ed4b89..0000000000
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-CarouselPageUITests.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-using NUnit.Framework;
-
-using Xamarin.Forms.CustomAttributes;
-using Xamarin.UITest;
-
-namespace Xamarin.Forms.Core.UITests
-{
- [TestFixture]
- [Category ("CarouselPage")]
- internal class CarouselPageGalleryTests : BaseTestFixture
- {
- // TODO: Port to new conventions
-
- public CarouselPageGalleryTests ()
- {
- ShouldResetPerFixture = false;
- }
-
- protected override void NavigateToGallery ()
- {
- App.NavigateToGallery (GalleryQueries.CarouselPageGalleryLegacy);
- }
-
- [Test]
- [Description ("Swiping between screens")]
- [UiTest (typeof(CarouselPage))]
- public void CarouselPageGallerySwipeScreens ()
- {
- App.Screenshot ("At Gallery");
-
- // var rootViewWidth = App.Query (q => q.Raw ("*"))[0].Rect.Width;
- // var rootViewHeight = App.Query (q => q.Raw ("*"))[0].Rect.Height;
-
- // // Verify the elements can be touched
- // App.Tap (q => q.Button ("Click me one"));
- // App.WaitForNoElement (q => q.Marked ("No click one"), "Timeout : No click one");
- // App.WaitForElement (q => q.Marked ("Clicked one"), "Timeout : Clicked one");
-
- // App.Pan (new Drag (ScreenBounds, rootViewWidth - 20, rootViewHeight / 2, 20, rootViewHeight / 2, Drag.Direction.RightToLeft));
-
- // App.WaitForElement (q => q.Marked ("No click two"), "Timeout : No click two");
- // App.WaitForElement (q => q.Button ("Click me two"), "Timeout : Click me two");
- // App.Screenshot ("On page two");
-
- // // Verify the elements can be touched
- // App.Tap (q => q.Button ("Click me two"));
- // App.WaitForNoElement (q => q.Marked ("No click two"), "Timeout : No click two");
- // App.WaitForElement (q => q.Marked ("Clicked two"), "Timeout : Clicked two");
-
- // App.Pan (new Drag (ScreenBounds, rootViewWidth - 20, rootViewHeight / 2, 20, rootViewHeight / 2, Drag.Direction.RightToLeft));
-
- // App.WaitForElement (q => q.Marked ("No click three"), "Timeout : No click three");
- // App.WaitForElement (q => q.Button ("Click me three"), "Timeout : Click me three");
- // App.Screenshot ("On page three");
-
- // // Verify the elements can be touched
- // App.Tap (q => q.Button ("Click me three"));
- // App.WaitForNoElement (q => q.Marked ("No click three"), "Timeout : No click three");
- // App.WaitForElement (q => q.Marked ("Clicked three"), "Clicked three");
- // App.Screenshot ("All screens interacted with");
- }
- }
-}
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-CellsUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-CellsUITests.cs
index e6efd5f9a9..77daff1f3a 100644
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-CellsUITests.cs
+++ b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-CellsUITests.cs
@@ -211,32 +211,6 @@ namespace Xamarin.Forms.Core.UITests
App.Screenshot ("All EntryCells are present");
}
- [Description ("Entered text stays after scrolled out of view")]
- [Issue (IssueTracker.Github, 1024, "EntryCell with text set clears after scrolling off screen", PlatformAffected.Android)]
- [UiTest (typeof(EntryCell))]
- public void CellsGalleryIssue1024 ()
- {
- // TODO fix
-// App.ScrollForElement ("* marked:'EntryCell List'", new Drag (ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));
-//
-// App.Tap (q => q.Marked ("EntryCell List"));
-// App.WaitForElement (q => q.Marked ("Label 0"), "Timeout : Label 0");
-// App.Screenshot ("At EntryCell List Gallery");
-//
-// App.Tap (Queries.EntryCellWithPlaceholder ("Placeholder 1"));
-// App.EnterText (Queries.EntryCellWithPlaceholder ("Placeholder 1"), "I am going to be scrolled off screen");
-//
-// App.Screenshot ("Dismiss keyboard");
-//
-// App.ScrollForElement ("* marked:'Label 40'", new Drag (ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));
-// App.Screenshot ("Scroll down");
-//
-// App.ScrollForElement ("* marked:'Label 0'", new Drag (ScreenBounds, Drag.Direction.TopToBottom, Drag.DragLength.Medium));
-//
-// App.WaitForElement (Queries.EntryCellWithText ("I am going to be scrolled off screen"), "Timeout : Scrolled Entry with Text");
-// App.Screenshot ("Scroll back up to cell");
- }
-
[Test]
[Description ("TableView with EntryCells, all are present")]
[UiTest (typeof(TableView))]
@@ -283,31 +257,6 @@ namespace Xamarin.Forms.Core.UITests
App.Screenshot ("Completed should have changed label's text");
}
- //[Test]
- [Description ("Issue 1033 - page does not respect orientation changes")]
- public void CellsGalleryIssue1033 ()
- {
-// App.SetOrientationLandscape ();
-// App.Tap (q => q.Marked ("TextCell List"));
-// App.WaitForElement (q => q.Marked ("Text 2"), "Timeout : Text 2");
-// float listViewHeightLandscape = App.Query (q => q.Raw (Views.ListView))[0].Rect.Height;
-// App.Screenshot ("Landscape list");
-//
-//
-// App.NavigateBack ();
-// App.Screenshot ("Navigate back");
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Set orientation to portrait");
-//
-// App.Tap (q => q.Marked ("TextCell List"));
-// App.WaitForElement (q => q.Marked ("Text 2"), "Timeout : Text 2");
-// float listViewHeightPortrait = App.Query (q => q.Raw (Views.ListView))[0].Rect.Height;
-// App.Screenshot ("Portrait list");
-//
-// // Should be be the same size if the layout is resized
-// Assert.AreNotEqual (listViewHeightLandscape, listViewHeightPortrait);
- }
-
protected override void TestTearDown()
{
App.NavigateBack ();
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-ClipToBoundsUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-ClipToBoundsUITests.cs
deleted file mode 100644
index b6a8ebc8d4..0000000000
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-ClipToBoundsUITests.cs
+++ /dev/null
@@ -1,69 +0,0 @@
-using System;
-using System.Runtime;
-using NUnit.Framework;
-using Xamarin.UITest;
-using Xamarin.UITest.Shared;
-
-namespace Xamarin.Forms.Core.UITests
-{
- [TestFixture]
- [Category ("AbsoluteLayout")]
- internal class ClipToBoundsGalleryTests : BaseTestFixture
- {
- // TODO detect size before and after clip
- // TODO: Port to new conventions
-
- public ClipToBoundsGalleryTests ()
- {
- ShouldResetPerFixture = false;
- }
-
- protected override void NavigateToGallery ()
- {
- App.NavigateToGallery (GalleryQueries.ClipToBoundsGalleryLegacy);
- }
- [Test]
- [Description ("Check all elements exist")]
- public void ClipToBoundsGalleryAllElementsExist ()
- {
-// App.WaitForElement (q => q.Button ("Clip"), "Timeout : Clip");
-// var boxes = App.Query (PlatformQueries.BoxRendererQuery);
-// Assert.AreEqual (2, boxes.Length);
-// App.Screenshot ("2 boxes exist");
-
-
- }
-
-// [Test]
-// [Description ("Clip boxes")]
-// public void ClipToBoundsGalleryClipElements ()
-// {
-// App.Tap (q => q.Button ("Clip"));
-// App.Screenshot ("Clip elements");
-// }
-
-// [Test]
-// [Description ("Check all elements exist - landscape")]
-// public void ClipToBoundsGalleryAllElementsExistLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// ClipToBoundsGalleryAllElementsExist ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Description ("Clip boxes - landscape")]
-// public void ClipToBoundsGalleryClipElementsLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// ClipToBoundsGalleryClipElements ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
- // }
-
- }
-}
-
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-EditorUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-EditorUITests.cs
deleted file mode 100644
index df34deec0a..0000000000
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-EditorUITests.cs
+++ /dev/null
@@ -1,269 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using NUnit.Framework;
-using System.Threading;
-
-using Xamarin.Forms.CustomAttributes;
-
-namespace Xamarin.Forms.Core.UITests
-{
- [TestFixture]
- [Category ("Editor")]
- internal class EditorGalleryTests : BaseTestFixture
- {
- // TODO: Port to new conventions
-
- public EditorGalleryTests ()
- {
- ShouldResetPerFixture = false;
- }
-
- protected override void NavigateToGallery ()
- {
- App.NavigateToGallery (GalleryQueries.EditorGalleryLegacy);
- }
-
- [Test]
- [Category ("ManualReview")]
- [Description ("Try Default keyboard")]
- [UiTest (typeof (Editor), "Keyboard")]
- [UiTest (typeof (Keyboard), "Default")]
- public void EditorGalleryDefaultKeyboardGallery ()
- {
-// App.Tap (q => q.Marked ("Default Keyboard"));
-// App.WaitForElement (PlatformQueries.Editors, "Timeout : Editors");
-// App.Screenshot ("At Default Keyboard Gallery");
-
-// App.Tap (PlatformQueries.Editors);
-// // App.KeyboardIsPresent ();
-// App.Screenshot ("Keyboard showing");
-
-// var text = "This is some text that I am entering";
-// App.EnterText (PlatformQueries.Editors, text);
-// App.WaitForElement (PlatformQueries.EditorsWithText (text), "Timeout : Editor with Text " + text);
-// App.Screenshot ("Text Entered");
-
-// App.PressEnter ();
-// // App.KeyboardIsDismissed ();
-// App.Screenshot ("Pressed enter");
- }
-
-// [Test]
-// [Category ("ManualReview")]
-// [Description ("Editor.Completed Fires")]
-// [UiTest (Test.Views.Editor)]
-// [UiTest (Test.Editor.Completed)]
-// public void EditorGalleryDefaultKeyboardGalleryCompletedFires ()
-// {
-// App.Tap (q => q.Marked ("Default Keyboard"));
-// App.WaitForElement (PlatformQueries.Editors, "Timeout : Editors");
-// App.Screenshot ("At Default Keyboard Gallery");
-
-// App.Tap (PlatformQueries.Editors);
-// // App.KeyboardIsPresent ();
-// App.Screenshot ("Keyboard showing");
-// App.EnterText (PlatformQueries.Editors, "First Line");
-// App.PressEnter ();
-
-// App.Screenshot ("Pressed enter");
-// App.EnterText (PlatformQueries.Editors, "Second Line");
-// App.Screenshot ("Entered second line");
-// App.Tap (PlatformQueries.LabelWithText("Nothing entered"));
-// App.Screenshot ("Keyboard dismissed");
-//// App.Tap (q => q.Marked ("Done"));
-
-
-// App.WaitForNoElement (q => q.Marked ("Nothing entered"));
-// App.Screenshot ("Test complete");
-//// App.WaitForElement (q => q.Marked ("Entered : First Line Second Line"));
-// }
-
-// [Test]
-// [Category ("ManualReview")]
-// [Description ("Try Chat keyboard")]
-// [UiTest (Test.Views.Editor)]
-// [UiTest (Test.InputView.Keyboard)]
-// [UiTest (Test.Keyboard.Chat)]
-// public void EditorGalleryChatKeyboardGallery ()
-// {
-// App.Tap (q => q.Marked ("Chat Keyboard"));
-// App.WaitForElement (PlatformQueries.Editors, "Timeout : Editors");
-// App.Screenshot ("At Chat Keyboard Gallery");
-
-// App.Tap (PlatformQueries.Editors);
-// // App.KeyboardIsPresent ();
-// App.Screenshot ("Keyboard showing");
-
-// var text = "This is some text that I am entering";
-// App.EnterText (PlatformQueries.Editors, text);
-// App.WaitForElement (PlatformQueries.EditorsWithText (text), "Timeout : Editor with Text " + text);
-// App.Screenshot ("Text Entered");
-
-// App.PressEnter ();
-// // App.KeyboardIsDismissed ();
-// App.Screenshot ("Pressed enter");
-// }
-
-// [Test]
-// [Category ("ManualReview")]
-// [Description ("Try Text keyboard")]
-// [UiTest (Test.Views.Editor)]
-// [UiTest (Test.InputView.Keyboard)]
-// [UiTest (Test.Keyboard.Text)]
-// public void EditorGalleryTextKeyboardGallery ()
-// {
-// App.Tap (q => q.Marked ("Text Keyboard"));
-// App.WaitForElement (PlatformQueries.Editors, "Timeout : Editors");
-// App.Screenshot ("At Text Keyboard Gallery");
-
-// App.Tap (PlatformQueries.Editors);
-// // App.KeyboardIsPresent ();
-// App.Screenshot ("Keyboard showing");
-
-// var text = "This is some text that I am entering";
-// App.EnterText (PlatformQueries.Editors, text);
-// App.WaitForElement (PlatformQueries.EditorsWithText (text), "Timeout : Editor with Text " + text);
-// App.Screenshot ("Text Entered");
-
-// App.PressEnter ();
-// // App.KeyboardIsDismissed ();
-// App.Screenshot ("Pressed enter");
-// }
-
-// [Test]
-// [Category ("ManualReview")]
-// [Description ("Try Url keyboard")]
-// [UiTest (Test.Views.Editor)]
-// [UiTest (Test.InputView.Keyboard)]
-// [UiTest (Test.Keyboard.Url)]
-// public void EditorGalleryUrlKeyboardGallery ()
-// {
-// App.Tap (q => q.Marked ("Url Keyboard"));
-// App.WaitForElement (PlatformQueries.Editors, "Timeout : Editors");
-// App.Screenshot ("At Url Keyboard Gallery");
-
-// App.Tap (PlatformQueries.Editors);
-// // App.KeyboardIsPresent ();
-// App.Screenshot ("Keyboard showing");
-
-// var text = "https://www.xamarin.com";
-// App.EnterText (PlatformQueries.Editors, text);
-// App.WaitForElement (PlatformQueries.EditorsWithText (text), "Timeout : Editor with Text " + text);
-// App.Screenshot ("Text Entered");
-
-// App.PressEnter ();
-// // App.KeyboardIsDismissed ();
-// App.Screenshot ("Pressed enter");
-// }
-
-// [Test]
-// [Category ("ManualReview")]
-// [Description ("Try Numeric keyboard")]
-// [UiTest (Test.Views.Editor)]
-// [UiTest (Test.InputView.Keyboard)]
-// [UiTest (Test.Keyboard.Numeric)]
-// public void EditorGalleryNumericKeyboardGallery ()
-// {
-// App.Tap (q => q.Marked ("Numeric Keyboard"));
-// App.WaitForElement (PlatformQueries.Editors, "Timeout : Editors");
-// App.Screenshot ("At Numeric Keyboard Gallery");
-
-// App.Tap (PlatformQueries.Editors);
-// // App.KeyboardIsPresent ();
-// App.Screenshot ("Keyboard showing");
-
-// var text = "12345678910";
-// App.EnterText (PlatformQueries.Editors, text);
-// App.WaitForElement (PlatformQueries.EditorsWithText (text), "Timeout : Editor with Text " + text);
-// App.Screenshot ("Text Entered");
-// }
-
-// [Test]
-// [Description ("TextChanged event")]
-// [UiTest (Test.Views.Editor)]
-// [UiTest (Test.Editor.TextChanged)]
-// public void EditorGalleryDefaultKeyboardTextChanged ()
-// {
-// App.Tap (q => q.Marked ("Default Keyboard"));
-// App.WaitForElement (PlatformQueries.Editors, "Timeout : Editors");
-// App.Screenshot ("At Default Keyboard Gallery");
-
-// App.EnterText (PlatformQueries.Editors, "ABC");
-// App.Screenshot ("Entered three characters");
-// App.WaitForElement (PlatformQueries.LabelWithText ("xxx"));
-// var labelText = App.GetTextForQuery (PlatformQueries.LabelWithIndex (1));
-// Assert.AreEqual ("xxx", labelText);
-// }
-
-// [Test]
-// [Description ("TextChanged event - Issue #")]
-// [UiTest (Test.Views.Editor)]
-// [UiTest (Test.Editor.TextChanged)]
-// public void EditorGalleryChatKeyboardTextChanged ()
-// {
-// App.Tap (q => q.Marked ("Chat Keyboard"));
-// App.WaitForElement (PlatformQueries.Editors, "Timeout : Editors");
-// App.Screenshot ("At Chat Keyboard Gallery");
-
-// App.EnterText (PlatformQueries.Editors, "ABC");
-// App.Screenshot ("Entered three characters");
-// App.WaitForElement (PlatformQueries.LabelWithText ("xxx"));
-// var labelText = App.GetTextForQuery (PlatformQueries.LabelWithIndex (1));
-// Assert.AreEqual ("xxx", labelText);
-// }
-
-// [Test]
-// [Description ("TextChanged event")]
-// [UiTest (Test.Views.Editor)]
-// [UiTest (Test.Editor.TextChanged)]
-// public void EditorGalleryNumericKeyboardTextChanged ()
-// {
-// App.Tap (q => q.Marked ("Numeric Keyboard"));
-// App.WaitForElement (PlatformQueries.Editors, "Timeout : Editors");
-// App.Screenshot ("At Numeric Keyboard Gallery");
-
-// App.EnterText (PlatformQueries.Editors, "123");
-// App.Screenshot ("Entered three characters");
-// App.WaitForElement (PlatformQueries.LabelWithText ("xxx"));
-// var labelText = App.GetTextForQuery (PlatformQueries.LabelWithIndex (1));
-// Assert.AreEqual ("xxx", labelText);
-// }
-
-// [Test]
-// [Description ("TextChanged event")]
-// [UiTest (Test.Views.Editor)]
-// [UiTest (Test.Editor.TextChanged)]
-// public void EditorGalleryTextKeyboardTextChanged ()
-// {
-// App.Tap (q => q.Marked ("Text Keyboard"));
-// App.WaitForElement (PlatformQueries.Editors, "Timeout : Editors");
-// App.Screenshot ("At Text Keyboard Gallery");
-
-// App.EnterText (PlatformQueries.Editors, "ABC");
-// App.Screenshot ("Entered three characters");
-// App.WaitForElement (PlatformQueries.LabelWithText ("xxx"));
-// var labelText = App.GetTextForQuery (PlatformQueries.LabelWithIndex (1));
-// Assert.AreEqual ("xxx", labelText);
-// }
-
-// [Test]
-// [Description ("TextChanged event")]
-// [UiTest (Test.Views.Editor)]
-// [UiTest (Test.Editor.TextChanged)]
-// public void EditorGalleryUrlKeyboardTextChanged ()
-// {
-// App.Tap (q => q.Marked ("Url Keyboard"));
-// App.WaitForElement (PlatformQueries.Editors, "Timeout : Editors");
-// App.Screenshot ("At Url Keyboard Gallery");
-
-// App.EnterText (PlatformQueries.Editors, "ABC");
-// App.Screenshot ("Entered three characters");
-// App.WaitForElement (PlatformQueries.LabelWithText ("xxx"));
-// var labelText = App.GetTextForQuery (PlatformQueries.LabelWithIndex (1));
-// Assert.AreEqual ("xxx", labelText);
-// }
- }
-}
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-EntryUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-EntryUITests.cs
deleted file mode 100644
index d3fc8908be..0000000000
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-EntryUITests.cs
+++ /dev/null
@@ -1,297 +0,0 @@
-using System;
-using NUnit.Framework;
-using System.Collections.Generic;
-using Xamarin.UITest.Queries;
-
-namespace Xamarin.Forms.Core.UITests
-{
- [TestFixture]
- [Category ("Entry")]
- internal class EntryGalleryTests : BaseTestFixture
- {
- // TODO: Get Toggle color tests for both iOS and Android, Keyboard dismisses for Enter
- // TODO: Port to new conventions
-
- public EntryGalleryTests ()
- {
- ShouldResetPerFixture = false;
- }
-
- protected override void NavigateToGallery ()
- {
- App.NavigateToGallery (GalleryQueries.EntryGalleryLegacy);
- }
- [Test]
- [Description ("All Entry Gallery elements are present")]
- public void EntryGalleryAllElementsPresent ()
- {
-
-// var entryElements = new [] {
-// q => q.Marked ("Enter something in Normal"),
-// q => q.Marked ("No typing has happened in Normal yet"),
-// PlatformQueries.EntryWithPlaceholder ("Normal"),
-// PlatformQueries.EntryWithPlaceholder ("Password"),
-// PlatformQueries.EntryWithPlaceholder ("Numeric Password"),
-// q => q.Marked ("Focus an Entry"),
-// PlatformQueries.EntryWithPlaceholder ("Disabled"),
-// PlatformQueries.EntryWithPlaceholder ("Activation"),
-// PlatformQueries.EntryWithPlaceholder ("Transparent"),
-// PlatformQueries.EntryWithPlaceholder ("Keyboard.Default")
-// };
-
-// foreach (var entry in entryElements)
-// App.ScrollDownForElement (entry, 10);
-
-// var buttons = new [] {
-// "Toggle Text Color",
-// "Toggle Secure",
-// "Change Placeholder",
-// "Focus First"
-// };
-
-// foreach (var button in buttons)
-// App.ScrollDownForElement (q => q.Button (button), 10);
-
-// App.Screenshot ("All elements present");
- }
-
-// [Test]
-// [Category ("ManualReview")]
-// [Description ("Check that the keyboard shows for each Entry")]
-// public void EntryGalleryKeyboardDisplays ()
-// {
-// AppRect windowBounds = App.MainScreenBounds ();
-
-// var placeHolders = new [] {
-// "Normal",
-// "Password",
-// "Numeric Password",
-// "Disabled",
-// "Activation",
-// "Transparent",
-// "Keyboard.Default"
-// };
-
-// foreach (var placeholder in placeHolders) {
-// App.ScrollDownForElement (PlatformQueries.EntryWithPlaceholder (placeholder), 3);
-// if (placeholder != "Disabled") {
-// App.Tap (PlatformQueries.EntryWithPlaceholder (placeholder));
-// //App.KeyboardIsPresent ();
-// App.Screenshot ("Keyboard shown: " + placeholder);
-// // Tap empty part of screen
-// App.TapCoordinates (10, windowBounds.Height / 3);
-// } else { // Disabled entry should not show keyboard
-// App.Tap (PlatformQueries.EntryWithPlaceholder (placeholder));
-// //App.KeyboardIsDismissed ();
-// App.Screenshot ("Keyboard not shown: " + placeholder);
-// }
-// }
-
-// App.Screenshot ("Keyboard should be dismissed");
-// }
-
-// [Test]
-// [Category ("ManualReview")]
-// [Description ("Enter text in each entry")]
-// public void EntryGalleryEnterTextInEachFieldAndTapScreenDismiss ()
-// {
-// var entries = new [] {
-// new { Placeholder = "Normal", LabelValue = "Normal Focused" },
-// new { Placeholder = "Password", LabelValue = "Password Focused" },
-// new { Placeholder = "Numeric Password", LabelValue = "Numeric Password Focused" },
-// new { Placeholder = "Disabled", LabelValue = "Disabled Focused" },
-// new { Placeholder = "Activation", LabelValue = "Activation Focused" },
-// new { Placeholder = "Transparent", LabelValue = "Transparent Focused" },
-// new { Placeholder = "Keyboard.Default", LabelValue = "Keyboard.Default Focused" },
-// };
-
-// AppRect windowBounds = App.MainScreenBounds ();
-// int helloNum = 0;
-
-// foreach (var entry in entries) {
-// App.ScrollDownForElement (PlatformQueries.EntryWithPlaceholder (entry.Placeholder), 3);
-// if (entry.Placeholder == "Disabled") {
-// App.Tap (PlatformQueries.EntryWithPlaceholder (entry.Placeholder));
-// // App.KeyboardIsDismissed ();
-// } else if (entry.Placeholder == "Numeric Password") {
-// App.Tap (PlatformQueries.EntryWithPlaceholder (entry.Placeholder));
-// // App.KeyboardIsPresent ();
-// App.EnterText (PlatformQueries.EntryWithPlaceholder (entry.Placeholder), "167728");
-// App.TapCoordinates (10, windowBounds.Height / 3);
-// } else {
-// App.Tap (PlatformQueries.EntryWithPlaceholder (entry.Placeholder));
-// // App.KeyboardIsPresent ();
-// App.EnterText (PlatformQueries.EntryWithPlaceholder (entry.Placeholder), "Hello " + helloNum);
-// App.TapCoordinates (10, windowBounds.Height / 3);
-// helloNum++;
-// }
-// }
-
-// App.Screenshot ("Entered text in each entry, password should be hidden");
-// App.Tap (q => q.Button ("Toggle Secure"));
-
-// App.ScrollUpForElement (q => q.Marked ("Hello 0"), 5);
-// App.ScrollDownForElement (q => q.Marked ("Hello 1"), 5);
-// App.ScrollDownForElement (q => q.Marked ("167728"), 5);
-// App.ScrollDownForElement (q => q.Marked ("Hello 3"), 5);
-// App.ScrollDownForElement (q => q.Marked ("Hello 4"), 5);
-// App.ScrollDownForElement (q => q.Marked ("Hello 5"), 5);
-
-// App.Screenshot ("Entered text in each entry, password should be shown");
-// }
-
-//// [Test]
-//// public void ToggleTextColor ()
-//// {
-//// AllElementsPresent ();
-////
-//// var text = "hello";
-//// App.EnterText (PlatformQueries.EntryWithPlaceholder ("Normal"), text);
-//// var initialTextColor = App.Query (q => q.Raw (string.Format ("{0} {1}:'{2}', :getCurrentTextColor", PlatformStrings.Entry, PlatformStrings.Text, text)));
-//// App.Tap (q => q.Button ("Toggle Text Color"));
-//// var secondTextColor = App.Query (q => q.Raw (string.Format ("{0} {1}:'{2}', :getCurrentTextColor", PlatformStrings.Entry, PlatformStrings.Text, text)));
-//// Assert.AreNotEqual (initialTextColor, secondTextColor);
-//// }
-
-// [Test]
-// [Description ("Change Placeholder in each entry")]
-// public void EntryGalleryChangePlaceholder ()
-// {
-// for (var i = 1; i <= 5; i++) {
-// App.ScrollDownForElement (q => q.Button ("Change Placeholder"), 5);
-// App.Tap (q => q.Button ("Change Placeholder"));
-// App.ScrollUpForElement (PlatformQueries.EntryWithPlaceholder ("Placeholder " + i), 5);
-// }
-
-// App.Screenshot ("Changed placeholder 5 times");
-// }
-
-// [Test]
-// [Category ("ManualReview")]
-// [Description ("Update Keyboard Type - #1307")]
-// public void EntryGalleryChangeKeyboardType ()
-// {
-// App.ScrollDownForElement (PlatformQueries.EntryWithPlaceholder ("Keyboard.Default"), 5);
-// App.Tap (PlatformQueries.EntryWithPlaceholder ("Keyboard.Default"));
-// App.Screenshot ("I should see the default keyboard");
-// App.PressEnter ();
-// App.Screenshot ("Keyboard should be dismissed");
-// App.Screenshot ("Manually check that keyboard type is switched");
-//// App.WaitForElement (PlatformQueries.EntryWithPlaceholder ("Keyboard.Numeric"));
-//// App.Tap (PlatformQueries.EntryWithPlaceholder ("Keyboard.Numeric"));
-// App.Screenshot ("I should see the numeric keyboard");
-// }
-
-// [Test]
-// [Category ("ManualReview")]
-// [Description ("Completed handler firing, keyboard dismissing - #1308")]
-// public void EntryGalleryCheckCompletedKeyboardDismissed ()
-// {
-// App.WaitForElement (q => q.Marked ("Enter something in Normal"));
-// App.ScrollDownForElement (PlatformQueries.EntryWithPlaceholder ("Normal"), 5);
-// App.Tap (PlatformQueries.EntryWithPlaceholder ("Normal"));
-// App.Screenshot ("Tapped Normal");
-// App.EnterText (PlatformQueries.EntryWithPlaceholder ("Normal"), "It has been entered");
-// App.Screenshot ("The keyboard should be shown");
-// // App.PressEnter ();
-// App.Screenshot ("Keyboard should be dismissed - Check manually");
-// //App.WaitForNoElement (q => q.Marked ("Enter something in Normal"));
-// //App.ScrollUpForElement (q => q.Marked ("It has been entered"), 5);
-// App.Screenshot ("Text should have changed");
-// }
-
-// [Test]
-// [Description ("Test the TextChanged event")]
-// public void EntryGalleryTextChangedEventTest ()
-// {
-// App.Screenshot ("Waiting for entry gallery");
-// App.WaitForElement (q => q.Marked ("No typing has happened in Normal yet"));
-// App.Screenshot ("Entering text in Normal");
-// App.EnterText (PlatformQueries.EntryWithPlaceholder ("Normal"), "a");
-// App.WaitForElement (q => q.Marked ("You typed in normal"));
-// App.Screenshot ("Text entered, TextChanged event should have fired");
-// }
-
-
-// [Test]
-// [Description ("All Entry Gallery elements are present - landscape")]
-// public void EntryGalleryAllElementsPresentLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// EntryGalleryAllElementsPresent ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Category ("ManualReview")]
-// [Description ("Check that the keyboard shows for each Entry - landscape")]
-// public void EntryGalleryKeyboardDisplaysLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// EntryGalleryKeyboardDisplays ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Category ("ManualReview")]
-// [Description ("Enter text in each entry - landscape")]
-// public void EntryGalleryEnterTextInEachFieldAndTapScreenDismissLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// EntryGalleryEnterTextInEachFieldAndTapScreenDismiss ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Description ("Change Placeholder in each entry - landscape")]
-// public void EntryGalleryChangePlaceholderLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// EntryGalleryChangePlaceholder ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Category ("ManualReview")]
-// [Description ("Update Keyboard Type - #1307 - Landscape")]
-// public void EntryGalleryChangeKeyboardTypeLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// EntryGalleryChangeKeyboardType ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Description ("Completed handler firing, keyboard dismissing - #1308 - Landscape")]
-// public void EntryGalleryCheckCompletedKeyboardDismissedLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// EntryGalleryCheckCompletedKeyboardDismissed ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Description ("Test the TextChanged event - Landscape")]
-// public void EntryGalleryTextChangedEventTestLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// EntryGalleryTextChangedEventTest ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
- }
-}
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-GridGalleryUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-GridGalleryUITests.cs
deleted file mode 100644
index 04b59460b3..0000000000
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-GridGalleryUITests.cs
+++ /dev/null
@@ -1,132 +0,0 @@
-using NUnit.Framework;
-
-using Xamarin.Forms.CustomAttributes;
-using Xamarin.UITest;
-using Xamarin.UITest.Queries;
-using System.Threading;
-
-namespace Xamarin.Forms.Core.UITests
-{
- [TestFixture]
- [Category ("GridLayout")]
- internal class GridLayoutGalleryTests : BaseTestFixture
- {
- // TODO - test Absolutes
- // TODO: Port to new conventions
-
- public GridLayoutGalleryTests ()
- {
- ShouldResetPerFixture = false;
- }
-
- protected override void NavigateToGallery ()
- {
- App.NavigateToGallery (GalleryQueries.GridGalleryLegacy);
- }
-
- //void AllElementsPresent ()
- //{
- // App.ScrollForElement ("* marked:'Column Types:'", new Drag (ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));
- // App.ScrollForElement ("* marked:'Absolute Width'", new Drag (ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));
- // App.ScrollForElement ("* marked:'Auto Width'", new Drag (ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));
- // App.ScrollForElement ("* marked:'Star'", new Drag (ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));
- // App.ScrollForElement ("* marked:'*'", new Drag (ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));
- // App.ScrollForElement ("* marked:'**'", new Drag (ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));
- // App.ScrollForElement ("* marked:'***'", new Drag (ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));
- // App.ScrollForElement ("* marked:'Right'", new Drag (ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));
- // App.ScrollForElement ("* marked:'Center'", new Drag (ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));
- // App.ScrollForElement ("* marked:'Left'", new Drag (ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));
- // App.ScrollForElement ("* marked:'Fill'", new Drag (ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));
- // App.ScrollForElement ("* marked:'Spans:'", new Drag (ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));
- // App.ScrollForElement ("* marked:'Spanning 4 columns'", new Drag (ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));
- // App.ScrollForElement ("* marked:'Spanning 3 rows'", new Drag (ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));
- // App.ScrollForElement ("* marked:'Spanning 4 columns'", new Drag (ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));
- // App.ScrollForElement ("* marked:'a block 3x3'", new Drag (ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));
-
- // App.Screenshot ("All elements present");
- //}
-
-
- [Test]
- [Category("ManualReview")]
- [Description ("Check Grid Star sizing")]
- [UiTest (typeof(Grid))]
- public void GridLayoutGalleryStarLayout ()
- {
- // AllElementsPresent ();
-
- // App.ScrollForElement ("* marked:'*'", new Drag (ScreenBounds, Drag.Direction.TopToBottom, Drag.DragLength.Medium));
-
- // var oneStarWidth = App.Query (q => q.Marked ("*"))[0].Rect.Width;
- // var twoStarWidth = App.Query (q => q.Marked ("**"))[0].Rect.Width;
- // var threeStarWidth = App.Query (q => q.Marked ("***"))[0].Rect.Width;
-
- // Assert.AreEqual (threeStarWidth, oneStarWidth * 3, 2.0);
- // Assert.AreEqual (twoStarWidth, oneStarWidth * 2, 2.0);
-
- // App.Screenshot ("Star layout correct");
- }
-
- // TODO port to new framework
- //[Test]
- //[UiTest (Test.Layouts.Grid)]
- //public void GridLayoutGallerySpanSizes ()
- //{
- // AllElementsPresent ();
-
- // var unitWidth = App.Query (q => q.Marked ("Unit"))[0].Rect.Width;
- // var unitHeight = App.Query (q => q.Marked ("Unit"))[0].Rect.Height;
-
- // var spanningFourColumnsWidth = App.Query (q => q.Marked ("Spanning 4 columns"))[0].Rect.Width;
- // var spanningFourColumnsHeight = App.Query (q => q.Marked ("Spanning 4 columns"))[0].Rect.Height;
-
- // // platform queries deal with label rendering differences
- // var threeXThreeWidth = App.Query (PlatformQueries.ThreeXThreeGridCell) [0].Rect.Width;
- // var threeXThreeHeight = App.Query (PlatformQueries.ThreeXThreeGridCell) [0].Rect.Height;
-
- // var spanningThreeRowsWidth = App.Query (PlatformQueries.SpanningThreeRows)[0].Rect.Width;
- // var spanningThreeRowsHeight = App.Query (PlatformQueries.SpanningThreeRows)[0].Rect.Height;
-
- // Assert.AreEqual (spanningFourColumnsWidth, unitWidth * 4, 2.0);
- // Assert.AreEqual (spanningFourColumnsHeight, unitHeight, 2.0);
-
- // Assert.AreEqual (threeXThreeWidth, unitWidth * 3, 2.0);
- // Assert.AreEqual (threeXThreeHeight, unitHeight * 3, 2.0);
-
- // Assert.AreEqual (spanningThreeRowsWidth, unitWidth, 2.0);
- // Assert.AreEqual (spanningThreeRowsHeight, unitHeight * 3, 2.0);
-
- // App.Screenshot ("Span sizes correct");
- //}
-
- // TODO port to new framework
- //[Test]
- //[UiTest (Test.Layouts.Grid)]
- //public void GridLayoutGalleryResizesProperlyAfterRotation ()
- //{
- // // Displays GridLayout bug on rotation (Issue #854)
- // AllElementsPresent ();
-
- // AppRect detailBounds = App.DetailPage ().Rect;
-
- // var oneStarWidth = App.Query (q => q.Marked ("*"))[0].Rect.Width;
- // var twoStarWidth = App.Query (q => q.Marked ("**"))[0].Rect.Width;
- // var threeStarWidth = App.Query (q => q.Marked ("***"))[0].Rect.Width;
-
- // Assert.AreEqual (detailBounds.Width, oneStarWidth + twoStarWidth + threeStarWidth, 1.0);
- // App.Screenshot ("All stars fill portrait screen width");
-
- // App.SetOrientationLandscape ();
-
- // AppRect detailBoundsAfterRotation = App.DetailPage ().Rect;
- // var oneStarWidthAfterRotation = App.Query (q => q.Marked ("*"))[0].Rect.Width;
- // var twoStarWidthAfterRotation = App.Query (q => q.Marked ("**"))[0].Rect.Width;
- // var threeStarWidthAfterRotation = App.Query (q => q.Marked ("***"))[0].Rect.Width;
-
- // Assert.AreEqual (detailBoundsAfterRotation.Width, oneStarWidthAfterRotation + twoStarWidthAfterRotation + threeStarWidthAfterRotation, 1.0);
- // App.Screenshot ("Grid stars resized");
-
- // App.SetOrientationPortrait ();
- //}
- }
-}
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-GroupedListActionsUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-GroupedListActionsUITests.cs
deleted file mode 100644
index 374e0633c1..0000000000
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-GroupedListActionsUITests.cs
+++ /dev/null
@@ -1,273 +0,0 @@
-using NUnit.Framework;
-using System.Threading;
-
-namespace Xamarin.Forms.Core.UITests
-{
- [TestFixture]
- [Category ("ListView")]
- internal class GroupedListActionsGalleryTests : BaseTestFixture
- {
- // TODO Group item actions, isolate specific indices (iOS is by 1, Android by two for cells)
- // TODO: Port to new conventions
-
- public GroupedListActionsGalleryTests ()
- {
- ShouldResetPerFixture = false;
- }
-
- protected override void NavigateToGallery ()
- {
- App.NavigateToGallery (GalleryQueries.GroupedListActionsGalleryLegacy);
- }
-
- [Test]
- [Description ("All of the grouped list actions are displayed")]
- public void GroupedListActionsGalleryAllElementsExist ()
- {
-// var actions = new [] {
-// "General",
-// "Change group name",
-// "Change group short name",
-// "Child item actions",
-// "Clear this group",
-// "Insert group item",
-// "Insert 2 group items",
-// "Remove next item",
-// "Dummy item RDI",
-// "Remove next 2 dummy items",
-// "Dummy item RmDI-1",
-// "Dummy item RmDI-2",
-// "Replace dummy item",
-// "Dummy item RpDI",
-// "Replace next two dummy items",
-// "Dummy item RpDI-1",
-// "Dummy item RpDI-2",
-// "Select next dummy item",
-// "Dummy item SI",
-// "Move dummy above this one",
-// "Dummy item MDI",
-// "Move last 2 items above this one",
-// "Dummy item M2DI-1",
-// "Dummy item M2DI-2",
-// "Group item actions",
-// "Clear all",
-// "Insert group",
-// "Insert 2 groups",
-// "Remove previous dummy group",
-// "Remove previous 2 dummy groups",
-// "Replace previous dummy group",
-// "Replace previous 2 dummy groups",
-// "Move next group above",
-// "Move next 2 groups above"
-// };
-
-// foreach (var action in actions) {
-// App.ScrollDownForElement (q => q.Marked (action), 40);
-// }
-
-// App.Screenshot ("All actions are preset");
- }
-
-// [Test]
-// [Description ("Change group name")]
-// public void GroupedListActionsGalleryChangeGroupName ()
-// {
-// App.ScrollDownForElement (q => q.Marked ("General"), 40);
-// App.Screenshot ("Before changing group name");
-// App.Tap (q => q.Marked ("Change group name"));
-// App.WaitForElement (q => q.Marked ("General (changed)"));
-// App.Screenshot ("After changing group name");
-// }
-
-// [Test]
-// [Description ("Child actions - clear group")]
-// public void GroupedListActionsGalleryChildClearGroup ()
-// {
-// App.ScrollDownForElement (q => q.Marked ("Clear this group"), 40);
-// App.Screenshot ("Before clearing group");
-// App.Tap (q => q.Marked ("Clear this group"));
-// App.WaitForNoElement (q => q.Marked ("Insert group item"));
-// App.WaitForNoElement (q => q.Marked ("Insert 2 group items"));
-// App.Screenshot ("After clearing the group");
-// }
-
-// [Test]
-// [Description ("Child actions - insert item(s)")]
-// public void GroupedListActionsGalleryChildInsertItems ()
-// {
-// App.ScrollDownForElement (q => q.Marked ("Insert group item"), 40);
-// App.Screenshot ("Before inserting item");
-
-// App.Tap (q => q.Marked ("Insert group item"));
-// App.ScrollUpForElement (q => q.Marked ("Inserted item S"), 2);
-// App.WaitForElement (q => q.Marked ("Inserted item S"));
-// App.Screenshot ("After inserting item");
-
-// App.ScrollDownForElement (q => q.Marked ("Insert 2 group items"), 2);
-// App.Tap (q => q.Marked ("Insert 2 group items"));
-// App.ScrollUpForElement (q => q.Marked ("Inserted item D 0"), 2);
-// App.WaitForElement (q => q.Marked ("Inserted item D 0"));
-// App.WaitForElement (q => q.Marked ("Inserted item D 1"));
-// App.Screenshot ("After inserting 2 items");
-// }
-
-
-// [Test]
-// [Description ("Child actions - remove item(s)")]
-// public void GroupedListActionsGalleryChildRemoveItems ()
-// {
-// App.ScrollDownForElement (q => q.Marked ("Remove next item"), 40);
-// App.Screenshot ("Before removing item");
-
-// App.Tap (q => q.Marked ("Remove next item"));
-// App.WaitForNoElement (q => q.Marked ("Dummy item RDI"));
-// App.Screenshot ("After removing item");
-
-// App.ScrollDownForElement (q => q.Marked ("Remove next 2 dummy items"), 40);
-// App.Tap (q => q.Marked ("Remove next 2 dummy items"));
-// App.WaitForNoElement (q => q.Marked ("Dummy item RmDI-1"));
-// App.WaitForNoElement (q => q.Marked ("Dummy item RmDI-2"));
-// App.Screenshot ("After removing 2 items");
-// }
-
-// [Test]
-// [Description ("Child actions - replace item(s)")]
-// public void GroupedListActionsGalleryChildReplaceItems ()
-// {
-// App.ScrollDownForElement (q => q.Marked ("Replace dummy item"), 40);
-// App.Screenshot ("Before replacing item");
-
-// App.Tap (q => q.Marked ("Replace dummy item"));
-// App.WaitForNoElement (q => q.Marked ("Dummy item RpDI"));
-// App.ScrollDownForElement (q => q.Marked ("Replaced item"), 2);
-// App.Screenshot ("After replacing item");
-
-// App.ScrollDownForElement (q => q.Marked ("Replace next two dummy items"), 40);
-// App.Tap (q => q.Marked ("Replace next two dummy items"));
-// App.WaitForNoElement (q => q.Marked ("Dummy item RpDI-1"));
-// App.WaitForNoElement (q => q.Marked ("Dummy item RpDI-2"));
-// App.WaitForElement (q => q.Marked ("Replaced items 0"));
-// App.WaitForElement (q => q.Marked ("Replaced items 1"));
-// App.Screenshot ("After replacing 2 items");
-// }
-
-// [Test]
-// [Category ("ManualReview")]
-// [Description ("Child actions - select item(s)")]
-// public void GroupedListActionsGalleryChildSelectItems ()
-// {
-// App.ScrollDownForElement (q => q.Marked ("Select next dummy item"), 40);
-// App.Screenshot ("Before selecting item");
-// App.Tap (q => q.Marked ("Select next dummy item"));
-// App.Screenshot ("After selecting item");
-// }
-
-// [Test]
-// [Category ("ManualReview")]
-// [Description ("Child actions - move item(s)")]
-// public void GroupedListActionsGalleryChildMoveItems ()
-// {
-// App.ScrollDownForElement (q => q.Marked ("Move dummy above this one"), 40);
-// App.Screenshot ("Before moving item");
-
-// App.Tap (q => q.Marked ("Move dummy above this one"));
-// App.Screenshot ("Dummy item MDI should now be above 'Move dummy above this one'");
-
-// App.Tap (q => q.Marked ("Move last 2 items above this one"));
-// App.Screenshot ("Dummy item M2DI-1 and M2DI-2 should now be above 'Move last 2 items above this one'");
-
-// }
-
-// [Test]
-// [Description ("Child item action test - landscape")]
-// public void GroupedListActionsGalleryAllElementsExistLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// GroupedListActionsGalleryAllElementsExist ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to portrait");
-// }
-
-// [Test]
-// [Description ("Change group name - landscape")]
-// public void GroupedListActionsGalleryChangeGroupNameLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// GroupedListActionsGalleryChangeGroupName ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to portrait");
-// }
-
-// [Test]
-// [Description ("Child actions - clear group - landscape")]
-// public void GroupedListActionsGalleryChildClearGroupLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// GroupedListActionsGalleryChildClearGroup ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to portrait");
-// }
-
-// [Test]
-// [Description ("Child actions - insert item(s) - landscape")]
-// public void GroupedListActionsGalleryChildInsertItemsLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// GroupedListActionsGalleryChildInsertItems ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to portrait");
-// }
-
-
-// [Test]
-// [Description ("Child actions - remove item(s) - landscape")]
-// public void GroupedListActionsGalleryChildRemoveItemsLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// GroupedListActionsGalleryChildRemoveItems ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to portrait");
-// }
-
-// [Test]
-// [Description ("Child actions - replace item(s) - landscape")]
-// public void GroupedListActionsGalleryChildReplaceItemsLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// GroupedListActionsGalleryChildReplaceItems ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to portrait");
-// }
-
-// [Test]
-// [Category ("ManualReview")]
-// [Description ("Child actions - select item(s) - landscape")]
-// public void GroupedListActionsGalleryChildSelectItemsLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// GroupedListActionsGalleryChildSelectItems ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to portrait");
-// }
-
-// [Test]
-// [Category ("ManualReview")]
-// [Description ("Child actions - move item(s) - landscape")]
-// public void GroupedListActionsGalleryChildMoveItemsLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// GroupedListActionsGalleryChildMoveItems ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to portrait");
-// }
-
- }
-}
\ No newline at end of file
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-InputIntentUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-InputIntentUITests.cs
deleted file mode 100644
index 8a0bb96505..0000000000
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-InputIntentUITests.cs
+++ /dev/null
@@ -1,186 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Threading;
-using NUnit.Framework;
-using Xamarin.UITest;
-using Xamarin.UITest.Queries;
-
-namespace Xamarin.Forms.Core.UITests
-{
- [TestFixture]
- [Category ("Entry")]
- internal class InputIntentGalleryTests : BaseTestFixture
- {
- // TODO: Detect keyboard types, fix scroll coordinates
- // TODO: Port to new conventions
-
- public InputIntentGalleryTests ()
- {
- ShouldResetPerFixture = false;
- }
-
- protected override void NavigateToGallery ()
- {
- App.NavigateToGallery (GalleryQueries.InputIntentGalleryLegacy);
- }
-
- [Test]
- [Description ("All entries are shown")]
- public void InputIntentGalleryAllElementsExist ()
- {
-// var inputs = new [] {
-// "Default",
-// "Email Input",
-// "Text Input",
-// "Url Input",
-// "Numeric Input",
-// "Telephone Input",
-// "Chat Input",
-// "Custom Entry"
-// };
-
-// foreach (var input in inputs)
-// App.ScrollDownForElement (PlatformQueries.EntryWithPlaceholder (input), 5);
-
-// App.Screenshot ("All Entries exist");
- }
-
-// [Test]
-// [Description ("Tap each entry and dismiss keyboard by tapping outside of keyboard")]
-// public void InputIntentGalleryTapEachEntry ()
-// {
-// AppRect screenSize = App.MainScreenBounds ();
-// var numberOfEntries = App.Query (PlatformQueries.Entrys).Length;
-// App.Screenshot ("Tap each entry");
-
-// var inputs = new List () {
-// "Default",
-// "Email Input",
-// "Text Input",
-// "Url Input",
-// "Numeric Input",
-// "Telephone Input",
-// "Chat Input",
-// "Custom Entry"
-// };
-
-// foreach (var input in inputs) {
-// App.ScrollDownForElement (PlatformQueries.EntryWithPlaceholder (input), 5);
-// App.Tap (PlatformQueries.EntryWithPlaceholder (input));
-// App.Screenshot ("Input Tapped: " + input);
-// App.TapCoordinates (5, screenSize.Height / 3);
-// App.Screenshot ("Clicked main screen, keyboard should be dismissed");
-// }
-
-// App.ScrollUpForElement (q => q.Marked ("Custom Focused"), 5);
-
-// App.Screenshot ("Label should now say 'Custom Focused'");
-// }
-
-// [Test]
-// [Description ("Enter text in each entry")]
-// public void InputIntentGalleryEnterTextInEachEnry ()
-// {
-
-// AppRect screenSize = App.MainScreenBounds ();
-
-// var inputs = new Dictionary () {
-// { "Default", "abc Quick weee!" },
-// { "Email Input", "s@test.com" },
-// { "Text Input", "Hi, I am text!" },
-// { "Url Input", "https://www.xamarin.com/" },
-// { "Numeric Input", "12345678910" },
-// { "Telephone Input", "0000001234" },
-// { "Chat Input", "Sorry, I wasn\'t paying attention." },
-// { "Custom Entry", "I should be custom" }
-// };
-
-// App.Screenshot ("Enter text in each input");
-
-// foreach (var input in inputs) {
-// App.ScrollDownForElement (PlatformQueries.EntryWithPlaceholder (input.Key), 5);
-// App.Tap (PlatformQueries.EntryWithPlaceholder (input.Key));
-// App.EnterText (PlatformQueries.EntryWithPlaceholder (input.Key), input.Value);
-// App.Screenshot ("Text entered");
-// App.TapCoordinates (5, screenSize.Height / 3);
-// App.Screenshot ("Clicked main screen, keyboard should be dismissed");
-// }
-
-// }
-
-// [Test]
-// [Description ("Open keyboard and navigate back without dismissing")]
-// public void InputIntentGalleryNavigateBackWithoutDismissingKeyboard ()
-// {
-// // Should catch any regression of Issue #638, #928
-// var inputs = new List () {
-// "Default",
-// "Email Input",
-// "Text Input",
-// "Url Input",
-// "Numeric Input",
-// "Telephone Input",
-// "Chat Input",
-// "Custom Entry"
-// };
-
-// foreach (string input in inputs) {
-// App.ScrollDownForElement (PlatformQueries.EntryWithPlaceholder (input), 5);
-// App.Tap (PlatformQueries.EntryWithPlaceholder (input));
-// App.Screenshot ("Input Tapped");
-
-// App.Tap (PlatformQueries.Back);
-// App.Screenshot ("Back at Control Gallery");
-// App.ScrollDownForElement (q => q.Button ("InputIntent"), 2);
-// App.Tap (q => q.Button ("InputIntent"));
-// }
-// }
-
-// [Test]
-// [Description ("All entries are shown - landscape")]
-// public void InputIntentGalleryAllElementsExistLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// InputIntentGalleryAllElementsExist ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to portrait");
-// }
-
-// [Test]
-// [Description ("Tap each entry and dismiss keyboard by tapping outside of keyboard - landscape")]
-// public void InputIntentGalleryTapEachEntryLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// InputIntentGalleryTapEachEntry ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to portrait");
-// }
-
-// [Test]
-// [Description ("Enter text in each entry")]
-// public void InputIntentGalleryEnterTextInEachEnryLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// InputIntentGalleryEnterTextInEachEnry ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to portrait");
-// }
-
-// [Test]
-// [Description ("Open keyboard and navigate back without dismissing")]
-// public void InputIntentGalleryNavigateBackWithoutDismissingKeyboardLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// InputIntentGalleryNavigateBackWithoutDismissingKeyboard ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to portrait");
-// }
-
- }
-}
-
-
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-ListUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-ListUITests.cs
deleted file mode 100644
index 17fb1eb802..0000000000
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-ListUITests.cs
+++ /dev/null
@@ -1,88 +0,0 @@
-using NUnit.Framework;
-using Xamarin.UITest;
-
-namespace Xamarin.Forms.Core.UITests
-{
- [TestFixture]
- [Category ("ListView")]
- internal class ListGalleryTests : BaseTestFixture
- {
- // TODO
- // TODO: Port to new conventions
-
- public ListGalleryTests ()
- {
- ShouldResetPerFixture = false;
- }
-
- protected override void NavigateToGallery ()
- {
- App.NavigateToGallery (GalleryQueries.ListViewGalleryLegacy);
- }
-// void AllElementsExist ()
-// {
-// for (int i = 0; i < 5; i++)
-// App.WaitForElement (q => q.Marked (i.ToString ()));
-
-// App.Screenshot ("List elements exist");
-// }
-
- [Test]
- [Description ("Click 0 - 5 and reset")]
- public void ListGalleryClickElementsAndReset ()
- {
-// AllElementsExist ();
-
-// for (int i = 0; i < 5; i++) {
-// App.Tap (q => q.Raw (string.Format ("{0} index:{1}", PlatformStrings.Cell, i)));
-// }
-
-// App.WaitForNoElement (q => q.Marked ("0"), "Timeout : 0");
-// Assert.AreEqual (2, App.Query (q => q.Marked ("5")).Length);
-
-// App.Screenshot ("Clicked 0 - 5");
-
-// App.Tap (q => q.Raw (PlatformStrings.Cell + " index:5"));
-
-// App.WaitForElement (q => q.Marked ("0"), "Timeout : 0");
-// Assert.AreEqual (1, App.Query (q => q.Marked ("5")).Length);
-
-// App.Screenshot ("Reset elements");
- }
-
-// [Test]
-// [Description ("Scroll to the end of the list")]
-// public void ListGalleryScrollToEndOfList ()
-// {
-// AllElementsExist ();
-
-// for (int i = 0; i < 50; i++)
-// App.ScrollDownForElement (q => q.Marked (i.ToString ()), 2);
-
-// App.Screenshot ("At the bottom of the list");
-// }
-
-// [Test]
-// [Description ("Click 0 - 5 and reset - Landscape")]
-// public void ListGalleryClickElementsAndResetLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// ListGalleryClickElementsAndReset ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Description ("Scroll to the end of the list - Landscape")]
-// public void ListGalleryScrollToEndOfListLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// ListGalleryScrollToEndOfList ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
- }
-}
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-MapUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-MapUITests.cs
deleted file mode 100644
index f2d55f3e6e..0000000000
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-MapUITests.cs
+++ /dev/null
@@ -1,110 +0,0 @@
-using NUnit.Framework;
-using Xamarin.UITest;
-using System.Diagnostics;
-using System.Threading;
-using Xamarin.UITest.Queries;
-
-namespace Xamarin.Forms.Core.UITests
-{
- [TestFixture]
- [Category ("Map")]
- internal class MapGalleryTests : BaseTestFixture
- {
- // TODO - Figure out how to implement the map stuff for Android, ie query pins etc
- // TODO: Port to new conventions
-
- public MapGalleryTests ()
- {
- ShouldResetPerFixture = false;
- }
-
- protected override void NavigateToGallery ()
- {
- App.NavigateToGallery (GalleryQueries.MapGalleryLegacy);
- }
-
- [Test]
- [Description ("Gallery element are present")]
- public void MapGalleryAllElementsPresent ()
- {
- // CustomScrollDownToBottomForAllElements ();
- // App.Screenshot ("All elements exist");
- }
-
- //[Test]
- //[Description ("Change MapMapType")]
- //public void MapGalleryMapType ()
- //{
- // AppRect screenBounds = App.MainScreenBounds ();
- // App.DragFromToForElement (5, q => q.Button ("Map Type"), screenBounds.Width - 15, screenBounds.Height - 100, screenBounds.Width - 15, 15);
- // App.Tap (q => q.Button ("Map Type"));
- // App.Screenshot ("Selected Map Type");
- // App.Tap (q => q.Button ("Satellite"));
- // App.Screenshot ("Satellite MapType selected");
- // App.DragFromToForElement (5, PlatformQueries.SearchBars, screenBounds.Width - 15, 75, screenBounds.Width - 15, screenBounds.Height - 100);
- //}
-
-
-// [Test]
-// public void PinDetails ()
-// {
-// App.Tap (q => q.Raw(PlatformStrings.MapPin + " index:0"));
-// App.WaitForElement (q => q.Marked ("Sistine Chapel"));
-// App.WaitForElement (q => q.Marked ("Piazza della Rotunda, 00186 Rome, Province of Rome, Italy"));
-//
-// App.Screenshot ("First pin");
-//
-// App.Tap (q => q.Raw(PlatformStrings.MapPin + " index:1"));
-// App.WaitForElement (q => q.Marked ("Pantheon"));
-// App.WaitForElement (q => q.Marked ("Piazza del Colosseo, 00186 Rome, Province of Rome, Italy"));
-//
-// App.Screenshot ("Second pin");
-//
-// App.Tap (q => q.Raw(PlatformStrings.MapPin + " index:2"));
-// App.WaitForElement (q => q.Marked ("Colosseum"));
-// App.WaitForElement (q => q.Marked ("Piazza del Colosseo, 00184 Rome, Province of Rome, Italy"));
-//
-// App.Screenshot ("Third pin");
-// }
-
-
- //void CustomScrollDownToBottomForAllElements ()
- //{
- // AppRect screenBounds = App.MainScreenBounds ();
-
- // App.DragFromToForElement (5, PlatformQueries.SearchBars, screenBounds.Width - 15, screenBounds.Height - 100, screenBounds.Width - 15, 15);
- // App.DragFromToForElement (5, PlatformQueries.Map, screenBounds.Width - 15, screenBounds.Height - 100, screenBounds.Width - 15, 15);
-
- // App.DragFromToForElement (5, q => q.Button ("Map Type"), screenBounds.Width - 15, screenBounds.Height - 100, screenBounds.Width - 15, 15);
- // App.DragFromToForElement (5, q => q.Button ("Zoom In"), screenBounds.Width - 15, screenBounds.Height - 100, screenBounds.Width - 15, 15);
- // App.DragFromToForElement (5, q => q.Button ("Zoom Out"), 15, screenBounds.Height - 100, 15, 15);
- // App.DragFromToForElement (5, q => q.Button ("Address From Position"), screenBounds.Width - 15, screenBounds.Height - 100, screenBounds.Width - 15, 15);
- //}
-
-/*******************************************************/
-/**************** Landscape tests **********************/
-/*******************************************************/
-
- //[Test]
- //[Description ("Gallery element are present - Landscape")]
- //public void MapGalleryAllElementsPresentLandscape ()
- //{
- // App.SetOrientationLandscape ();
- // App.Screenshot ("Rotated to Landscape");
- // MapGalleryAllElementsPresent ();
- // App.SetOrientationPortrait ();
- // App.Screenshot ("Rotated to Portrait");
- //}
-
- //[Test]
- //[Description ("Change MapMapType - Landscape")]
- //public void MapGalleryMapTypeLandscape ()
- //{
- // App.SetOrientationLandscape ();
- // App.Screenshot ("Rotated to Landscape");
- // MapGalleryMapType ();
- // App.SetOrientationPortrait ();
- // App.Screenshot ("Rotated to Portrait");
- //}
- }
-}
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-MinimumSizeUITest.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-MinimumSizeUITest.cs
deleted file mode 100644
index 9de241c092..0000000000
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-MinimumSizeUITest.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-using NUnit.Framework;
-using Xamarin.UITest;
-
-namespace Xamarin.Forms.Core.UITests
-{
- [TestFixture]
- [Category ("StackLayout")]
- internal class MinimumSizeGalleryTests : BaseTestFixture
- {
- // TODO
- // TODO: Port to new conventions
-
- public MinimumSizeGalleryTests ()
- {
- ShouldResetPerFixture = false;
- }
-
- protected override void NavigateToGallery ()
- {
- App.NavigateToGallery (GalleryQueries.MinimumSizeGalleryLegacy);
- }
-
-
- [Test]
- [Description ("Scroll to the bottom of the TableView")]
- public void MinimumSizeGalleryTableViewElementsAreAccessible ()
- {
- // AllElementsPresent ();
-
- // var tableView = App.Query (PlatformQueries.Tables) [0];
-
- // var tableX = tableView.Rect.X;
- // var tableY = tableView.Rect.Y;
- // var tableWidth = tableView.Rect.Width;
- // var tableHeight = tableView.Rect.Height;
-
- // var elementFound = App.DragFromToForElement (20, q => q.Marked ("Cell 4 Last"), tableWidth / 2, (tableY + tableHeight) - 70, tableWidth / 2, tableY + 30);
-
- // Assert.IsTrue (elementFound);
- // App.Screenshot ("All table elements exist");
- }
-
-/*******************************************************/
-/**************** Landscape tests **********************/
-/*******************************************************/
-
- }
-}
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-RelativeLayoutUITest.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-RelativeLayoutUITest.cs
deleted file mode 100644
index caa05eac87..0000000000
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-RelativeLayoutUITest.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-using NUnit.Framework;
-using Xamarin.UITest;
-using System.Linq;
-
-namespace Xamarin.Forms.Core.UITests
-{
- [TestFixture]
- [Category ("RelativeLayout")]
- internal class RelativeLayoutGalleryTests : BaseTestFixture
- {
- // TODO - Add relative layout tests
- // TODO: Port to new conventions
-
- public RelativeLayoutGalleryTests ()
- {
- ShouldResetPerFixture = false;
- }
-
- protected override void NavigateToGallery ()
- {
- App.NavigateToGallery (GalleryQueries.RelativeLayoutGalleryLegacy);
- }
-
- [Test]
- [Description ("All elements are present")]
- public void RelativeLayoutGalleryAllElementsPresent ()
- {
-// var elements = Enumerable.Range (0, 201).Select (x => x);
-// foreach (int element in elements)
-// App.ScrollDownForElement (q => q.Marked (element.ToString ()), 10);
- }
-
-// [Test]
-// [Description ("All elements are present - Landscape")]
-// public void RelativeLayoutGalleryAllElementsPresentLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// RelativeLayoutGalleryAllElementsPresent ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
- }
-}
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-SearchBarUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-SearchBarUITests.cs
deleted file mode 100644
index 399a446267..0000000000
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-SearchBarUITests.cs
+++ /dev/null
@@ -1,160 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using NUnit.Framework;
-using System.Threading;
-
-namespace Xamarin.Forms.Core.UITests
-{
- [TestFixture]
- [Category ("SearchBar")]
- internal class SearchBarGalleryTests : BaseTestFixture
- {
- // TODO: Enter text and try searching
- // TODO: Port to new conventions
-
- public SearchBarGalleryTests ()
- {
- ShouldResetPerFixture = false;
- }
-
- protected override void NavigateToGallery ()
- {
- App.NavigateToGallery (GalleryQueries.SearchBarGalleryLegacy);
- }
-
- [Test]
- [Category ("ManualReview")]
- [Description ("Enter query into each SearchBar")]
- public void SearchBarGalleryEnterSearchText ()
- {
-// SearchBarGalleryAllElementsPresent ();
-// for (var i = 0; i < 3; i++) {
-// App.ScrollDownForElement (PlatformQueries.SearchBarWithIndex (i), 5);
-// App.Tap (PlatformQueries.SearchBarWithIndex (i));
-// App.EnterText (PlatformQueries.SearchBarWithIndex (i), "Search: " + i);
-// App.Screenshot ("Keyboard should be shown");
-// App.PressEnter ();
-// App.WaitForElement (q => q.Marked ("Search: " + i));
-// App.Screenshot (string.Format("Keyboard should be dismissed - Label should have changed to 'Search: {0}'", i));
-// }
-
-// App.Tap (q => q.Button ("More SearchBars"));
-// App.WaitForElement (q => q.Marked ("Search Query 2"));
-
-// SearchBarGalleryAllElementsPresentPageTwo ();
-
-// // Disabled keyboard
-// App.Tap (PlatformQueries.SearchBarWithIndex (0));
-// App.Screenshot ("Should not see keyboard for disabled SearchBar");
-
-// App.Tap (PlatformQueries.SearchBarWithIndex (1));
-// App.Screenshot ("Should not see keyboard for disabled SearchBar");
-// App.EnterText (PlatformQueries.SearchBarWithIndex (1), "Entered transparent");
-// App.PressEnter ();
-// App.WaitForElement (q => q.Marked ("Entered transparent"));
-// App.Screenshot ("Entered query for tranparent SearchBar");
- }
-
-// [Test]
-// [Category ("ManualReview")]
-// [Description ("Enable disable keyboard, Issues #1182, #1237")]
-// public void SearchBarGalleryEnableDisableSearchBar ()
-// {
-// App.Tap (q => q.Button ("More SearchBars"));
-// App.WaitForElement (q => q.Marked ("Search Query 2"));
-
-// SearchBarGalleryAllElementsPresentPageTwo ();
-
-// App.Tap (PlatformQueries.SearchBarWithIndex (0));
-// App.Screenshot ("SearchBar should not be focused, keyboard should not be shown");
-
-// App.Tap (q => q.Button ("Toggle enabled"));
-// App.Tap (PlatformQueries.SearchBarWithIndex (0));
-// App.EnterText (PlatformQueries.SearchBarWithIndex (0), "Now Enabled");
-// App.PressEnter ();
-// App.ScrollDownForElement (q => q.Marked ("Now Enabled"), 2);
-// App.Screenshot ("Enabled and abled to query");
-
-// App.Tap (q => q.Button ("Toggle enabled"));
-// App.Screenshot ("Disabled again");
-
-// App.ScrollUpForElement (PlatformQueries.SearchBarWithIndex (0), 2);
-// App.Tap (PlatformQueries.SearchBarWithIndex (0));
-// App.Screenshot ("SearchBar should not be focused, keyboard should not be shown after diabling once again");
-// }
-
-// [Test]
-//// [Category ("Single")]
-// [Description ("Test the TextChanged event")]
-// public void SearchBarGalleryTextChangedEventTest ()
-// {
-// SearchBarGalleryAllElementsPresent ();
-
-// App.EnterText (PlatformQueries.SearchBarWithIndex (0), "A");
-// App.Screenshot ("Entered three characters in noPlaceholder search bar");
-// var labelText = App.GetTextForQuery (PlatformQueries.LabelWithText ("1"));
-// Assert.AreEqual ("1", labelText);
-
-// App.EnterText (PlatformQueries.SearchBarWithIndex (1), "B");
-// App.Screenshot ("Entered three characters in normal search bar");
-// labelText = App.GetTextForQuery (PlatformQueries.LabelWithText ("2"));
-// Assert.AreEqual ("2", labelText);
-
-// App.EnterText (PlatformQueries.SearchBarWithIndex (2), "C");
-// App.Screenshot ("Entered three characters in activation search bar");
-// labelText = App.GetTextForQuery (PlatformQueries.LabelWithText ("3"));
-// Assert.AreEqual ("3", labelText);
-
-// }
-
-// [Test]
-// [Category ("ManualReview")]
-// [Description ("Enable disable keyboard, Issues #1182, #1237 - landscape")]
-// public void SearchBarGalleryEnableDisableSearchBarLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// SearchBarGalleryEnableDisableSearchBar ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Category ("ManualReview")]
-// [Description ("Enter query into each SearchBar - Landscape")]
-// public void SearchBarGalleryEnterSearchTextLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// SearchBarGalleryEnterSearchText ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// void SearchBarGalleryAllElementsPresent ()
-// {
-// var searchBars = App.Query (PlatformQueries.SearchBars);
-// Assert.AreEqual (3, searchBars.Length);
-
-// App.ScrollDownForElement (q => q.Marked ("Search Query"), 5);
-
-// App.ScrollUp ();
-// App.Screenshot ("All SearchBars present");
-// }
-
-
-
-// void SearchBarGalleryAllElementsPresentPageTwo ()
-// {
-// App.ScrollDownForElement (q => q.Marked ("Search Query 2"), 5);
-// App.ScrollDownForElement (q => q.Button ("Toggle enabled"), 5);
-
-// App.ScrollUp ();
-// App.Screenshot ("All SearchBars present - Page 2");
-// }
-
- }
-}
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-SliderUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-SliderUITests.cs
deleted file mode 100644
index ae2754dd15..0000000000
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-SliderUITests.cs
+++ /dev/null
@@ -1,90 +0,0 @@
-using NUnit.Framework;
-using Xamarin.UITest;
-
-namespace Xamarin.Forms.Core.UITests
-{
- [TestFixture]
- [Category ("Slider")]
- internal class SliderGalleryTests : BaseTestFixture
- {
- // TODO: Detect Slider value changes
- // TODO: Port to new conventions
-
- public SliderGalleryTests ()
- {
- ShouldResetPerFixture = false;
- }
-
- protected override void NavigateToGallery ()
- {
- App.NavigateToGallery (GalleryQueries.SliderGalleryLegacy);
- }
-// void AllElementsPresent ()
-// {
-// var sliders = App.Query (PlatformQueries.Sliders);
-// Assert.AreEqual (3, sliders.Length);
-
-// App.Screenshot ("All Sliders present");
-// }
-
- [Test]
- [Description ("Slide all Sliders, test ValueChanged event")]
- public void SliderGallerySlideAllSliders ()
- {
-// AllElementsPresent ();
-
-// var sliders = App.Query (PlatformQueries.Sliders);
-// var sliderLeft = sliders[0].Rect.X;
-// var sliderRight = sliderLeft + sliders[0].Rect.Width - 5; // Needed to move 5 pixels left so that the drag would register
-// var topSliderY = sliders[0].Rect.CenterY;
-// var middleSliderY = sliders[1].Rect.CenterY;
-// var bottomSliderY = sliders[2].Rect.CenterY;
-
-// // Move top slider, numbers should change
-// App.DragFromTo (sliderLeft, topSliderY, sliderRight, topSliderY);
-// App.WaitForElement (q => q.Marked ("100"), "Timeout : 100");
-// App.Screenshot ("Move first slider right");
-
-// App.DragFromTo (sliderRight, topSliderY, sliderLeft, topSliderY);
-// App.WaitForElement (q => q.Marked ("20"), "Timeout : 20");
-// App.Screenshot ("Move first slider left");
-
-// // Move middle slider, shouldn't move
-// App.DragFromTo (sliderLeft, middleSliderY, sliderRight, middleSliderY);
-// App.WaitForElement (q => q.Marked ("20"), "Timeout : 20");
-// App.Screenshot ("Tried to move disabled slider");
-
-// // Move bottom slider, should move but nothing happens
-// App.DragFromTo (sliderLeft, bottomSliderY, sliderRight, bottomSliderY);
-// App.WaitForElement (q => q.Marked ("20"), "Timeout : 20");
-// App.Screenshot ("Move third slider right");
-
-// App.DragFromTo (sliderRight, bottomSliderY, sliderLeft, bottomSliderY);
-// App.WaitForElement (q => q.Marked ("20"), "Timeout : 20");
-// App.Screenshot ("Move first slider left");
-
- }
-
-// [Test]
-// public void AllElementsPresentLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// AllElementsPresent ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Description ("Slide all Sliders - Landscape")]
-// public void SliderGallerySlideAllSlidersLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// SliderGallerySlideAllSliders ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
- }
-}
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-StackLayoutUITest.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-StackLayoutUITest.cs
deleted file mode 100644
index 9f6d6d3715..0000000000
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-StackLayoutUITest.cs
+++ /dev/null
@@ -1,73 +0,0 @@
-using NUnit.Framework;
-using Xamarin.UITest;
-using System.Collections.Generic;
-
-namespace Xamarin.Forms.Core.UITests
-{
- [TestFixture]
- [Category ("StackLayout")]
- internal class StackLayoutGalleryTests : BaseTestFixture
- {
- // TODO
- // TODO: Port to new conventions
-
- public StackLayoutGalleryTests ()
- {
- ShouldResetPerFixture = false;
- }
-
- protected override void NavigateToGallery ()
- {
- App.NavigateToGallery (GalleryQueries.StackLayoutGalleryLegacy);
- }
-
-// void AllElementsPresent ()
-// {
-// var buttons = new [] {
-// "Boring",
-// "Exciting!",
-// "Amazing!",
-// "Meh"
-// };
-
-// foreach (var button in buttons) {
-// App.WaitForElement (q => q.Button (button));
-// }
-
-// App.Screenshot ("All elements exist");
-// }
-
- [Test]
- [Description ("Check that each button is there and click them")]
- public void StackLayoutGalleryClickEachButton ()
- {
-// AllElementsPresent ();
-
-// App.Tap (q => q.Button ("Boring"));
-// App.WaitForElement (q => q.Button ("clicked1"), "Timeout : clicked1");
-
-// App.Tap (q => q.Button ("Exciting!"));
-// App.WaitForElement (q => q.Button ("clicked2"), "Timeout : clicked2");
-
-// App.Tap (q => q.Button ("Amazing!"));
-// App.WaitForElement (q => q.Button ("clicked3"), "Timeout : clicked3");
-
-// App.Tap (q => q.Button ("Meh"));
-// App.WaitForElement (q => q.Button ("clicked4"), "Timeout : clicked4");
-
-// App.Screenshot ("All buttons clicked");
- }
-
-// [Test]
-// [Description ("Check that each button is there and click them - Landscape")]
-// public void StackLayoutGalleryClickEachButtonLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// StackLayoutGalleryClickEachButton ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
- }
-}
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-StepperUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-StepperUITests.cs
deleted file mode 100644
index aaf5f0e3b7..0000000000
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-StepperUITests.cs
+++ /dev/null
@@ -1,89 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using NUnit.Framework;
-using System.Diagnostics;
-
-namespace Xamarin.Forms.Core.UITests
-{
- [TestFixture]
- [Category ("Stepper")]
- internal class StepperGalleryTests : BaseTestFixture
- {
- // TODO: Checking enabled / disabled states
- // TODO: Port to new conventions
-
- public StepperGalleryTests ()
- {
- ShouldResetPerFixture = false;
- }
-
- protected override void NavigateToGallery ()
- {
- App.NavigateToGallery (GalleryQueries.StepperGalleryLegacy);
- }
-
- [Test]
- [Description ("Check all elements exist")]
- public void StepperGalleryAllElementsPresent ()
- {
-// App.WaitForElement (PlatformQueries.LabelWithText ("0"));
-// var labels = App.Query (PlatformQueries.LabelWithText ("0"));
-// Assert.AreEqual (2, labels.Length);
-
-// var steppers = App.Query (PlatformQueries.Steppers);
-// Assert.AreEqual (2, steppers.Length);
-
-// App.Screenshot ("All elements exist");
- }
-
-// [Test]
-// [Description ("Check that value changed event fires")]
-// public void StepperGalleryValueChangedEventTest ()
-// {
-// StepperGalleryAllElementsPresent ();
-// var labelText = "";
-// for (int i = 1; i <= 5; i++) {
-// App.Tap (PlatformQueries.StepperWithIndex (0));
-// App.Screenshot (string.Format ("Tapped first stepper {0} times", i));
-// App.WaitForElement (PlatformQueries.LabelWithText ((i*10).ToString ()));
-// labelText = App.GetTextForQuery (PlatformQueries.LabelWithText ((i*10).ToString ()));
-// Assert.AreEqual ((i*10).ToString (), labelText);
-// }
-
-// for (int i = 1; i <= 5; i++) {
-// App.Tap (PlatformQueries.StepperWithIndex (1));
-// App.Screenshot (string.Format ("Tapped second stepper {0} times", i));
-// App.WaitForElement (PlatformQueries.LabelWithText ((i*.05).ToString ()));
-// labelText = App.GetTextForQuery (PlatformQueries.LabelWithText ((i*.05).ToString ()));
-// Assert.AreEqual ((i*.05).ToString (), labelText);
-// }
-// }
-
-// [Test]
-// [Description ("Check all elements exist - Landscape")]
-// public void StepperGalleryAllElementsPresetLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// StepperGalleryAllElementsPresent ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Description ("Check that events fire - Landscape")]
-//// [Category ("Single")]
-// public void StepperGalleryEventTestLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// StepperGalleryValueChangedEventTest ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
- }
-}
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-SwitchUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-SwitchUITests.cs
deleted file mode 100644
index c2eb1abf00..0000000000
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-SwitchUITests.cs
+++ /dev/null
@@ -1,100 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using NUnit.Framework;
-using System.Diagnostics;
-
-namespace Xamarin.Forms.Core.UITests
-{
- [TestFixture]
- [Category ("Switch")]
- internal class SwitchGalleryTests : BaseTestFixture
- {
- // TODO: Checking enabled / disabled states
- // TODO: Port to new conventions
-
- public SwitchGalleryTests ()
- {
- ShouldResetPerFixture = false;
- }
-
- protected override void NavigateToGallery ()
- {
- App.NavigateToGallery (GalleryQueries.SwitchGalleryLegacy);
- }
-
- [Test]
- [Description ("Check all elements exist")]
- public void SwitchGalleryAllElementsPresent ()
- {
-// var label = App.Query (PlatformQueries.LabelWithText("Test Label"));
-// Assert.AreEqual (1, label.Length);
-
-// var switches = App.Query (q => q.Raw ("Switch"));
-// Assert.AreEqual (3, switches.Length);
-
-// var steppers = App.Query (PlatformQueries.Steppers);
-// Assert.AreEqual (1, steppers.Length);
-
-// App.Screenshot ("All elements exist");
- }
-
-// [Test]
-// [Description ("Check that events fire")]
-//// [Category ("Single")]
-// public void SwitchGalleryEventTest ()
-// {
-// App.Tap (PlatformQueries.SwitchWithIndex (0));
-// App.Screenshot ("Toggled normal switch");
-// App.WaitForElement (PlatformQueries.LabelWithText ("Toggled normal switch"));
-// var labelText = App.GetTextForQuery (PlatformQueries.LabelWithText ("Toggled normal switch"));
-// Assert.AreEqual ("Toggled normal switch", labelText);
-
-// App.Tap (PlatformQueries.SwitchWithIndex (1));
-// App.Screenshot ("Tried to toggle disabled switch");
-// App.WaitForElement (PlatformQueries.LabelWithText ("Toggled normal switch"));
-// labelText = App.GetTextForQuery (PlatformQueries.LabelWithText ("Toggled normal switch"));
-// Assert.AreEqual ("Toggled normal switch", labelText);
-
-// App.Tap (PlatformQueries.SwitchWithIndex (2));
-// App.Screenshot ("Toggled transparent switch");
-// App.WaitForElement (PlatformQueries.LabelWithText ("Toggled transparent switch"));
-// labelText = App.GetTextForQuery (PlatformQueries.LabelWithText ("Toggled transparent switch"));
-// Assert.AreEqual ("Toggled transparent switch", labelText);
-
-// for (int i = 1; i <= 5; i++) {
-// App.Tap (PlatformQueries.Steppers);
-// App.Screenshot (string.Format ("Tapped stepper {0} times", i));
-// App.WaitForElement (PlatformQueries.LabelWithText (i.ToString ()));
-// labelText = App.GetTextForQuery (PlatformQueries.LabelWithText (i.ToString ()));
-// Assert.AreEqual (i.ToString (), labelText);
-// }
-// }
-
-// [Test]
-// [Description ("Check all elements exist - Landscape")]
-// public void SwitchGalleryAllElementsPresetLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// SwitchGalleryAllElementsPresent ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Description ("Check that events fire - Landscape")]
-//// [Category ("Single")]
-// public void SwitchGalleryEventTestLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// SwitchGalleryEventTest ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
- }
-}
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-TableViewUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-TableViewUITests.cs
deleted file mode 100644
index 1f1dd0129c..0000000000
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-TableViewUITests.cs
+++ /dev/null
@@ -1,72 +0,0 @@
-using System;
-using System.Runtime;
-using NUnit.Framework;
-using Xamarin.UITest;
-using Xamarin.UITest.Android;
-using Xamarin.UITest.iOS;
-
-namespace Xamarin.Forms.Core.UITests
-{
- [TestFixture]
- [Category ("TableView")]
- internal class TableViewGalleryTests : BaseTestFixture
- {
-
- // TODO: test sizes
- // TODO: Port to new conventions
-
- public TableViewGalleryTests ()
- {
- ShouldResetPerFixture = false;
- }
-
- protected override void NavigateToGallery ()
- {
- App.NavigateToGallery (GalleryQueries.TableViewGalleryLegacy);
- }
-
- [Test]
- [Description ("Elements of section header are present")]
- public void TableViewGalleryHeader ()
- {
-// App.WaitForElement (q => q.Marked ("Section One"), "Timeout : Section One");
-// App.Screenshot ("Header is present");
- }
-
-// [Test]
-// [Description ("TableCells are present")]
-// public void TableViewGalleryTableCellsArePresent ()
-// {
-// var list = App.Query (PlatformQueries.Tables);
-// Assert.AreEqual (1, list.Length);
-// App.WaitForElement (q => q.Marked ("View Cell 1"), "Timeout : View Cell 1");
-// App.WaitForElement (q => q.Marked ("View Cell 2"), "Timeout : View Cell 2");
-
-// App.Screenshot ("TableCells are present");
-// }
-
-// [Test]
-// [Description ("Elements of CustomHeader are present - Landscape")]
-// public void TableViewGalleryCustomHeaderLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// TableViewGalleryHeader ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Description ("TableCells are present - Landscape")]
-// public void TableViewGalleryTableCellsArePresentLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// TableViewGalleryTableCellsArePresent ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
- }
-}
-
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-TemplatedCarouselPageUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-TemplatedCarouselPageUITests.cs
deleted file mode 100644
index 47e3445fea..0000000000
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-TemplatedCarouselPageUITests.cs
+++ /dev/null
@@ -1,404 +0,0 @@
-using NUnit.Framework;
-using Xamarin.UITest;
-using System.Threading;
-using Xamarin.UITest.Queries;
-using System;
-
-namespace Xamarin.Forms.Core.UITests
-{
- [TestFixture]
- [Category ("Templated")]
- internal class TemplatedCarouselPageGalleryTests : BaseTestFixture
- {
- // TODO: Port to new conventions
-
- public TemplatedCarouselPageGalleryTests ()
- {
- ShouldResetPerFixture = false;
- }
-
- protected override void NavigateToGallery ()
- {
- App.NavigateToGallery (GalleryQueries.TemplatedCarouselPageGalleryLegacy);
- }
- //AppRect scrollContainerBounds = new AppRect ();
-
-// void AllElementsPresent ()
-// {
-// AllElementExistForPage (0);
-
-// App.Screenshot ("All elements found on page 0");
-
-// SwipeLeft ();
-
-// App.Screenshot ("Swiped left");
-
-// AllElementExistForPage (1);
-
-// App.Screenshot ("All elements found on page 1");
-// }
-
- [Test]
- [Description ("Insert page")]
- public void TemplatedCarouselPageGalleryInsertPage ()
- {
-// AllElementsPresent ();
-
-// App.Tap (q => q.Button ("Insert Tab: 1"));
-
-// SwipeLeft ();
-
-// AllElementExistForPage (2);
-// App.Screenshot ("At page 2");
-
-// SwipeRight ();
-
-// AllElementExistForPage (1);
-// App.Screenshot ("At page 1");
-
-// SwipeRight ();
-
-// AllElementExistForPage (0);
-// App.Screenshot ("At page 0");
- }
-
-// [Test]
-// [Description ("Remove page")]
-// public void TemplatedCarouselPageGalleryRemovePage ()
-// {
-// AllElementsPresent ();
-
-// App.Tap (q => q.Button ("Remove Tab: 1"));
-
-// AllElementExistForPage (0);
-// App.Screenshot ("Removed page 1");
-// }
-
-// [Test]
-// [Description ("Insert / Remove page")]
-// public void TemplatedCarouselPageGalleryAddRemovePage ()
-// {
-// AllElementsPresent ();
-
-// App.Tap (q => q.Button ("Insert Tab: 1"));
-
-// SwipeLeft ();
-
-// AllElementExistForPage (2);
-// App.Screenshot ("At page 2");
-
-// App.Tap (q => q.Button ("Remove Tab: 2"));
-// AllElementExistForPage (0);
-// App.Screenshot ("Removed page 2");
-
-// SwipeLeft ();
-
-// App.Tap (q => q.Button ("Remove Tab: 1"));
-// AllElementExistForPage (0);
-// App.Screenshot ("Removed page 1");
-// }
-
-// [Test]
-// [Description ("Reset pages")]
-// public void TemplatedCarouselPageGalleryResetAllPages ()
-// {
-// AllElementsPresent ();
-
-// App.WaitForElement (q => q.Button ("Insert Tab: 1"));
-// App.Tap (q => q.Button ("Insert Tab: 1"));
-
-// SwipeLeft ();
-// AllElementExistForPage (2);
-// App.Tap (q => q.Button ("Insert Tab: 2"));
-
-// SwipeLeft ();
-// AllElementExistForPage (3);
-// App.Screenshot ("At page 3");
-
-// SwipeRight ();
-// App.Tap (q => q.Button ("Reset all tabs: 2"));
-
-// AllElementExistForPage (0);
-// App.Screenshot ("Pages reset");
-
-// SwipeLeft ();
-// AllElementExistForPage (1);
-// App.Screenshot ("On Page 1 again");
-
-// SwipeLeft ();
-// AllElementExistForPage (1);
-// App.Screenshot ("On Page 1 again");
-// }
-
-// [Test]
-// [Description ("Insert / go to next pages")]
-// public void TemplatedCarouselPageGalleryNextPage ()
-// {
-// TemplatedCarouselPageGalleryInsertPage ();
-
-// AppRect screenSize = App.MainScreenBounds ();
-// ScrollDownForQuery (q => q.Button ("Delayed reset: 0"), scrollContainerBounds);
-// App.Tap (q => q.Button ("Next Page: 0"));
-// AllElementExistForPage (1);
-// App.Screenshot ("At page 1");
-
-// ScrollDownForQuery (q => q.Button ("Delayed reset: 1"), scrollContainerBounds);
-// App.Tap (q => q.Button ("Next Page: 1"));
-// AllElementExistForPage (2);
-// App.Screenshot ("At page 2");
-
-// ScrollDownForQuery (q => q.Button ("Delayed reset: 2"), scrollContainerBounds);
-// App.Tap (q => q.Button ("Next Page: 2"));
-// AllElementExistForPage (0);
-// App.Screenshot ("At page 0");
-// }
-
-// [Test]
-// [Description ("Reproduction for a crash related to adding / reseting pages")]
-// public void TemplatedCarouselPageGalleryAddResetCrash ()
-// {
-// AllElementsPresent ();
-
-// SwipeRight ();
-
-// App.Tap (q => q.Button ("Insert Tab: 0"));
-// App.Tap (q => q.Button ("Insert Tab: 0"));
-// App.Screenshot ("Added two pages from Page 0");
-
-// SwipeLeft ();
-// App.Tap (q => q.Button ("Insert Tab: 3"));
-// App.Tap (q => q.Button ("Insert Tab: 3"));
-// App.Screenshot ("Added two pages from Page 3");
-
-// App.Tap (q => q.Button ("Reset all tabs: 3"));
-// AllElementExistForPage (0);
-// App.Screenshot ("Pages reset without crashing");
-// }
-
-// [Test]
-// [Description ("Reproduction for a crash related to adding / reseting pages")]
-// public void TemplatedCarouselPageGalleryAnotherAddResetCrash ()
-// {
-// AllElementsPresent ();
-
-// App.WaitForElement (q => q.Button ("Insert Tab: 1"));
-// App.Tap (q => q.Button ("Insert Tab: 1"));
-
-// SwipeLeft ();
-
-// AllElementExistForPage (2);
-// App.Screenshot ("At page 2");
-
-// App.Tap (q => q.Button ("Reset all tabs: 2"));
-// App.WaitForElement (q => q.Marked ("Insert Tab: 0"));
-// AllElementExistForPage (0);
-// }
-
-// [Test]
-// [Description ("Delayed reset of all content")]
-// public void TemplatedCarouselPageGalleryDelayResetAllElements ()
-// {
-// AllElementsPresent ();
-
-// App.ScrollDownForElement (q => q.Button ("Delayed reset: 1"), 2);
-// App.Tap (q => q.Button ("Delayed reset: 1"));
-
-// App.WaitForNoElement (q => q.Marked ("Lorem ipsum dolor sit amet #1"));
-// App.WaitForElement (q => q.Marked ("Insert Tab: 0"));
-// AllElementExistForPage (0);
-// }
-
-// [Test]
-// [Description ("Reproduction for a crash related to removing the first page")]
-// public void TemplatedCarouselPageGalleryRemoveFirstPageAndResetCrash ()
-// {
-// AllElementsPresent ();
-
-// SwipeRight ();
-// AllElementExistForPage (0);
-
-// App.Tap (q => q.Marked ("Remove Tab: 0"));
-// App.Screenshot ("Remove first page");
-
-// AllElementExistForPage (1);
-// App.Tap (q => q.Marked ("Reset all tabs: 1"));
-
-// AllElementExistForPage (0);
-// App.Screenshot ("Reset all pages");
-// }
-
-// void SwipeLeft ()
-// {
-
-// AppRect swipeLabelBounds = App.Query (q => q.Marked ("Swipe Here"))[0].Rect;
-// // Account for padded scrollview implementations on the different platforms
-// App.DragFromTo (
-// scrollContainerBounds.X + scrollContainerBounds.Width - PlatformValues.OffsetForScrollView,
-// swipeLabelBounds.CenterY,
-// scrollContainerBounds.X + PlatformValues.OffsetForScrollView,
-// swipeLabelBounds.CenterY
-// );
-// Thread.Sleep (2000);
-// }
-
-// void SwipeRight ()
-// {
-
-// AppRect swipeLabelBounds = App.Query (q => q.Marked ("Swipe Here"))[0].Rect;
-// // Account for padded scrollview implementations on the different platforms
-// App.DragFromTo (
-// scrollContainerBounds.X + PlatformValues.OffsetForScrollView,
-// swipeLabelBounds.CenterY,
-// scrollContainerBounds.X + scrollContainerBounds.Width - PlatformValues.OffsetForScrollView,
-// swipeLabelBounds.CenterY
-// );
-// Thread.Sleep (2000);
-// }
-
-// void ScrollDownForQuery (Func query, AppRect scrollContainer)
-// {
-// AppRect screenSize = App.MainScreenBounds ();
-// float swipeY = scrollContainer.X + 5;
-// App.DragFromToForElement (5, query, swipeY, (2 / 3.0f) * screenSize.Height, swipeY, screenSize.Height / 3.0f);
-// }
-
-// void ScrollUpForQuery (Func query, AppRect scrollContainer)
-// {
-// AppRect screenSize = App.MainScreenBounds ();
-// float swipeY = scrollContainer.X + 5;
-// App.DragFromToForElement (2, query, swipeY, screenSize.Height / 3.0f, swipeY, (2 / 3.0f) * screenSize.Height);
-// }
-
-
-// void AllElementExistForPage (int index)
-// {
-// var title = "Lorem ipsum dolor sit amet #" + index;
-// // Wait for element to load before querying its parent (problem on iOS)
-// if (App.Query (q => q.Marked (title)).Length < 1)
-// App.ScrollUpForElement (q => q.Marked (title), 3);
-// App.WaitForElement (q => q.Marked (title));
-// scrollContainerBounds = App.Query (q => q.Marked (title).Parent ())[2].Rect;
-
-// ScrollUpForQuery (q => q.Marked (title), scrollContainerBounds);
-
-// var buttons = new [] {
-// "Insert Tab: " + index,
-// "Change title: " + index,
-// "Remove Tab: " + index,
-// "Reset all tabs: " + index,
-// "Next Page: " + index,
-// "Delayed reset: " + index,
-// };
-
-// App.WaitForElement (q => q.Marked (title), "Timeout: " + title);
-
-// foreach (var button in buttons) {
-// if (App.Query (q => q.Button (button)).Length < 1)
-// ScrollDownForQuery (q=> q.Button (button), scrollContainerBounds);
-// App.WaitForElement (q => q.Button (button));
-// }
-// ScrollUpForQuery (q => q.Marked (title), scrollContainerBounds);
-// }
-
-
-// [Test]
-// [Description ("Insert page - Landscape")]
-// public void TemplatedCarouselPageGalleryInsertPageLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// TemplatedCarouselPageGalleryInsertPage ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Description ("Remove page - Landscape")]
-// public void TemplatedCarouselPageGalleryRemovePageLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// TemplatedCarouselPageGalleryRemovePage ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Description ("Insert / Remove page - Landscape")]
-// public void TemplatedCarouselPageGalleryAddRemovePageLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// TemplatedCarouselPageGalleryAddRemovePage ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Description ("Reset pages - Landscape")]
-// public void TemplatedCarouselPageGalleryResetAllPagesLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// TemplatedCarouselPageGalleryResetAllPages ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Description ("Insert / go to next pages - Landscape")]
-// public void TemplatedCarouselPageGalleryNextPageLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// TemplatedCarouselPageGalleryNextPage ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Description ("Reproduction for a crash related to adding / reseting pages - Landscape")]
-// public void TemplatedCarouselPageGalleryAddResetCrashLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// TemplatedCarouselPageGalleryAddResetCrash ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Description ("Reproduction for a crash related to adding / reseting pages - Landscape")]
-// public void TemplatedCarouselPageGalleryAnotherAddResetCrashLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// TemplatedCarouselPageGalleryAnotherAddResetCrash ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Description ("Delayed reset of all content - Landscape")]
-// public void TemplatedCarouselPageGalleryDelayResetAllElementsLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// TemplatedCarouselPageGalleryDelayResetAllElements ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Description ("Reproduction for a crash related to removing the first page - Landscape")]
-// public void TemplatedCarouselPageGalleryRemoveFirstPageAndResetCrashLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// TemplatedCarouselPageGalleryRemoveFirstPageAndResetCrash ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
- }
-}
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-TemplatedTabPageUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-TemplatedTabPageUITests.cs
deleted file mode 100644
index 36d051b8a5..0000000000
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-TemplatedTabPageUITests.cs
+++ /dev/null
@@ -1,342 +0,0 @@
-using NUnit.Framework;
-using Xamarin.UITest;
-using Xamarin.UITest.Queries;
-using System;
-
-namespace Xamarin.Forms.Core.UITests
-{
- [TestFixture]
- [Category ("Templated")]
- internal class TemplatedTabPageGalleryTests : BaseTestFixture
- {
- // TODO
- // TODO: Port to new conventions
-
- public TemplatedTabPageGalleryTests ()
- {
- ShouldResetPerFixture = false;
- }
-
- protected override void NavigateToGallery ()
- {
- App.NavigateToGallery (GalleryQueries.TemplatedTabbedPageGalleryLegacy);
- }
-
-// void AllElementsExist ()
-// {
-// var labels = new [] {
-// "Lorem ipsum dolor sit amet #0",
-// "Page 0",
-// "Page 1",
-// };
-
-// foreach (var label in labels)
-// App.WaitForElement (q => q.Marked (label), "Timeout : " + label);
-
-// AllElementExistForPage (0);
-
-// App.Tap (q => q.Marked ("Page 1"));
-// AllElementExistForPage (1);
-
-// App.Screenshot ("All elements exist");
-// }
-
- [Test]
- [Description ("Insert tab")]
- public void TemplatedTabPageGalleryInsertTab ()
- {
-// AllElementsExist ();
-
-// App.Tap (q => q.Button ("Insert Tab: 1"));
-// App.WaitForElement (q => q.Marked ("Page 2"), "Timeout : Page 2");
-
-// App.Screenshot ("Page 2 added");
-
-// App.Tap (q => q.Marked ("Page 2"));
-// AllElementExistForPage (2);
-
-// App.Screenshot ("Page 2 selected");
- }
-
-// [Test]
-// [Description ("Insert tab crash reproduction")]
-// public void TemplatedTabPageGalleryInsertTabCrash ()
-// {
-// TemplatedTabPageGalleryInsertTab ();
-// App.Tap (q => q.Marked ("Page 1"));
-// AllElementExistForPage (1);
-
-// App.Tap (q => q.Marked ("Page 0"));
-// AllElementExistForPage (0);
-// }
-
-// [Test]
-// [Description ("Change tab Title")]
-// public void TemplatedTabPageGalleryChangeTitles ()
-// {
-// AllElementsExist ();
-// App.Tap (q => q.Marked ("Change title: 1"));
-// App.WaitForNoElement (q => q.Marked ("Page 1"), "Timeout : Page 1");
-
-// // Change Page 1 title
-// for (int i = 0; i < 3; i++) {
-// App.WaitForElement (q => q.Marked ("Title: " + i), "Timeout : Title " + i);
-// App.Tap (q => q.Marked ("Change title: 1"));
-// }
-
-// App.Screenshot ("Page 1 titles changed");
-
-// // Change Page 0 title
-// App.Tap (q => q.Marked ("Page 0"));
-// App.Tap (q => q.Button ("Change title: 0"));
-// App.WaitForNoElement (q => q.Marked ("Page 0"), "Timeout : Page 0");
-
-// for (int i = 0; i < 3; i++) {
-// App.WaitForElement (q => q.Marked ("Title: " + i), "Timeout : Title " + i);
-// App.Tap (q => q.Button ("Change title: 0"));
-// }
-
-// App.Screenshot ("Page 0 titles changed");
-// }
-
-// [Test]
-// [Description ("Move tabs")]
-// public void TemplatedTabPageGalleryMoveTabs ()
-// {
-// AllElementsExist ();
-
-// int pageZeroTabIndex = App.IndexForElementWithText (PlatformQueries.Labels, "Page 0");
-// int pageOneTabIndex = App.IndexForElementWithText (PlatformQueries.Labels, "Page 1");
-
-// // Elements found
-// Assert.AreNotEqual (-1, pageZeroTabIndex);
-// Assert.AreNotEqual (-1, pageOneTabIndex);
-
-// Assert.Greater (pageOneTabIndex, pageZeroTabIndex);
-
-// App.Screenshot ("Tabs before move");
-
-// App.Tap (q => q.Button ("Move Tab: 1"));
-
-// int pageZeroMovedTabIndex = App.IndexForElementWithText (PlatformQueries.Labels, "Page 0");
-// int pageOneMovedTabIndex = App.IndexForElementWithText (PlatformQueries.Labels, "Page 1");
-
-// // Elements found
-// Assert.AreNotEqual (-1, pageZeroMovedTabIndex);
-// Assert.AreNotEqual (-1, pageOneMovedTabIndex);
-
-// Assert.Greater (pageZeroMovedTabIndex, pageOneMovedTabIndex);
-
-// App.Screenshot ("Tabs after move");
-// }
-
-// [Test]
-// [Description ("Remove tabs")]
-// public void TemplatedTabPageGalleryRemoveTabs ()
-// {
-// AllElementsExist ();
-
-// App.Tap (q => q.Button ("Remove Tab: 1"));
-// App.WaitForNoElement (q => q.Marked ("Page 1"), "Timeout : Page 1");
-
-// App.Screenshot ("Remove Page 1");
-// }
-
-// [Test]
-// [Description ("Add / remove tabs")]
-// public void TemplatedTabPageGalleryAddRemoveTabs ()
-// {
-// TemplatedTabPageGalleryInsertTab ();
-
-// App.Tap (q => q.Button ("Remove Tab: 2"));
-// App.WaitForNoElement (q => q.Marked ("Page 2"), "Timeout : Page 2");
-
-// App.Screenshot ("Remove Page 2");
-
-// App.Tap (q => q.Button ("Remove Tab: 0"));
-// App.WaitForNoElement (q => q.Marked ("Page 0"), "Timeout : Page 0");
-
-// App.Screenshot ("Remove Page 0");
-
-// AllElementExistForPage (1);
-// }
-
-// [Test]
-// [Description ("Reset tabs")]
-// public void TemplatedTabPageGalleryResetAllTabs ()
-// {
-// TemplatedTabPageGalleryChangeTitles ();
-
-// App.Tap (q => q.Button ("Insert Tab: 0"));
-// App.WaitForElement (q => q.Marked ("Page 2"), "Timeout : Page 2");
-
-// App.Screenshot ("Page 2 added");
-
-// App.Tap (q => q.Marked ("Page 2"));
-// AllElementExistForPage (2);
-
-// App.Screenshot ("Page 2 selected");
-
-// App.ScrollDownForElement (q => q.Button ("Reset all tabs: 2"), 3);
-// App.Tap (q => q.Button ("Reset all tabs: 2"));
-// App.WaitForElement (q => q.Marked ("Page 0"), "Timeout : Page 0");
-// App.WaitForElement (q => q.Marked ("Page 1"), "Timeout : Page 1");
-
-// var numberOfTabs = App.Query (q => q.Raw (PlatformStrings.Label + " {text BEGINSWITH 'Page'}")).Length;
-// Assert.AreEqual (2, numberOfTabs);
-
-// App.Screenshot ("Tabs reset");
-// }
-
-// [Test]
-// [Description ("Go to next tabs")]
-// public void TemplatedTabPageGalleryNextPage ()
-// {
-// TemplatedTabPageGalleryInsertTab ();
-
-// ScrollDownForQuery (q => q.Button ("Next Page: 2"));
-// App.Tap (q => q.Button ("Next Page: 2"));
-// AllElementExistForPage (0);
-// App.Screenshot ("On Page 0");
-
-// ScrollDownForQuery (q => q.Button ("Next Page: 0"));
-// App.Tap (q => q.Button ("Next Page: 0"));
-// AllElementExistForPage (1);
-// App.Screenshot ("On Page 1");
-
-// ScrollDownForQuery (q => q.Button ("Next Page: 1"));
-// App.Tap (q => q.Button ("Next Page: 1"));
-// AllElementExistForPage (2);
-// App.Screenshot ("On Page 2");
-
-// ScrollDownForQuery (q => q.Button ("Next Page: 2"));
-// App.Tap (q => q.Button ("Next Page: 2"));
-// AllElementExistForPage (0);
-// App.Screenshot ("On Page 0");
-// }
-
-// void AllElementExistForPage (int index)
-// {
-// var title = "Lorem ipsum dolor sit amet #" + index;
-
-// ScrollUpForQuery (q => q.Marked (title));
-
-// var buttons = new [] {
-// "Insert Tab: " + index,
-// "Change title: " + index,
-// "Move Tab: " + index,
-// "Remove Tab: " + index,
-// "Reset all tabs: " + index,
-// "Next Page: " + index,
-// };
-
-// App.WaitForElement (q => q.Marked (title));
-
-// foreach (var button in buttons)
-// ScrollDownForQuery (q => q.Button (button));
-
-// ScrollUpForQuery (q => q.Marked (title));
-// }
-
-// void ScrollDownForQuery (Func query)
-// {
-// var screenBounds = App.MainScreenBounds ();
-// App.DragFromToForElement (2, query, screenBounds.Width - 10, (2 / 3.0f) * screenBounds.Height, screenBounds.Width - 10, screenBounds.Height / 3.0f);
-// }
-
-// void ScrollUpForQuery (Func query)
-// {
-// var screenBounds = App.MainScreenBounds ();
-// App.DragFromToForElement (2, query, screenBounds.Width - 10, screenBounds.Height / 3.0f, screenBounds.Width - 10, (2 / 3.0f) * screenBounds.Height);
-// }
-
-// [Test]
-// [Description ("Insert tab - Landscape")]
-// public void TemplatedTabPageGalleryInsertTabLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// TemplatedTabPageGalleryInsertTab ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Description ("Insert tab crash reproduction - Landscape")]
-// public void TemplatedTabPageGalleryInsertTabCrashLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// TemplatedTabPageGalleryInsertTabCrash ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Description ("Change tab Title - Landscape")]
-// public void TemplatedTabPageGalleryChangeTitlesLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// TemplatedTabPageGalleryChangeTitles ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Description ("Move tabs - Landscape")]
-// public void TemplatedTabPageGalleryMoveTabsLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// TemplatedTabPageGalleryMoveTabs ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Description ("Remove tabs - Landscape")]
-// public void TemplatedTabPageGalleryRemoveTabLandscapes ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// TemplatedTabPageGalleryRemoveTabs ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Description ("Add / remove tabs - Landscape")]
-// public void TemplatedTabPageGalleryAddRemoveTabsLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// TemplatedTabPageGalleryAddRemoveTabs ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Description ("Reset tabs - Landscape")]
-// public void TemplatedTabPageGalleryResetAllTabsLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// TemplatedTabPageGalleryResetAllTabs ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Description ("Go to next tabs - Landscape")]
-// public void TemplatedTabPageGalleryNextPageLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// TemplatedTabPageGalleryNextPage ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
- }
-}
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-UnevenViewCellUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-UnevenViewCellUITests.cs
deleted file mode 100644
index 1cab2a1c9a..0000000000
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-UnevenViewCellUITests.cs
+++ /dev/null
@@ -1,90 +0,0 @@
-using NUnit.Framework;
-using Xamarin.UITest;
-
-namespace Xamarin.Forms.Core.UITests
-{
- [TestFixture]
- [Category ("Cells")]
- internal class UnevenViewCellGalleryTests : BaseTestFixture
- {
- // TODO
- // TODO: Port to new conventions
-
- public UnevenViewCellGalleryTests ()
- {
- ShouldResetPerFixture = false;
- }
-
- protected override void NavigateToGallery ()
- {
- App.NavigateToGallery (GalleryQueries.UnevenViewCellGalleryLegacy);
- }
-// void AllElementsPresent ()
-// {
-// App.WaitForElement (q => q.Marked ("Testing"), "Timeout : Testing");
-// App.WaitForElement (PlatformQueries.Map, "Timeout : Map");
-// App.Screenshot ("All elements exist");
-// }
-
- [Test]
- [Description ("All views exist")]
- public void UnevenViewCellGalleryScrollDownForAllElements ()
- {
-// AllElementsPresent ();
-
-// var window = App.Query (q => q.Raw ("*")) [0];
-// var windowWidth = window.Rect.Width;
-// var windowHeight = window.Rect.Height;
-
-// App.DragFromToForElement (20, q => q.Marked ("1 day"), windowWidth - 100, windowHeight - 100, windowWidth - 100, windowHeight / 2);
-// App.DragFromToForElement (20, q => q.Marked ("2 days"), windowWidth - 100, windowHeight - 100, windowWidth - 100, windowHeight / 2);
-// App.DragFromToForElement (20, q => q.Marked ("3 days"), windowWidth - 100, windowHeight - 100, windowWidth - 100, windowHeight / 2);
-// App.DragFromToForElement (20, q => q.Marked ("4 days"), windowWidth - 100, windowHeight - 100, windowWidth - 100, windowHeight / 2);
-// App.DragFromToForElement (20, q => q.Marked ("5 days"), windowWidth - 100, windowHeight - 100, windowWidth - 100, windowHeight / 2);
-
-// App.Screenshot ("All views exist");
- }
-
-// [Test]
-// [Description ("Check uneven ViewCell sizes")]
-// public void UnevenViewCellGalleryCheckViewCellSizes ()
-// {
-// AllElementsPresent ();
-
-// var window = App.Query (q => q.Raw ("*")) [0];
-// var windowWidth = window.Rect.Width;
-// var windowHeight = window.Rect.Height;
-
-// var unevenCellHeight = App.Query (PlatformQueries.Map) [0].Rect.Height;
-
-// App.DragFromToForElement (20, q => q.Marked ("1 day"), windowWidth - 100, windowHeight - 100, windowWidth - 100, windowHeight / 2);
-
-// var evenCellHeight = App.Query (q => q.Marked ("1 day")) [0].Rect.Height;
-
-// Assert.Greater (unevenCellHeight, evenCellHeight);
-// }
-
-// [Test]
-// [Description ("All views exist - Landscape")]
-// public void UnevenViewCellGalleryScrollDownForAllElementsLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// UnevenViewCellGalleryScrollDownForAllElements ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
-// [Test]
-// [Description ("Check uneven ViewCell sizes - Landscape")]
-// public void UnevenViewCellGalleryCheckViewCellSizesLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// UnevenViewCellGalleryCheckViewCellSizes ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
- }
-}
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-ViewCellUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-ViewCellUITests.cs
deleted file mode 100644
index 1dcc0de6ec..0000000000
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-ViewCellUITests.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-using NUnit.Framework;
-
-using Xamarin.Forms.CustomAttributes;
-using Xamarin.UITest;
-
-namespace Xamarin.Forms.Core.UITests
-{
- [TestFixture]
- [Category ("Cells")]
- internal class ViewCellGalleryTests : BaseTestFixture
- {
-// // TODO
- // TODO: Port to new conventions
-
- public ViewCellGalleryTests ()
- {
- ShouldResetPerFixture = false;
- }
-
- protected override void NavigateToGallery ()
- {
- App.NavigateToGallery (GalleryQueries.ViewCellGalleryLegacy);
- }
-
-// public void AllElementsPresent ()
-// {
-// App.WaitForElement (q => q.Marked ("Testing"), "Timeout : Testing");
-// App.WaitForElement (q => q.Marked ("0"), "Timeout : 0");
-// App.WaitForElement (q => q.Marked ("BrandLabel"), "Timeout : BrandLabel");
-
-// App.Screenshot ("All elements exist");
-// }
-
- [Test]
- [UiTest (typeof(ViewCell))]
- [Description ("All elements exist")]
- public void ViewCellGalleryScrollDownForAllElements ()
- {
-// AllElementsPresent ();
-
-// App.ScrollForElement ("* marked:'0'", new Drag (ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));
-// App.ScrollForElement ("* marked:'1'", new Drag (ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));
-// App.ScrollForElement ("* marked:'2'", new Drag (ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));
-// App.ScrollForElement ("* marked:'3'", new Drag (ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));
-// App.ScrollForElement ("* marked:'4'", new Drag (ScreenBounds, Drag.Direction.BottomToTop, Drag.DragLength.Medium));
-
-// App.Screenshot ("All ViewCells exist");
- }
-
-// [Test]
-// [Description ("All elements exist - Landscape")]
-// public void ViewCellGalleryScrollDownForAllElementsLandscape ()
-// {
-// App.SetOrientationLandscape ();
-// App.Screenshot ("Rotated to Landscape");
-// ViewCellGalleryScrollDownForAllElements ();
-// App.SetOrientationPortrait ();
-// App.Screenshot ("Rotated to Portrait");
-// }
-
- }
-}
diff --git a/Xamarin.Forms.Core.iOS.UITests/Utilities/AppExtensions.cs b/Xamarin.Forms.Core.iOS.UITests/Utilities/AppExtensions.cs
index c6f2508c38..481c3a5e40 100644
--- a/Xamarin.Forms.Core.iOS.UITests/Utilities/AppExtensions.cs
+++ b/Xamarin.Forms.Core.iOS.UITests/Utilities/AppExtensions.cs
@@ -30,87 +30,15 @@ namespace Xamarin.Forms.Core.UITests
public static void NavigateToGallery (this IApp app, string page)
{
+ const string goToTestButtonQuery = "* marked:'GoToTestButton'";
+
var text = Regex.Match (page, "'(?[^']*)'").Groups["text"].Value;
app.EnterText (q => q.Raw ("* marked:'SearchBar'"), text);
- //var searchBar = app.Query (q => q.Raw ("* marked:'SearchBar'")).Single ();
- Thread.Sleep(10000);
+
+ app.WaitForElement(q => q.Raw(goToTestButtonQuery), "Timed out waiting for Go To Test button to disappear", TimeSpan.FromSeconds(10));
- app.Tap (q => q.Raw ("* marked:'GoToTestButton'"));
- app.WaitForNoElement (o => o.Raw ("* marked:'GoToTestButton'"), "Timed out", TimeSpan.FromMinutes(2));
-
- //app.Screenshot ("Navigating to gallery ...");
- //var galleryListViewBounds = app.Query (Queries.GalleryListView)[0].Rect;
- //app.ScrollForElement (page, new Drag (galleryListViewBounds, Drag.Direction.BottomToTop, Drag.DragLength.Long));
- //app.Tap (q => q.Raw (page));
- //app.Screenshot ("At gallery!");
- }
-
- public static void NavigateToTestCases (this IApp app, string testCase)
- {
- app.Tap (q => q.Button ("Go to Test Cases"));
- app.WaitForElement (q => q.Raw ("* marked:'TestCasesIssueList'"));
-
- app.EnterText (q => q.Raw ("* marked:'SearchBarGo'"), testCase);
-
- app.WaitForElement (q => q.Raw ("* marked:'SearchButton'"));
- app.Tap (q => q.Raw ("* marked:'SearchButton'"));
-
- //app.NavigateToTestCase(testCase);
- }
-
- public static void NavigateToTestCase (this IApp app, string testCase)
- {
- string testCasesQuery = "* marked:'" + testCase + "'";
- var testCaseIssue = app.Query (q => q.Raw ("* marked:'TestCasesIssueList'")).FirstOrDefault ();
- if (testCaseIssue != null) {
- AppRect scrollRect = testCaseIssue.Rect;
- app.ScrollForElement (testCasesQuery, new Drag (scrollRect, Drag.Direction.BottomToTop, Drag.DragLength.Long));
- app.Tap (q => q.Raw (testCasesQuery));
- } else {
- Debug.WriteLine (string.Format ("Failed to find test case {0}", testCase));
- }
- }
-
- public static bool RectsEqual (AppRect rectOne, AppRect rectTwo)
- {
- const float equalsTolerance = 0.1f;
-
- bool areEqual =
- (Math.Abs (rectOne.X - rectTwo.X) < equalsTolerance) &&
- (Math.Abs (rectOne.Y - rectTwo.Y) < equalsTolerance) &&
- (Math.Abs (rectOne.Width - rectTwo.Width) < equalsTolerance) &&
- (Math.Abs (rectOne.Height - rectTwo.Height) < equalsTolerance) &&
- (Math.Abs (rectOne.CenterX - rectTwo.CenterX) < equalsTolerance) &&
- (Math.Abs (rectOne.CenterY - rectTwo.CenterY) < equalsTolerance);
-
- return areEqual;
- }
-
- public static void WaitForAnimating (this IApp app, Func query)
- {
- // Right now only checks if bounds are moving
- const int pollingRate = 200;
- const int timeout = 5000;
- var sw = new Stopwatch ();
-
- var previousState = app.Query (query).First ().Rect;
-
- sw.Start ();
- while (true) {
-
- var newState = app.Query (query).First ().Rect;
-
- if (RectsEqual (previousState, newState))
- break;
-
- previousState = newState;
-
- if (sw.ElapsedMilliseconds >= timeout)
- throw new Exception("Timed out");
-
- Thread.Sleep (pollingRate);
- }
- sw.Stop ();
+ app.Tap (q => q.Raw (goToTestButtonQuery));
+ app.WaitForNoElement (o => o.Raw (goToTestButtonQuery), "Timed out waiting for Go To Test button to disappear", TimeSpan.FromMinutes(2));
}
}
}
diff --git a/Xamarin.Forms.Core.iOS.UITests/Xamarin.Forms.Core.iOS.UITests.csproj b/Xamarin.Forms.Core.iOS.UITests/Xamarin.Forms.Core.iOS.UITests.csproj
index 3b52ed7547..87521d32b2 100644
--- a/Xamarin.Forms.Core.iOS.UITests/Xamarin.Forms.Core.iOS.UITests.csproj
+++ b/Xamarin.Forms.Core.iOS.UITests/Xamarin.Forms.Core.iOS.UITests.csproj
@@ -76,37 +76,13 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-