Some test fixes

This commit is contained in:
AG
2025-12-06 20:21:41 +02:00
parent 890f4f0958
commit cd0eef9ad6
23 changed files with 48 additions and 44 deletions

View File

@@ -7,8 +7,8 @@ test.describe('III. Workout Tracking', () => {
test('C. Active Session - Finish Session', async ({ page }) => {
// 1. Start a 'Free Workout' session.
await page.goto('http://localhost:3000/');
await page.getByRole('textbox', { name: 'user@gymflow.ai' }).fill('admin@gymflow.ai');
await page.locator('input[type="password"]').fill('admin1234');
await page.locator('input[type="email"]').fill('admin@gymflow.ai');
await page.locator('input[type="password"]').fill('admin123');
await page.getByRole('button', { name: 'Login' }).click();
await page.getByRole('spinbutton').fill('83');
@@ -17,8 +17,8 @@ test.describe('III. Workout Tracking', () => {
// 2. Log at least one set.
await page.getByRole('textbox', { name: '0' }).fill('Bench Press');
await page.getByRole('button', { name: 'Bench Press' }).click();
await page.getByPlaceholder('0').nth(1).fill('80');
await page.getByPlaceholder('0').nth(2).fill('5');
await page.getByRole('spinbutton').nth(1).fill('80');
await page.getByRole('spinbutton').nth(2).fill('5');
await page.getByRole('button', { name: 'Log Set' }).click();
// 3. Click 'Finish' button.