Preparation display when start plan from Plans
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user