Requirements and Test plan updated

This commit is contained in:
AG
2025-12-15 21:00:00 +02:00
parent 170e32d36c
commit 854eda98d2
2 changed files with 26 additions and 0 deletions

View File

@@ -971,6 +971,22 @@ Comprehensive test plan for the GymFlow web application, covering authentication
- The user is permanently removed from the system. - The user is permanently removed from the system.
- The user no longer appears in the user list. - The user no longer appears in the user list.
#### 5.13. A. Default Exercises - Creation on Signup
**File:** `tests/default-exercises.spec.ts`
**Steps:**
1. Register a NEW user via API or UI.
2. Log in as that user.
3. Navigate to Profile -> Exercise Manager (or query API).
4. Verify the list of exercises.
**Expected Results:**
- The user has a pre-populated list of exercises (e.g., Push-Ups, Squats, Sprint).
- The exercises match the configuration in `server/default_exercises.csv`.
- Properties like `type` and `isUnilateral` are correctly set.
### 6. VI. User Interface & Experience ### 6. VI. User Interface & Experience
**Seed:** `tests/ui-ux.spec.ts` **Seed:** `tests/ui-ux.spec.ts`

View File

@@ -42,6 +42,16 @@ The system relies on JWT-based authentication.
* Dates are handled as ISO strings or timestamps. * Dates are handled as ISO strings or timestamps.
### 3.2. Workout Management (Plans) ### 3.2. Workout Management (Plans)
* **3.1.5 Default Exercises (Seeding)**
* **Concept**: New users are initialized with a set of default exercises.
* **Configuration**:
* The file path is defined by `DEFAULT_EXERCISES_CSV_PATH` in `.env`.
* Format: CSV (`name`, `type`, `bodyWeightPercentage`, `isUnilateral`).
* **Logic**:
* Upon successful registration (3.1.2), the system reads the CSV.
* It creates `Exercise` records in the DB linked to the new user.
* Failure to read/parse the CSV is non-blocking (logs an error but allows user creation).
Users can structure their training via Plans. Users can structure their training via Plans.
* **3.2.1 Plan Creation/Editing** * **3.2.1 Plan Creation/Editing**