summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-ViewCellUITests.cs
blob: 1dcc0de6ec7bd8e103daa4f42b1d91d1c0d6e6c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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");
//		}

	}
}