feat: Frontend CSS refactoring and test improvements

Frontend:
- Refactored CSS architecture with new utility classes
- Updated dashboard components styling
- Improved responsive grid system
- Enhanced typography and variables
- Updated E2E and integration tests

Added:
- Claude Code slash commands for validation
- SSH tunnel and start test scripts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-21 21:08:47 +02:00
parent 05fc705fe5
commit 12ac2b671e
58 changed files with 7783 additions and 3539 deletions

View File

@@ -5,9 +5,8 @@
*/
import { test, expect } from '@playwright/test';
import {
authenticateWithRealCredentials,
getRealCompanies,
import {
authenticateWithRealCredentials,
selectCompany,
REAL_CREDENTIALS,
API_ENDPOINTS
@@ -64,7 +63,7 @@ test.describe('Oracle Cross-Schema Data Consistency', () => {
// Additional Oracle-specific fields that might be present
const oracleFields = ['cui', 'reg_com', 'adresa', 'telefon', 'email'];
oracleFields.forEach(field => {
if (romfast.hasOwnProperty(field)) {
if (Object.prototype.hasOwnProperty.call(romfast, field)) {
console.log(` Oracle field '${field}' present:`, romfast[field]);
}
});

View File

@@ -6,11 +6,9 @@
import { test, expect } from '@playwright/test';
import { API_ENDPOINTS } from '../../utils/real-auth.js';
import {
import {
setupConsoleCapture,
assertNoCriticalErrors,
generateErrorReport,
PerformanceBaselines,
assertPerformanceBaseline
} from '../../utils/console-monitor.js';
@@ -400,7 +398,7 @@ test.describe('Backend Health Monitoring', () => {
expect(degradationRatio).toBeLessThan(1.5);
// All cycles should maintain good success rates
resourceMetrics.forEach((metric, index) => {
resourceMetrics.forEach((metric) => {
expect(metric.successCount).toBeGreaterThan(2); // At least 3/4 operations successful
});

View File

@@ -5,16 +5,15 @@
*/
import { test, expect } from '@playwright/test';
import {
authenticateWithRealCredentials,
import {
authenticateWithRealCredentials,
selectCompany,
REAL_CREDENTIALS
} from '../../utils/real-auth.js';
import {
import {
setupConsoleCapture,
ErrorClassifier,
generateErrorReport,
assertNoCriticalErrors
generateErrorReport
} from '../../utils/console-monitor.js';
test.describe('Console Error Pattern Analysis', () => {
@@ -173,7 +172,7 @@ test.describe('Console Error Pattern Analysis', () => {
// Analyze recurring patterns
console.log('🔍 Error Frequency Analysis:');
const recurringIssues = Object.entries(errorFrequencies)
.filter(([pattern, count]) => count > 2)
.filter(([_pattern, count]) => count > 2)
.sort((a, b) => b[1] - a[1]);
if (recurringIssues.length > 0) {

View File

@@ -24,8 +24,8 @@ test.describe('Performance Regression Testing', () => {
});
test.afterEach(async ({ page }) => {
const report = generateErrorReport(page, test.info().title);
generateErrorReport(page, test.info().title);
// Log performance metrics from the test
if (page.performanceMetrics?.apiCalls?.length > 0) {
const avgApiTime = page.performanceMetrics.apiCalls

View File

@@ -3,10 +3,10 @@
* Ensures SSH tunnel and backend services are running
*/
import path from 'path';
import { fileURLToPath } from 'url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
// import path from 'path';
// import { fileURLToPath } from 'url';
// const __filename = fileURLToPath(import.meta.url);
// const __dirname = path.dirname(__filename);
export default async function globalSetup() {
console.log('🔧 Setting up real API integration test environment...');

View File

@@ -5,18 +5,15 @@
*/
import { test, expect } from '@playwright/test';
import {
authenticateWithRealCredentials,
import {
authenticateWithRealCredentials,
selectCompany,
getRealCompanies,
REAL_CREDENTIALS,
API_ENDPOINTS
REAL_CREDENTIALS
} from '../../utils/real-auth.js';
import {
import {
setupConsoleCapture,
assertNoCriticalErrors,
generateErrorReport,
PerformanceMonitor,
PerformanceBaselines,
assertPerformanceBaseline
} from '../../utils/console-monitor.js';