IGListKit/Examples/Examples-iOS/IGListKitExamples-UITests
Tim Oliver ce09fad401 Harden iOS UI tests to catch potential infinite loops
Summary:
During testing, I noticed some of the UI tests would hang, and the runner would spin for hours.

I'm not sure if this was due to any code changes I made to the sample apps, or if it was just a general change in Xcode 15, but I discovered that some of the UI tests were using a for loop to 'flick' the screen until a UI element came on screen. For whatever reason, the for loop exit condition stopped working, and so now the test was stuck in an infinite loop.

This diff changes the exit condition so it properly works now, and also adds a maximum number of allowed 'flicks' just to absolutely guarantee an infinite loop isn't possible.

Reviewed By: fethica

Differential Revision: D50294913

fbshipit-source-id: 77b789e45cc935735b13192843aa80f512dbd7d8
2023-10-13 22:50:38 -07:00
..
DemosViewControllerUITests.swift Harden iOS UI tests to catch potential infinite loops 2023-10-13 22:50:38 -07:00
Info.plist Update deployment targets to silence Xcode 14 warnings (#1573) 2023-05-01 22:48:23 -07:00
LoadMoreViewControllerUITests.swift Harden iOS UI tests to catch potential infinite loops 2023-10-13 22:50:38 -07:00
MixedDataViewControllerUITests.swift Standarize the copyright notice in all source files 2023-04-06 02:44:16 -07:00
SearchViewControllerUITests.swift Standarize the copyright notice in all source files 2023-04-06 02:44:16 -07:00
UITestCase.swift Standarize the copyright notice in all source files 2023-04-06 02:44:16 -07:00