Monday, April 20, 2026

Add automated tests for the pending coach connections message shown to parents

Add automated tests for the pending coach connections message shown to parents

Canadian Elite Volleyball Academy — Development Update • April 20, 2026

--- title: Add automated tests for the pending coach connections message shown to parents ---

Add automated tests for the pending coach connections message shown to parents

## What & Why Task #99 added a message ("No approved coach connections yet. A coach connection is pending review by the academy.") shown to parents when all of their child's coach connections are in PENDING status. There are no automated tests covering this new empty state, so regressions could go undetected.

## Done looks like - E2e test verifies that when a parent views an athlete summary with only PENDING coach connections, the "text-no-approved-coach-connections" message is displayed - E2e test verifies that when there are genuinely zero connections, the original "text-no-coach-connections" message appears instead - Tests cover the Coach Connections card visibility in both scenarios

## Relevant files - client/src/pages/athlete-summary (lines 1091–1110 — the conditional message block) - server/routes/community (lines 1444–1474 — hasPendingCoachConnections logic)

Canadian Elite Volleyball Academy
elitevolleyball.training

No comments:

Post a Comment