Problem/Motivation

The theme has no test suite at all: no tests directory, no feature files, no Cucumber config. Accessibility regressions in the theme are only caught downstream in Varbase Starter, after they ship.

Proposed resolution

Add a Varbase functional testing suite (@vardot/varbase-e2e 2.0.7, Playwright plus Cucumber-js) covering the accessibility of the pages the theme renders: the page shell and landmarks, component accessible names, axe impact gates, accessibility rules pinned by name, and the hero slider target size.

Keep the suite self-contained under tests/ with its own package.json and cucumber.js, so the theme yarn build toolchain is untouched. Add CI stages that build a Varbase 11 host carrying the Varbase Starter site template, rendering through the checked-out theme, and drive the suite against it.

Remaining tasks

  • ✅ File an issue
  • ✅ Addition/Change/Update/Fix
  • ✅ Testing to ensure no regression
  • ✅ Automated unit/functional testing coverage
  • ➖ Developer Documentation support
  • ➖ User Guide Documentation support
  • ➖ UX/UI designer responsibilities
  • ✅ Accessibility and Readability
  • ❌ Reviewed by a human
  • ❌ Code review by maintainers
  • ❌ Full testing and approval
  • ❌ Credit contributors
  • ❌ Review with the product owner
  • ✅ Update Release Notes
  • ✅ Release

Three findings stand on the site today. The suite reports them rather than gating on them, and each needs its own issue:

  • --bs-primary (#0d6efd) on its own --bs-secondary-bg-subtle (#f3f1ef) is 3.99:1, where WCAG AA asks 4.5:1.
  • The not found page renders no heading at all.
  • The site search field is exposed with a placeholder and no label.

AI-Generated: Yes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rajab natshah created an issue. See original summary.

  • rajab natshah committed 1b7bcada on 5.0.x
    test: #3625575 Add the accessibility functional testing suite and the CI...
rajab natshah’s picture

Version: 5.0.x-dev » 5.0.5
Issue summary: View changes
Status: Active » Fixed

✅ Released vartheme_bs5-5.0.5

50 scenarios over 266 steps, green on the tag pipeline.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.