diff options
author | Jason Smith <jason.smith@xamarin.com> | 2016-03-22 13:02:25 -0700 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-03-22 16:13:41 -0700 |
commit | 17fdde66d94155fc62a034fa6658995bef6fd6e5 (patch) | |
tree | b5e5073a2a7b15cdbe826faa5c763e270a505729 /Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-ViewCellUITests.cs | |
download | xamarin-forms-17fdde66d94155fc62a034fa6658995bef6fd6e5.tar.gz xamarin-forms-17fdde66d94155fc62a034fa6658995bef6fd6e5.tar.bz2 xamarin-forms-17fdde66d94155fc62a034fa6658995bef6fd6e5.zip |
Initial import
Diffstat (limited to 'Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-ViewCellUITests.cs')
-rw-r--r-- | Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-ViewCellUITests.cs | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-ViewCellUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-ViewCellUITests.cs new file mode 100644 index 00000000..c6a79e71 --- /dev/null +++ b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-ViewCellUITests.cs @@ -0,0 +1,66 @@ +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"); + } + +///*******************************************************/ +///**************** Landscape tests **********************/ +///*******************************************************/ + +// [Test] +// [Description ("All elements exist - Landscape")] +// public void ViewCellGalleryScrollDownForAllElementsLandscape () +// { +// App.SetOrientationLandscape (); +// App.Screenshot ("Rotated to Landscape"); +// ViewCellGalleryScrollDownForAllElements (); +// App.SetOrientationPortrait (); +// App.Screenshot ("Rotated to Portrait"); +// } + + } +} |