diff options
author | E.Z. Hart <hartez@gmail.com> | 2016-12-28 16:42:17 -0700 |
---|---|---|
committer | E.Z. Hart <hartez@gmail.com> | 2016-12-28 16:42:17 -0700 |
commit | cf496381ce42bf458f66dc52c3504bf456d78579 (patch) | |
tree | f3e1ae023199dc5351ce304fd0c9dc409d465175 /Xamarin.Forms.Core.iOS.UITests/Tests | |
parent | 31397e59ccb8704f49e6f7e071424ab454489cfc (diff) | |
download | xamarin-forms-cf496381ce42bf458f66dc52c3504bf456d78579.tar.gz xamarin-forms-cf496381ce42bf458f66dc52c3504bf456d78579.tar.bz2 xamarin-forms-cf496381ce42bf458f66dc52c3504bf456d78579.zip |
Update ImageCellListPage to use an image we control;
Update CellsGalleryImageUrlCellList test to wait longer than 1s for images
to load if necessary
Diffstat (limited to 'Xamarin.Forms.Core.iOS.UITests/Tests')
-rw-r--r-- | Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-CellsUITests.cs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-CellsUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-CellsUITests.cs index 4d7ec9d0..ca275c81 100644 --- a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-CellsUITests.cs +++ b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-CellsUITests.cs @@ -113,8 +113,16 @@ namespace Xamarin.Forms.Core.UITests App.Screenshot("All ImageCells are present"); - await Task.Delay(1000); - var numberOfImages = App.Query(q => q.Raw(PlatformViews.Image)).Length; + int numberOfImages = 0; + + // Most of the time, 1 second is long enough to wait for the images to load, but depending on network conditions + // it may take longer + for (int n = 0; n < 30; n++) + { + await Task.Delay(1000); + numberOfImages = App.Query(q => q.Raw(PlatformViews.Image)).Length; + } + // Check that there are images present. In Android, // have to make sure that there are more than 2 for navigation. Assert.IsTrue(numberOfImages > 2); |