Testf from IP to localhost. Fixed some tests.

This commit is contained in:
AG
2025-11-30 20:41:11 +02:00
parent 5e92cc9a7a
commit 5363cc1e03
52 changed files with 3665 additions and 53 deletions

View File

@@ -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();
});