Skip to content

Conversation

@margaree
Copy link
Contributor

@margaree margaree commented Nov 13, 2025

Jira task

These seem generally useful to me, especially for regression prevention and just to double check assumptions.

@github-actions
Copy link
Contributor

Thanks for the PR! 🎉

We've deployed an automatic preview for this PR - you can see your changes here:

URL https://live.d2l.dev/prs/BrightspaceUI/core/pr-6300/

Note

The build needs to finish before your changes are deployed.
Changes to the PR will automatically update the instance.


});

describe('properties', () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These could arguably be moved into the axe file

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think these disabled tests are adequately covered by the event testing and visual-diff? I much prefer testing the public API rather than inspecting internals. For the aria-label and title, do the aXe tests effectively cover the requirement? All these tests that reference elements in the shadowDOM are subject to break when we change the internals. That's something we would typically aim to avoid - maybe CoPilot wouldn't suggest it because of context, but we definitely would not want consumers inspecting these elements for any reason.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the vdiff and event tests don't specifically test the button having the disabled attribute directly applied, which is not something specifically detectable by those tests. I do agree we want to avoid digging into the shadowDOM unnecessarily.

For the title and aria-label tests, I just ran the axe tests without both of those and they do fail, and then they pass if one is present, so I'll remove that test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants