summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-TableViewUITests.cs
blob: 1f1dd0129cc6be4694c6cfd623f76a79c0f0dd1f (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
63
64
65
66
67
68
69
70
71
72
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");
//		}

	}
}