Skip to content

Test/student accessibility#4865

Open
adityapandey4621 wants to merge 5 commits into
JhaSourav07:mainfrom
adityapandey4621:test/student-accessibility
Open

Test/student accessibility#4865
adityapandey4621 wants to merge 5 commits into
JhaSourav07:mainfrom
adityapandey4621:test/student-accessibility

Conversation

@adityapandey4621
Copy link
Copy Markdown
Contributor

Description

Adds isolated unit and integration testing targeting the StudentProfile type definition, explicitly focusing on Accessibility Standards & Screen Reader Aria Compliance. Because the underlying file strictly exports type and interface contracts rather than rendering native HTML components, a simulated StudentAccessibleView proxy component was constructed inside the test scope. This proxy ingests a standard StudentProfile mock and dynamically maps the data shapes (names, emails, usernames) into robust ARIA DOM interfaces for compliance verification.

Implementation details:

  • Inspected markup mapping the passed student properties directly to native semantic elements, enforcing aria-labelledby and aria-describedby coordinate precision around the rendered values.
  • Asserted interactive DOM nodes (simulating profile navigation toggles) maintain visibility through explicit focus:outline-2 outline behaviors.
  • Verified custom accessibility-specific tooltip labels successfully wrap the dynamic student.name strings and announce aria-hidden="false" when exposed.
  • Leveraged @testing-library/user-event to enforce predictable and trap-free keyboard control paths mimicking typical tab ordering across interactive profiles.
  • Confirmed heading sequences accurately represent standard semantic layout mapping.
  • Validated via 5 newly written test cases passing gracefully through vitest.

Fixes #4653

Pillar

  • 🎨 Pillar 1 — New Theme Design
  • 📐 Pillar 2 — Geometric SVG Improvement
  • 🕐 Pillar 3 — Timezone Logic Optimization
  • 🛠️ Other (Bug fix, refactoring, docs, testing)

Visual Preview

N/A (Test-only change verifying ARIA mappings for type structures)

Checklist before requesting a review:

  • I have read the CONTRIBUTING.md file.
  • I have tested these changes locally (localhost:3000/api/streak?user=YOUR_USERNAME) (N/A).
  • I have run npm run format and npm run lint locally and resolved all errors (CI will fail otherwise).
  • My commits follow the Conventional Commits format (e.g., feat(themes): ..., fix(calculate): ...).
  • I have updated README.md if I added a new theme or URL parameter (N/A).
  • I have started the repo.
  • I have made sure that I have only one commit to merge in this PR.
  • The SVG output matches the CommitPulse "premium quality" aesthetic standard (no raw elements, smooth animations, correct fonts) (N/A).
  • (Recommended) I joined the CommitPulse Discord community for contributor discussions, mentorship, and faster PR support.

@github-actions github-actions Bot added the status:blocked This PR is blocked due to a failing CI check. label Jun 7, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 7, 2026

🚨 Hey @adityapandey4621, the CI Pipeline is failing on this PR and it has been marked as status:blocked.

Please fix the issues before this can be reviewed. Here's how:

1. Run checks locally before pushing:

npm run format:check   # Check Prettier formatting
npm run lint           # Run ESLint
npm run typecheck      # TypeScript type check
npm run test           # Run unit tests (Vitest)
npm run build          # Verify production build passes

2. Auto-fix common issues:

npm run format         # Auto-fix formatting with Prettier
npm run lint -- --fix  # Auto-fix lint errors where possible

3. Check the full failure log here:
👉 View CI Run

Once you push a fix and the CI passes, the status:blocked label will be removed automatically. 💪

@adityapandey4621 adityapandey4621 force-pushed the test/student-accessibility branch from 9f5ff3e to 464e034 Compare June 7, 2026 19:07
@github-actions github-actions Bot removed the status:blocked This PR is blocked due to a failing CI check. label Jun 7, 2026
@adityapandey4621 adityapandey4621 force-pushed the test/student-accessibility branch from 464e034 to b451cfe Compare June 7, 2026 19:46
@github-actions github-actions Bot added the status:blocked This PR is blocked due to a failing CI check. label Jun 7, 2026
@adityapandey4621 adityapandey4621 force-pushed the test/student-accessibility branch from 5c6c93a to 1e57c1d Compare June 7, 2026 20:03
@github-actions github-actions Bot removed the status:blocked This PR is blocked due to a failing CI check. label Jun 7, 2026
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.

test(student-accessibility): verify Accessibility Standards & Screen Reader Aria Compliance (Variation 4)

1 participant