UITests Fail To Present Modal Views on iPad
| Originator: | jaddyman | ||
| Number: | rdar://26244863 | Date Originated: | 12-May-2016 04:17 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 7.3.1 (7D1014) |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: When running an automated UI Test, if the test steps involve presenting a modal view controller, the presentation does not occur. Steps to Reproduce: In the attached project: 1. Ensure an iPad simulator is selected 2. Run the automated test named `testExample()` Expected Results: The automated test should press the button titled "Show Modal", which should present a modal view controller. The test should then tap the button titled "Dismiss" and the test should complete as succeeded. Actual Results: The test does not indicate that it failed to find the button "Show Modal" nor does it indicate that it failed to tap the button. Despite there being no indication of these failures the modal view controller is not presented. The next step of the test fails, because the view controller was never presented, the "Dismiss" button cannot be found. The test fails with an error stating it was unable to find any buttons titled "Dismiss". Version: Xcode 7.3.1 (7D1014) OS X 10.11.4 (15E65) Notes: Configuration: Any iPad Simulator or Device. Xcode 7.3.1 (7D1014) Attachments: 'iPadTest.zip' was successfully uploaded.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Test project here: http://d.pr/f/1jqIO+