Skip to content

feat: Enable one-theme a11y tests#4636

Draft
at-susie wants to merge 2 commits into
mainfrom
onetheme/enable-onetheme-a11y
Draft

feat: Enable one-theme a11y tests#4636
at-susie wants to merge 2 commits into
mainfrom
onetheme/enable-onetheme-a11y

Conversation

@at-susie

Copy link
Copy Markdown
Member

Description

This PR enable one-theme a11y tests.

Related links, issue #, if available: n/a

How has this been tested?

Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

function urlFormatter(inputUrl: string, mode: Mode) {
return `#/${mode}/${inputUrl}`;
function urlFormatter(inputUrl: string, mode: Mode, theme: Theme) {
const params = theme === 'one-theme' ? '?oneTheme=true' : '';

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.

Should we have a param like this instead: theme=one-theme or theme=visual-refresh?

import A11yPageObject from './a11y-page-object';

type Theme = 'visual-refresh';
type Theme = 'visual-refresh' | 'one-theme';

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.

I am not sure if this will work right now, as one theme is gated behind INCLUDE_ONE_THEME=true... I'll have a look too.

@codecov

codecov Bot commented Jun 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.52%. Comparing base (583d882) to head (e2cf036).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4636   +/-   ##
=======================================
  Coverage   97.51%   97.52%           
=======================================
  Files         948      948           
  Lines       30357    30363    +6     
  Branches    11077    11077           
=======================================
+ Hits        29604    29610    +6     
  Misses        706      706           
  Partials       47       47           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

2 participants