summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-ToolbarGalleryUITests.cs
blob: ad00a191297a26c3e36280613e8391dcb419e489 (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
´╗┐using NUnit.Framework;
using Xamarin.UITest;

namespace Xamarin.Forms.Core.UITests
{
	[TestFixture]
	[Category ("ToolBar")]
	internal class ToolbarGalleryTests : BaseTestFixture
	{
		// TODO - Is there a ToolBar item limit, test image only toolbar item
		// TODO: Port to new conventions

		public ToolbarGalleryTests ()
		{
			ShouldResetPerFixture = false;
		}

		protected override void NavigateToGallery ()
		{
			App.NavigateToGallery (GalleryQueries.ToolbarGalleryLegacy);
		}

		//void AllElementsPresent ()
		//{
		//	var elements = new [] { "One", "Two", "Three", "Four", "Click the toolbar" };
		//	foreach (var element in elements)
		//		App.WaitForElement (q => q.Marked (element));

		//	App.Screenshot ("All elements exist");
		//}

		[Test]
		public void ToolbarGalleryToolbarAction ()
		{
		//	AllElementsPresent ();

		//	var elements = new [] { "One", "Two", "Three", "Four" };
		//	foreach (var element in elements) {
		//		App.Tap (q => q.Marked (element));
		//		App.WaitForElement (q => q.Marked ("Activated: " + element));
		//	}

		//	App.Screenshot ("Toolbar commands fire");
		}

/*******************************************************/
/**************** Landscape tests **********************/
/*******************************************************/
	
	}
}