我正在使用辅助功能插件+量角器。量角器 - 辅助功能测试结果 - 分析结果
如下所列,我在运行一些烟雾测试后发现了一些可访问性错误,而且我不确定,如果在E2E测试期间在每个网页上实际执行可访问性审核。
由于我是新手,在E2E测试期间导航到新网页后,请告知是否有任何方法触发辅助功能审核。
端到端的测试$咕噜量角器:websiteSmokeTests --website = “https://开头测试网站/”
运行 “量角器:websiteSmokeTests”(量角器)任务使用 硒服务器在http://localhost:4444/wd/hub [启动]运行的webdriver的
网站首页的功能
首页1个 实例 - 检查无效的搜索返回0结果 - 通过
检查管理员工具 - BingSiteAuth和谷歌 - 通过
站长工具 - 检查robots.txt的 - 通过网站的onpage反馈功能
检查上的文章页面反馈 - 给否 - 通过在28.875秒8次测试,101个断言,0失败
插件成品:0(拆卸) 铬A11Y - 该元件不支持ARIA角色,状态和属性 铬A11Y - 如果所有权属于DOM,则不应使用咏叹调所有权Chrome A11Y - 具有ARIA角色的元素必须在正确的范围内 Chrome A11Y - 音频元素应具有控件 Chrome A11Y - 此元素具有无效的ARIA属性 Chrome A11Y - ARIA状态和属性值必须是有效的
2 elements failed: <div id="cookie-notice" class="notification" aria-describedby="cookieinfo"> <div class="cont ... " id="close-cookie-notification" class="close-notification">Close</button> </div> </div> <div id="decommissioned-site-notice" class="notification strong hidden" aria-describedby="decommissi ... -site-notification"
类= “关闭通知”>关闭
https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#ax_aria_04 Chrome A11Y - Elements with ARIA roles must use a valid, non-abstract ARIA role Chrome A11Y - Controls and media elements should have labels Chrome A11Y - An element's ID must be unique in the DOM Chrome A11Y - (WARNING) These elements are focusable but either invisible or obscured by another element (10 elements failed) Chrome A11Y - The web page should have the content's human language indicated in the markup Chrome A11Y - Images should have an alt attribute Chrome A11Y - (WARNING) The purpose of each link should be clear from the link text (3 elements failed) Chrome A11Y - (WARNING) Text elements should have a reasonable contrast ratio (4 elements failed) Chrome A11Y - role=main should only appear on significant elements Chrome A11Y - Meaningful images should not be used in element backgrounds Chrome A11Y - An element's ID must not be present in more that one aria-owns attribute at any time Chrome A11Y - ARIA attributes which refer to other elements by ID should refer to elements which exist in the DOM 2 elements failed: <div id="cookie-notice" class="notification" aria-describedby="cookieinfo"> <div class="cont ... " id="close-cookie-notification" class="close-notification">Close</button> </div> </div> <div id="decommissioned-site-notice" class="notification strong hidden" aria-describedby="decommissi ... -site-notification"
类= “关闭通知”>关闭
https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#ax_aria_02 Chrome A11Y - This element has an unsupported ARIA attribute 2 elements failed: <div id="cookie-notice" class="notification" aria-describedby="cookieinfo"> <div class="cont ... " id="close-cookie-notification" class="close-notification">Close</button> </div> </div> <div id="decommissioned-site-notice" class="notification strong hidden" aria-describedby="decommissi ... -site-notification"
类= “关闭通知”>关闭
https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#ax_aria_10 Chrome A11Y - Video elements should use <track> elements to provide captions [launcher] 0 instance(s) of WebDriver still running
[发射]铬#1失败4试验(s)实施发射]总体:4失败 规格(S )[启动程序]进程退出,出现错误代码1
测试失败,但保持grunt进程活着。
完成,没有错误。