Preparation display when start plan from Plans

This commit is contained in:
AG
2025-12-11 22:16:28 +02:00
parent 138fe0c432
commit e9142d1e1c
5 changed files with 53 additions and 2 deletions

View File

@@ -187,6 +187,13 @@ test.describe('Rest Timer', () => {
// Start the plan.
await page.getByRole('button', { name: 'Start' }).click();
// Expect Preparation Modal
const modal = page.locator('.fixed.inset-0.z-50');
await expect(modal).toBeVisible();
await expect(modal.getByText('Ready to go')).toBeVisible();
// Click Start in the modal (ensure we click the button inside the modal)
await modal.getByRole('button', { name: 'Start' }).click();
// Timer Update: Click FAB
const fab = page.locator('.fixed.bottom-24.right-6');
await fab.click();

View File

@@ -196,6 +196,13 @@ test.describe('II. Workout Management', () => {
.last();
await card.getByRole('button', { name: 'Start' }).click();
// Expect Preparation Modal
const modal = page.locator('.fixed.inset-0.z-50');
await expect(modal).toBeVisible();
await expect(modal.getByText('Ready to go')).toBeVisible();
// Click Start in the modal (ensure we click the button inside the modal)
await modal.getByRole('button', { name: 'Start' }).click();
await expect(page.getByText('Startable Plan', { exact: false })).toBeVisible();
await expect(page.getByRole('button', { name: 'Finish' })).toBeVisible();
});