Workout Management tests done

This commit is contained in:
AG
2025-12-09 18:11:55 +02:00
parent f32661d892
commit 2352ac04d6
14 changed files with 557 additions and 67 deletions

View File

@@ -369,8 +369,10 @@ Comprehensive test plan for the GymFlow web application, covering authentication
**File:** `tests/workout-tracking.spec.ts`
**Steps:**
1. Log in as a regular user with a weight set in their profile.
2. Navigate to the 'Tracker' section (Idle View).
1. Log in as a regular user.
2. Change weight in profile to '75.5'.
3. Navigate to the 'Tracker' section (Idle View).
4. Ensure the 'My Weight' field defaults to '75.5'.
**Expected Results:**
- The 'My Weight' field in the Idle View defaults to the weight specified in the user's profile.
@@ -397,14 +399,15 @@ Comprehensive test plan for the GymFlow web application, covering authentication
**Steps:**
1. Start a 'Free Workout' session.
2. Select a Bodyweight exercise (e.g., 'Pull-up').
3. Enter 'Weight' (e.g., '10') and 'Reps' (e.g., '8').
4. Verify 'Body Weight Percentage' defaults to '100'.
3. Enter 'Weight' as positive (e.g., '10') and verify. Then enter negative (e.g. '-30') and verify.
4. Enter 'Reps' (e.g., '8').
5. Click 'Log Set'.
**Expected Results:**
- The set is added to the session history.
- Input fields are cleared.
- Body weight percentage is used in calculations.
- Displayed weight includes sign: `+10 kg` or `-30 kg`.
- No error messages are displayed.
#### 3.6. C. Active Session - Log Cardio Set
@@ -558,21 +561,7 @@ Comprehensive test plan for the GymFlow web application, covering authentication
**Expected Results:**
- Each set is logged with the correct specific metric (Height, Distance, Duration, etc.).
#### 3.16. C. Active Session - Smart Plan Matching
**File:** `tests/workout-tracking.spec.ts`
**Steps:**
1. Start a Plan with 2 exercises (Ex A, Ex B).
2. Log a set for Ex A (matching plan). Verify it counts towards plan progress.
3. Manually search and select Ex B (skipping Ex A).
4. Log a set for Ex B.
**Expected Results:**
- The system detects the mismatch or allows it.
- If "Smart Matching" is strict, it might warn or just log it as an extra set.
- If "Smart Matching" is flexible, it might advance progress for Ex B (depending on spec).
- *Assumption based on Requirements*: "System attempts to match... activeExerciseId returned". Verify the UI updates focus to the relevant step if matched.
### 4. IV. Data & Progress