Days off workouts on Tracker view

This commit is contained in:
AG
2025-12-13 19:40:40 +02:00
parent dbb4beb56d
commit 003c045621
9 changed files with 145 additions and 4 deletions

View File

@@ -504,4 +504,19 @@ test.describe('III. Workout Tracking', () => {
await expect(page.getByText('50 kg x 1 reps')).toBeVisible();
});
test('3.17 B. Idle State - Days Off Training Logic', async ({ page, createUniqueUser }) => {
const user = await loginAndSetup(page, createUniqueUser);
// 1. New User: Should see "Do your very first workout today."
await expect(page.getByText('Do your very first workout today.')).toBeVisible();
// 2. Complete a workout
await page.getByRole('button', { name: /Free Workout|Start Empty/i }).click();
await page.getByRole('button', { name: 'Finish' }).click();
await page.getByRole('button', { name: 'Confirm' }).click();
// 3. Should now see "Last workout: Today"
await expect(page.getByText('Last workout: Today')).toBeVisible();
});
});