I am getting this UI Testing error when I try to adjust the month-year calendar in new compact date picker.
Assertions: Assertion Failure at ***.swift:4: Unsupported picker wheel "2020" PickerWheel of type 6
My code is
let compactDatePicker = self.app.descendants(matching: .any)["Date Picker"]
compactDatePicker.tap()
self.app.buttons["Show year picker"].tap()
self.app.pickerWheels.element(boundBy: 1).adjust(toPickerWheelValue: "2020")
self.app.pickerWheels.element(boundBy: 0).adjust(toPickerWheelValue: "September")
self.app.buttons["Hide year picker"].tap()
let calendarDateButton = self.app.buttons.containing(NSPredicate(format: "label CONTAINS '%d %@'", 27, "September")
calendarDateButton.tap()
self.app.swipeDown()
I have no idea what this error means. I am just guessing this should be a bug in Xcode 12.0.
Anyone can help me to have a look on this?