config/accessibility_journeys/README.md
This directory contains YAML configuration files for generating accessibility test boilerplates for golden user journeys. Each YAML file represents one golden user journey and maps to multiple E2E test files that collectively represent that journey. The generator script reads these configs and produces comprehensive accessibility test boilerplates.
Files should be named: [STAGE]_[JOURNEY_NAME].yml
Examples:
create_writing_code.ymlcreate_reviewing_code.ymlplan_managing_issues.yml# Required fields
stage: create # Stage name (create, plan, verify, etc.)
journey_name: writing_code # Journey name (snake_case)
feature_category: source_code_management # Feature category for RSpec metadata
description: "Brief description of this golden user journey"
# E2E test file mappings
e2e_test_files:
- path: qa/qa/specs/features/browser_ui/3_create/some_test_spec.rb
description: Short description of what this test covers
focus_area: Area Name # Used to group related tests in contexts
has_ui: true # Set to false for tests without UI to test
- path: qa/qa/specs/features/browser_ui/3_create/another_test_spec.rb
description: Another test description
focus_area: Area Name
has_ui: true
spec/features/['projects/files', 'projects/tree', 'work_items/issues']Each entry in e2e_test_files should have:
true if the test exercises UI that can be checked with axefalse for backend/API tests or git operations without UIThe focus_area field is used to organize related E2E tests into context blocks in the generated spec. Tests with the same focus_area are grouped together.
Examples of good focus areas:
Tests with has_ui: false are automatically filtered out by the generator script. Use this to mark:
Create a YAML configuration for your golden journey:
cp config/accessibility_journeys/_template.yml config/accessibility_journeys/plan_managing_issues.yml
Edit the YAML file with your journey details and E2E test mappings (see structure above)
Run the generator:
ruby scripts/generate_accessibility_spec.rb plan_managing_issues.yml
Review the generated spec at spec/features/accessibility/[stage]/[journey_name]_spec.rb
has_ui: false)focus_areaspec/features/accessibility/[STAGE]/[JOURNEY_NAME]_spec.rb_template.yml.has_ui: false