• May Lippert's avatar
    Expose regulatory info to the screen reader. · e2b0ae2f
    May Lippert authored
    The img tag for the regulatory info contains role="presentation" which
    makes the screen reader skip the alt tag. This tag was originally added
    because the a11y tests were failing
    (https://chromium-review.googlesource.com/c/chromium/src/+/1345127).
    
    The original issue of test failures was actually because regulatory
    info is asynchronously filled in, so when the page is loaded,
    regulatoryInfo_.text which is used as the alt tag is empty. This makes
    the a11y tests fail since it expects a non empty string as the value.
    
    This change fixes the tests by setting the regulatory info text through
    the fake browser proxy, and removes the role="presentation" tag since
    it's not needed anymore to make the tests pass.
    
    BUG=950842
    
    Change-Id: I136456fab06c15b9d13f0d7827f251062d242c25
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1653085Reviewed-by: default avatarHector Carmona <hcarmona@chromium.org>
    Commit-Queue: May Lippert <maybelle@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#668468}
    e2b0ae2f
cr_settings_browsertest.js 66 KB