summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core.iOS.UITests/Tests/AutomationIDUITests.cs
diff options
context:
space:
mode:
authorE.Z. Hart <hartez@users.noreply.github.com>2016-11-15 16:52:20 (GMT)
committerGitHub <noreply@github.com>2016-11-15 16:52:20 (GMT)
commitd55799ce244229b8b42a9faae824dcaa907d1b99 (patch)
tree310ae0927d2e26c1addb0ac06d5e9ab2516972f7 /Xamarin.Forms.Core.iOS.UITests/Tests/AutomationIDUITests.cs
parentc45e034b475f61640669aa44566c9c052481626a (diff)
downloadxamarin-forms-d55799ce244229b8b42a9faae824dcaa907d1b99.zip
xamarin-forms-d55799ce244229b8b42a9faae824dcaa907d1b99.tar.gz
xamarin-forms-d55799ce244229b8b42a9faae824dcaa907d1b99.tar.bz2
Attempting to fix possible race conditions in Automation ID tests (#533)
Diffstat (limited to 'Xamarin.Forms.Core.iOS.UITests/Tests/AutomationIDUITests.cs')
-rw-r--r--Xamarin.Forms.Core.iOS.UITests/Tests/AutomationIDUITests.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/AutomationIDUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/AutomationIDUITests.cs
index 7746baf..d397900 100644
--- a/Xamarin.Forms.Core.iOS.UITests/Tests/AutomationIDUITests.cs
+++ b/Xamarin.Forms.Core.iOS.UITests/Tests/AutomationIDUITests.cs
@@ -18,8 +18,8 @@ namespace Xamarin.Forms.Core.UITests
[Test]
public void Test1 ()
{
+ App.WaitForElement(c => c.Marked("btnTest1"));
App.Tap (c => c.Marked ("btnTest1"));
- App.WaitForElement (c => c.Marked ("scrollMain"));
App.WaitForElement (c => c.Marked ("stckMain"));
App.WaitForElement (c => c.Marked ("actHello"));
App.WaitForElement (c => c.Marked ("bxvHello"));
@@ -43,6 +43,7 @@ namespace Xamarin.Forms.Core.UITests
[Test]
public void Test2 ()
{
+ App.WaitForElement(c => c.Marked("btnTest2"));
App.Tap (c => c.Marked ("btnTest2"));
App.WaitForElement (c => c.Marked ("imgHello"));
App.WaitForElement (c => c.Marked ("lstView"));