Skip to content
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

Update incorrect tests #2915

Merged
merged 2 commits into from Jun 16, 2023
Merged

Conversation

ef4
Copy link
Contributor

@ef4 ef4 commented Jun 16, 2023

This builds off #2914.

I'm pretty sure these tests were incorrect and it was just hidden by the other bug.

The checkbox role does support aria-invalid. So I changed that one to button role, which does not.

Also, the menuitem element (not to be confused with the menuitem role) does not appear at all in the set of elementRoles from aria-query. So I changed that test to use <a role="menuitem"> instead. The menuitem element is deprecated and non-standard.

Also note that the "command" role is abstract and not supposed to be used by authors, which is why I replaced it with the "menuitem" role, which is one of the concrete children of "command".

bmish and others added 2 commits June 14, 2023 15:19
I'm pretty sure these tests were incorrect and it was just hidden by another bug.

The checkbox role *does* support aria-invalid. So I changed that one to button role, which does not.

Also, the menuitem element (not to be confused with the menuitem role) does not appear at all in the set of elementRoles from aria-query. So I changed that test to use `<a role="menuitem">` instead. The menuitem element is [deprecated and non-standard](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menuitem).
Copy link
Member

@bmish bmish left a comment

Choose a reason for hiding this comment

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

Awesome, thanks! Merging on top of my PR.

@bmish bmish removed the bug label Jun 16, 2023
@bmish bmish merged commit ceb2cd0 into ember-template-lint:master Jun 16, 2023
11 checks passed
@ef4 ef4 deleted the aria-query-crash branch June 16, 2023 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants