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

Dialogs: Add axe tests #4991

Merged
merged 1 commit into from
Sep 19, 2024
Merged

Dialogs: Add axe tests #4991

merged 1 commit into from
Sep 19, 2024

Conversation

margaree
Copy link
Contributor

Part of this Jira ticket

Adding axe tests prior to doing the work to make the dialog content container focusable if no focusable elements within it.

await expect(el).to.be.accessible();
});

it.skip('no title-text', async() => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We currently list title-text as optional, but it's an axe violation if not present on this and d2l-dialog (d2l-dialog-confirm uses text as backup). I've asked Jeff what he would recommend here.

await expect(el).to.be.accessible();
});

it.skip('tall content', async() => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the problem we want to address in the defect.

Copy link
Member

Choose a reason for hiding this comment

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

And presumably this test fails if it isn't skipped?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It does indeed!

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-4991/

Note

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

@margaree margaree marked this pull request as ready for review September 19, 2024 17:52
@margaree margaree requested a review from a team as a code owner September 19, 2024 17:52
@margaree margaree merged commit 2e978de into main Sep 19, 2024
6 checks passed
@margaree margaree deleted the dialogs-add-axe-tests branch September 19, 2024 18:53
Copy link

🎉 This PR is included in version 3.40.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

2 participants