summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core.iOS.UITests/Tests/AppearingUITests.cs
blob: 568663abb47423dd16d96590d30cb47de3dd3005 (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 NUnit.Framework;

namespace Xamarin.Forms.Core.UITests
{
#if __MACOS__
	[Ignore("Not tested on the MAC")]
#endif
	[Category(UITestCategories.LifeCycle)]
	internal class AppearingUITests : BaseTestFixture
	{
		public AppearingUITests()
		{
		}

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

		protected override void TestTearDown()
		{
			base.TestTearDown();
			ResetApp();
			NavigateToGallery();
		}

		[Test]
		public void AppearingNavigationPage ()
		{
			App.Tap (t => t.Marked ("NavAppearingPage"));
			App.WaitForElement ("Appearing NavAppearingPage");
			App.WaitForElement ("Appearing Page 1");
			App.Tap (t => t.Marked ("Push new Page"));
			App.WaitForElement ("Disappearing Page 1");
			App.WaitForElement ("Appearing Page 2");
			App.Tap (t => t.Marked ("Change Main Page"));
			App.WaitForElement ("Disappearing Page 2");
			App.WaitForElement ("Disappearing NavAppearingPage");
			App.WaitForElement ("Appearing Page 3");
		}


		[Test]
		public void AppearingCarouselPage ()
		{
			App.Tap (t => t.Marked ("CarouselAppearingPage"));
			App.WaitForElement ("Appearing CarouselAppearingPage");
			App.WaitForElement ("Appearing Page 1");

		}

		[Test]
		public void AppearingTabbedPage ()
		{
			App.Tap (t => t.Marked ("TabbedAppearingPage"));
			App.WaitForElement ("Appearing TabbedAppearingPage");
			App.WaitForElement ("Appearing Page 1");

		}

		[Test]
		public void AppearingMasterDetailPage ()
		{
			App.Tap (t => t.Marked ("MasterAppearingPage"));
			App.WaitForElement ("Appearing MasterAppearingPage");
			App.WaitForElement ("Appearing Page 1");

		}
	}
}