Recording a tap on a UIElement with multiple lines of text produces non-functional testing code

Originator:bruno
Number:rdar://21328058 Date Originated:2015-06-10
Status:Open Resolved:
Product:Xcode Product Version:Version 7.0 beta (7A120f)
Classification:Serious Bug Reproducible:Always
 
Summary:
When recording for a UI Test, tapping on a UILabel with multiple lines of text produces non-functional code, which doesn't compile.

Steps to Reproduce:
1. Open project.
2. Navigate to UITestingRecordingWithLabelUITests.swift
3. Record a new test. 
4. In Simulator, tap on the label with the 'Lorem Ipsum…' text.

Expected Results:
One line of code that simulates a tap on the label should be produced. Code still compiles.

Actual Results:
Multiple lines of code are produced (see screenshot), most of which have no effect, and cause compiler errors.

Version:
Version 7.0 beta (7A120f)

Notes:


Configuration:


Attachments:
'UITestingRecordingWithLabel.zip' was successfully uploaded.

Comments

Resolved in Xcode 7 Beta 3.

Still going strong in Xcode 7 Beta 2.

Sample project

https://github.com/SpacyRicochet/UITestingRecordingWithLabel


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!