Testing alerts on inputs - issue #3788

Alerts on form inputs aren't being read on voiceover. These are tests with current problem and possible solution. Originally tested on Voiceover Safari Version 14.0 (15610.1.28.1.9, 15610)

Current

Helpful error message
Select any valid file Display a helpful error message

Proposed

Removing role attribute from spans in alert. Gov.uk does something like this in their file input →

Helpful error message
Select any valid file Display a helpful error message

Here we removed the role and updated the aria-describedby attribute.