AI Plan Generation. Clear button sets focus
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user