Testf from IP to localhost. Fixed some tests.
This commit is contained in:
@@ -6,7 +6,7 @@ import { test, expect } from '@playwright/test';
|
||||
test.describe('I. Core & Authentication', () => {
|
||||
test('A. Login - First-Time Password Change', async ({ page }) => {
|
||||
// 1. Navigate to the login page.
|
||||
await page.goto('http://192.168.50.234:3000/');
|
||||
await page.goto('http://localhost:3000/');
|
||||
|
||||
// Log in as admin to create a new user for testing first-time login
|
||||
await page.getByRole('textbox', { name: 'user@gymflow.ai' }).fill('admin@gymflow.ai');
|
||||
@@ -40,7 +40,8 @@ test.describe('I. Core & Authentication', () => {
|
||||
// Expected Results:
|
||||
// - New password is set successfully.
|
||||
// - User is logged into the application.
|
||||
await expect(page).toHaveURL('http://192.168.50.234:3000/#/tracker');
|
||||
await page.waitForLoadState('networkidle');
|
||||
await expect(page.getByRole('button', { name: 'Tracker' })).toBeVisible();
|
||||
// - No error messages are displayed.
|
||||
await expect(page.locator('text=Invalid credentials')).not.toBeVisible();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user