Posts

Post not yet marked as solved
1 Replies
547 Views
Posting this here for visibility. Already opened a bug report but maybe this helps other developers. In our app we use AVSpeechSynthesizer to speak navigation directions. Our Dutch users notice that many of the utterances glitch, where it seems to speak a random '-' in-between the text. This is reproducible by simply speaking this text on a Dutch AVSpeechSynthesisVoice: "Over 300 meter houd rechts aan richting Breda." (which means "In 300 meters, keep right towards Breda."). It glitches on the word 'aan'. Reproducible only on-device, as the Xcode simulator doesn't seem to have this issue. Tested on iOS 14.4 and 14.6, where both have this issue. The issue is very obvious to hear. Texts that also have this issue: "Over 900 meter houd rechts aan en blijf op Muntweg." "Houd rechts aan." Reproducible on-device with the following code: // This is Dutch for "In 300 meters, keep right towards Breda." let reproducableSpeakText = "Over 300 meter houd rechts aan richting Breda." let speechUtterance = AVSpeechUtterance(string: reproducableSpeakText) // Configure a Dutch voice let dutchVoice = AVSpeechSynthesisVoice(language: "nl-NL") speechUtterance.voice = dutchVoice // Speak the text synthesizer.speak(speechUtterance)
Posted Last updated
.
Post marked as solved
1 Replies
803 Views
When I normally write UI Tests, I query for a button by usingapp.buttons["accessibilityIdentifier"].firstMatchHowever, when I want to do the same for a similar button that is on screen, I cannot get it to work. This button is inside of a simple UIView container that is added to an MKMapView by usingmap.addSubView(popupWithButtonView)How would I interact with this buton in my UI Test?I have tried the following, without success:app.buttons["trueButton"].firstMatch app.maps.element.buttons["trueButton"].firstMatch app.maps.buttons["trueButton"].firstMatchThe accessibilityIdentifier is set correctly, as when the popup normally occurs when debugging, I can see it with the 'Debug View Hiearchy' tool. Any idea what the right way is to query for this button?
Posted Last updated
.