summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core.Android.UITests/PlatformTests/DisplayAlertUITestsAndroid.cs
blob: d5acb5ca00717f57f7e3456b9a66ddf827eadd7d (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
using System;
using NUnit.Framework;

namespace Xamarin.Forms.Core.UITests
{
	[TestFixture]
	[Category(UITestCategories.DisplayAlert)]
	internal class DisplayAlertUITestsAndroid : BaseTestFixture
	{

		protected override void NavigateToGallery ()
		{
			App.NavigateToGallery (GalleryQueries.DisplayAlertGallery);
		}
			
		[Test]
		public void TestTapOff ()
		{
			App.Tap (c => c.Marked ("Alert Override2"));
			App.Screenshot ("Display Alert");
			App.TapCoordinates (100, 100);
			App.WaitForElement (c => c.Marked ("Result: False"));
			App.Screenshot ("Alert Dismissed");
		}
	}
}