summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorE.Z. Hart <hartez@users.noreply.github.com>2016-11-15 09:52:20 -0700
committerGitHub <noreply@github.com>2016-11-15 09:52:20 -0700
commitd55799ce244229b8b42a9faae824dcaa907d1b99 (patch)
tree310ae0927d2e26c1addb0ac06d5e9ab2516972f7
parentc45e034b475f61640669aa44566c9c052481626a (diff)
downloadxamarin-forms-d55799ce244229b8b42a9faae824dcaa907d1b99.tar.gz
xamarin-forms-d55799ce244229b8b42a9faae824dcaa907d1b99.tar.bz2
xamarin-forms-d55799ce244229b8b42a9faae824dcaa907d1b99.zip
Attempting to fix possible race conditions in Automation ID tests (#533)
-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 7746bafa..d397900b 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"));