Make CellsGalleryImageUrlCellList test finish early if possible
authorE.Z. Hart <hartez@gmail.com>
Thu, 29 Dec 2016 16:18:35 +0000 (09:18 -0700)
committerE.Z. Hart <hartez@gmail.com>
Thu, 29 Dec 2016 16:18:35 +0000 (09:18 -0700)
Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-CellsUITests.cs

index ca275c8..4019a07 100644 (file)
@@ -121,6 +121,10 @@ namespace Xamarin.Forms.Core.UITests
                        {
                                await Task.Delay(1000);
                                numberOfImages = App.Query(q => q.Raw(PlatformViews.Image)).Length;
+                               if (numberOfImages > 2)
+                               {
+                                       break;
+                               }
                        }
 
                        // Check that there are images present. In Android,