You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to retain some non-style attributes like <img src=x>, <img alt=x>, and <div aria-labelledby> etc in the snapshot?
Why
Arguably the test for these things could be done with more specialised tools, like testing-library for example, but having it retained in the snapshot is a quick way to increase coverage, so that we can at least pick up accidental changes without having to explicitly code for it.
Possible Implementation & Open Questions
How long is a piece of string? Where do we draw the limits of what gets retained/discarded?
Is this something you're interested in working on?
Yes, happy to create a PR if I knew where/how to make the change.
The text was updated successfully, but these errors were encountered:
As far as alt text and aria attributes I feel it belongs in another tool. I've thought since building this that a sister tool for snapshotting and normalizing the a11y tree would be great. Eg it should normalize <label>, aria-label etc. I've wanted to build this "audible-html" for a while but just haven't had the time.
Description
Would it be possible to retain some non-style attributes like
<img src=x>
,<img alt=x>
, and<div aria-labelledby>
etc in the snapshot?Why
Arguably the test for these things could be done with more specialised tools, like
testing-library
for example, but having it retained in the snapshot is a quick way to increase coverage, so that we can at least pick up accidental changes without having to explicitly code for it.Possible Implementation & Open Questions
How long is a piece of string? Where do we draw the limits of what gets retained/discarded?
Is this something you're interested in working on?
Yes, happy to create a PR if I knew where/how to make the change.
The text was updated successfully, but these errors were encountered: