New exercise name autofill. Log Set button animation.
This commit is contained in:
@@ -400,7 +400,7 @@ test.describe('III. Workout Tracking', () => {
|
||||
// Helper to log a set
|
||||
const logSet = async (side: 'L' | 'R' | 'A') => {
|
||||
// Find the logger container (has 'Log Set' button)
|
||||
const logger = page.locator('div').filter({ has: page.getByRole('button', { name: /Log Set/i }) }).last();
|
||||
const logger = page.locator('div').filter({ has: page.getByRole('button', { name: /Log Set|Saved/i }) }).last();
|
||||
await expect(logger).toBeVisible();
|
||||
|
||||
// Select side
|
||||
@@ -416,7 +416,7 @@ test.describe('III. Workout Tracking', () => {
|
||||
// Reps - handle potential multiples if strict, but scoped should be unique
|
||||
await logger.getByLabel('Reps').fill('10');
|
||||
|
||||
await logger.getByRole('button', { name: /Log Set/i }).click();
|
||||
await logger.getByRole('button', { name: /Log Set|Saved/i }).click();
|
||||
};
|
||||
|
||||
// Log Left (L)
|
||||
|
||||
Reference in New Issue
Block a user