-
Notifications
You must be signed in to change notification settings - Fork 779
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible regression in 'region' landmark assessment rule #2047
Comments
Currently trying to reproduce this problem in a development environment, by editing the region-pass.html test fixture and using the |
There's a possibility that this is an incorrect issue report on my behalf. After replacing the contents of the region-pass.html test fixture with the This makes me wonder if the true issue lies within the This test rendering approach hasn't changed recently in |
For reference - the HTML output used to replace the region-pass.html content during development testing is visible here. |
This issue is related to #1980 |
Interesting. We didn't really change how the check works but mostly how it reported the error. As you said, running on the HTML output by itself doesn't report a region rule violation, so I'm very curious what's going on. I tried wrapping the output of the HTML report inside another |
What's strange to me is the output of the errors in CLI. The code should find the outermost element that isn't in a landmark, but the HTML sources for those errors is not reporting outermost elements. Instead of Edit: Ah, there's a |
Thanks for taking a look. A little extra bit of info - when I revert the selector back from Just catching up on the |
The As for the selector, the only reason it was changed was to avoid looking at and Would it be possible to capture the output of the test HTML output before the assert is run on it? I'd like to see what exactly axe is running against (I know it should be what we've already looked at, but that should be passing). |
Here's my initial attempt at including the HTML output - I used One caveat is that I think there's some dynamic content introduced into the page by Edit: zipfile removed in favour of gist |
Could you past the output into a codeblock tag or upload to codepen/pastebin? Sorry, I try not to open zip files |
Yep, no problem - that's a sensible policy. I've uploaded it to https://gist.github.com/jayaddison/1a465b0ad0b3300439151fc2e1e5ab13 . Your note made me double-check myself and so there is technically one difference from the original zip contents; I've pasted in the Google Chrome / Apache 2.0 licensing comment and doctype tag preceding the opening HTML tag. |
Alright, I think I see where the problem may be. The test is appending the output of renderReport to the <body>
<div class="lh-topbar">...</div>
<div class="lh-container">
<div class="lh-sticky-header">...</div>
<div></div>
<div class="lh-report">...</div>
</div>
</body> As to why this is a new failure I'm not sure. My only guess is since the However, I believe this is a true failure based on the output alone of renderReport. |
Thanks again @straker - yep, after making some small adjustments (particularly this one to ensure that content rendered for the In other words, this does seem like a true positive and Either way, this issue seems resolved so I'll go ahead and close it. |
Expectation:
As part of the test suite for Google Chrome's
lighthouse
project, an accessibility self-test is performed usingaxe-core
on the HTML report which the application generates.From manual inspection, the HTML assessed by the test does seem to adhere to the practices documented in the ARIA landmark authoring guidelines.
The test passes as expected when using
axe-core
3.4.1.Actual:
After upgrading to
axe-core
3.5.1, the accessibility self-test fails (refs: comment, build logs).Motivation:
This appears to be a false-positive and that's the main motivation for raising the issue. In addition it temporarily blocks
lighthouse
from upgrading toaxe-core
3.5.1 (or would require a reduction inlighthouse
's test coverage in order to upgrade).The text was updated successfully, but these errors were encountered: