FloatingLabelTextFieldSwiftUI icon indicating copy to clipboard operation
FloatingLabelTextFieldSwiftUI copied to clipboard

UI Test Case for FloatingLabelTextField

Open kaushik-orangeapp opened this issue 2 years ago • 0 comments

How can i give accessibilityIdentifier to text field, because if i add accessibilityIdentifier to FloatingLabelTextField it did not work with UI Test Case

Example:

FloatingLabelTextField($firstName, placeholder: "First Name", editingChanged: { (isChanged) in 
})
accessibilityIdentifier("firstname_textfield")

Than i code in Test Case

let firstnameTextField = app.textFields["firstname_textfield"]
        firstnameTextField.tap()
        firstnameTextField.typeText("test user")

in text field it is not typing "test user" can you please let me know how to make working in UI Test Case?

kaushik-orangeapp avatar May 05 '22 13:05 kaushik-orangeapp