summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core.Android.UITests/PlatformTests/DisplayAlertUITestsAndroid.cs
blob: f00755766c9f219e2a69a380e48ecfb26e0b7e6e (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 ("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");
		}
	}
}