Skip to content

GAUD-10298 - Update d2l-page axe tests to test the entire page and fix landmark errors#7200

Merged
svanherk merged 5 commits into
mainfrom
GAUD-10298-Break-then-fix-axe-tests-for-d2l-page
Jul 13, 2026
Merged

GAUD-10298 - Update d2l-page axe tests to test the entire page and fix landmark errors#7200
svanherk merged 5 commits into
mainfrom
GAUD-10298-Break-then-fix-axe-tests-for-d2l-page

Conversation

@svanherk

@svanherk svanherk commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

First commit updates the axe tests to test the whole page. We don't usually want this, but since this is d2l-page we do, as it should be fully compliant as the only thing on the page. This then causes this error to show up:

All page content should be contained by landmarks (https://dequeuniversity.com/rules/axe/4.12/region?application=axeAPI)

Second commit rearranges d2l-page to fix that! Is a bit nicer to review with whitespace off.

@github-actions

Copy link
Copy Markdown
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-7200/

Note

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

@dlockhart dlockhart left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looking good!

Comment thread components/page/page.js Outdated
<div class="${classMap(footerContainerClasses)}" ?hidden="${!this._slotVisibility['footer']}">
<div
role="region"
aria-label="TO DO"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Seems like we landed on "Footer" here?

@svanherk svanherk marked this pull request as ready for review July 13, 2026 15:48
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@svanherk svanherk requested a review from a team as a code owner July 13, 2026 15:51
@svanherk svanherk merged commit 5453570 into main Jul 13, 2026
10 checks passed
@svanherk svanherk deleted the GAUD-10298-Break-then-fix-axe-tests-for-d2l-page branch July 13, 2026 17:10
@d2l-github-release-tokens

Copy link
Copy Markdown

🎉 This PR is included in version 3.270.0 🎉

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