AI Plan Generation. Clear button sets focus

This commit is contained in:
AG
2025-12-15 22:46:04 +02:00
parent 854eda98d2
commit c275804fbc
9 changed files with 542 additions and 9 deletions

View File

@@ -333,6 +333,38 @@ Comprehensive test plan for the GymFlow web application, covering authentication
**Expected Results:**
- All exercises are created successfully with their respective types.
#### 2.14. A. Workout Plans - Create Plan with AI
**File:** `tests/workout-management.spec.ts`
**Steps:**
1. Log in as a regular user.
2. Navigate to the 'Plans' section.
3. Click the '+' FAB button.
4. Select 'With AI' option.
5. In the AI Side Sheet, enter a prompt (e.g., 'Create a short leg workout with lunges').
6. Click 'Generate'.
7. Wait for the AI response.
**Expected Results:**
- A new plan is created and appears in the plans list.
- If 'Lunges' did not exist in the user's exercise library, it is created automatically.
- The plan contains the exercises described in the prompt.
#### 2.15. B. Tracker - Empty State AI Prompt
**File:** `tests/workout-management.spec.ts`
**Steps:**
1. Log in as a regular user with no existing plans.
2. Navigate to the 'Tracker' section (Idle View).
3. Verify the placeholder message "No workout plans yet." is displayed.
4. Click the "Ask your AI coach to create one" link.
**Expected Results:**
- User is navigated to the Plans view.
- The AI Side Sheet is automatically opened.
### 3. III. Workout Tracking
**Seed:** `tests/workout-tracking.spec.ts`