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 - Invalid Credentials', async ({ page }) => {
// 1. Navigate to the login page.
await page.goto('http://192.168.50.234:3000/');
await page.goto('http://localhost:3000/');
// 2. Enter an invalid email or password.
await page.getByRole('textbox', { name: 'user@gymflow.ai' }).fill('invalid@gymflow.ai');
@@ -19,6 +19,6 @@ test.describe('I. Core & Authentication', () => {
// - An error message 'Invalid credentials' or similar is displayed.
await expect(page.locator('text=Invalid credentials')).toBeVisible();
// - User remains on the login page.
await expect(page).toHaveURL('http://192.168.50.234:3000/#/login');
await expect(page).toHaveURL('http://localhost:3000/');
});
});