Some test fixes
This commit is contained in:
@@ -9,15 +9,16 @@ test.describe('I. Core & Authentication', () => {
|
||||
await page.goto('http://localhost:3000/');
|
||||
|
||||
// 2. Enter a valid email in the email field.
|
||||
await page.getByRole('textbox', { name: 'user@gymflow.ai' }).fill('admin@gymflow.ai');
|
||||
await page.locator('input[type="email"]').fill('admin@gymflow.ai');
|
||||
|
||||
// 3. Enter a valid password in the password field.
|
||||
await page.locator('input[type="password"]').fill('admin1234');
|
||||
await page.locator('input[type="password"]').fill('admin123');
|
||||
|
||||
// 4. Click the 'Login' button.
|
||||
await page.getByRole('button', { name: 'Login' }).click();
|
||||
|
||||
// Wait for navigation to complete
|
||||
await page.waitForURL('http://localhost:3000/tracker');
|
||||
await page.waitForLoadState('networkidle');
|
||||
|
||||
// Expected Results:
|
||||
|
||||
Reference in New Issue
Block a user