google/EarlGrey

grey_setPickerColumnToValue action does not work for SwiftUI Picker

ileon12 opened this issue · 1 comments

Hello!
When trying to select a determined value on a SwiftUI Picker wheel using grey_setPickerColumnToValue(), I get the following error:

"UIPickerView does not contain desired value!"

Even though the value does exist on the picker.

You can use this sample to reproduce

Xcode: 13.2.1
Device: iPhone 7 plus (iOS 15.1)

Appreciate any help.

This is related to issue #1679. The existing matchers in EarlGrey work for UIKit views only and I can't figure out right now how to write custom actions and matchers for SwiftUI views.