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('V. User & System Management', () => {
test('A. User Profile - Delete Own Account', async ({ page }) => {
// Prerequisite: Create a regular user for this test.
await page.goto('http://192.168.50.234:3000/');
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.getByRole('button', { name: 'Login' }).click();
@@ -38,6 +38,7 @@ test.describe('V. User & System Management', () => {
// Expected Results:
// - User account is deleted.
// - User is logged out and redirected to the login page.
await expect(page).toHaveURL('http://192.168.50.234:3000/#/login');
await page.waitForLoadState('networkidle');
await expect(page.getByRole('button', { name: 'Login' })).toBeVisible();
});
});