QA Test: Automated Attendance Creation

Date: May 6, 2025

This series of tests verifies the functionality of automated attendance creation.


1. POST /tasks

Test A: Create Task with TaskType = HR Requirement

HR Requirement task creation

Expected: No attendance records are created.
Result: Confirmed. ✅


Test B: Create Task with TaskType = Take Attendance

Take Attendance task creation

Expected: Attendance records are automatically created and returned.
Result: Confirmed. ✅


2. PATCH /tasks/{taskId}

Test A: Change Task Type from “HR Requirement” to “Take Attendance”

Patch to Take Attendance

Expected: Attendance records are created and returned.
Result: Confirmed. ✅


Test B: Change Task Type from “Take Attendance” to “HR Requirement”

Patch back to HR Requirement

Expected: No new attendance records are created or returned.
Result: Confirmed. ✅ ⚠️ Note: Attendance records previously created still exist in the database.


3. GET /tasks/{taskId}

Test A: Retrieve Task with TaskType = HR Requirement

GET HR Requirement task

Expected: No attendance records are attached.
Result: Confirmed. ✅


Test B: Retrieve Task with TaskType = Take Attendance

GET Take Attendance task

Expected: Attendance records are returned.
Result: Confirmed. ✅


Test C: Update Attendance Record and Retrieve Task

Update the first record’s Attended field to true using Workbench, then retrieve the task again.

Update attendance in Workbench GET task after update

Expected: Updated attendance records are returned, with Attended = true.
Result: Confirmed. ✅


Test D: Delete Attendance Record and Retrieve Task

Delete the first attendance record (a0lcX000000fta2QAA) and retrieve the task again.

Delete attendance record GET task after deletion

Expected: The deleted attendance record is recreated.
Result: Confirmed. ✅


4. POST /sessions?createAttendances=True

Test A: Create Session with createAttendances=False

Create session without attendances

Expected: No attendance records are created.
Result: Confirmed. ✅


Test B: Create Session with createAttendances=True

Create session with attendances

Expected: Attendance records are created.
Result: Confirmed. ✅


5. GET /coach/{coachId}/teamseasons/{teamSeasonId}/sessions/{sessionId}/attendances

Test A: Retrieve Existing Attendance Records

GET session attendances

Expected: Existing attendance records are returned.
Result: Confirmed. ✅


Test B: Enroll New Student and Retrieve Attendances Again

  1. Create a new contact.
  2. Enroll the contact into the team season.
  3. Retrieve attendances again.

New student enrollment New student enrollment continued Attendance record for new student

Expected: A new attendance record is created for the newly enrolled student.
Result: Confirmed. ✅