[TIMOB-27498] iOS: Intermittent UI Layout test failures
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2019-12-03T16:11:44.000+0000 |
| Affected Version/s | Release 8.2.1 |
| Fix Version/s | n/a |
| Components | iOS |
| Labels | n/a |
| Reporter | Christopher Williams |
| Assignee | Samuel Haig |
| Created | 2019-10-24T18:02:18.000+0000 |
| Updated | 2019-12-03T16:11:44.000+0000 |
Description
We are seeing intermittent UI Layout test failures. Specifically here's a failure from a build: https://jenkins.appcelerator.org/job/titanium-sdk/job/titanium_mobile/job/8_2_X/46/testReport/
The test failures are variants of a test around TIMOB-23372, and expect a post layout event to have a rect with an x property equal to 10 (the left padding). Sometimes this event fires with a value of 9.
This appears to be related to simulators being created by our appium suite?
Failures:
Building for iOS Simulator: appiumTest-63D0910A-9E17-4437-AF50-781E3BCBC590-iPhone 7
Building for iOS Simulator: appiumTest-C4E4A63F-7A15-4130-A574-6E7FA5B5D620-iPhone 7
Passed:
Building for iOS Simulator: iPhone 11 Pro Max
Building for iOS Simulator: iPhone 11 Pro Max
It may be a rounding issue for devices using an odd value for the total physical width. We had those issues especially with percent-based calculations and fixed it manually by rounding either up or down consistently. Maybe it helps guiding into the right direction.
Closing.