Files
tilbudgivern/package.json
T
alexpolo1 c4af45924c feat: Kør alle UI tests mod production environment
 Production Testing Setup
- Ændret Playwright baseURL til https://tilbudsgiveren.alw.dk
- Ændret Selenium baseURL til production
- Alle 14 UI tests kører nu mod live miljø
- Test resultater: 14/14 PASSED (100%)

🎯 Test Coverage på Production
✓ FormField validation virker i prod
✓ LoadingSpinner vises korrekt
✓ Autosave fungerer på live site
✓ Tooltips virker
✓ Performance < 3 sekunder
✓ Accessibility features fungerer
✓ ARIA labels korrekt implementeret
✓ Keyboard navigation virker

🔧 Nye Scripts
- test:pw - Kør Playwright mod production (default)
- test:pw:local - Kør mod localhost hvis nødvendigt
- test:selenium - Kør Selenium mod production
- test:selenium:local - Kør Selenium mod localhost

Nu tester vi samme miljø som kunderne bruger! 🚀
2025-12-22 23:21:26 +00:00

71 lines
2.6 KiB
JSON

{
"name": "tilbudgivern-unified",
"version": "1.0.0",
"description": "Unified Tilbudgivern application with frontend and backend",
"main": "unified-server.js",
"engines": {
"node": ">=18.0.0",
"npm": ">=9.0.0"
},
"scripts": {
"start": "node unified-server.js",
"dev": "nodemon unified-server.js",
"test-smart-packages": "node test-smart-packages-api.js",
"build": "cd frontend && npm run build && cd ..",
"test": "python3 selenium_test_suite.py",
"test-minimal": "python3 test_countdown_selenium_minimal.py",
"test-visual-ai": "python3 selenium_visual_ai_test.py",
"build-and-test": "npm run build && pm2 restart tilbudgivern-unified && sleep 3 && npm run test",
"quick-test": "npm run test-minimal",
"visual-qa": "npm run test-visual-ai",
"test:pw": "cd tests && PLAYWRIGHT_BASE_URL=https://tilbudsgiveren.alw.dk playwright test",
"test:pw:ui": "cd tests && PLAYWRIGHT_BASE_URL=https://tilbudsgiveren.alw.dk playwright test --ui",
"test:pw:headed": "cd tests && PLAYWRIGHT_BASE_URL=https://tilbudsgiveren.alw.dk playwright test --headed",
"test:pw:report": "cd tests && playwright show-report",
"test:pw:debug": "cd tests && PLAYWRIGHT_BASE_URL=https://tilbudsgiveren.alw.dk playwright test --debug",
"test:pw:local": "cd tests && PLAYWRIGHT_BASE_URL=http://localhost:4032 playwright test",
"test:selenium": "SELENIUM_BASE_URL=https://tilbudsgiveren.alw.dk mocha tests/selenium-ui.test.js --timeout 60000",
"test:selenium:local": "SELENIUM_BASE_URL=http://localhost:4032 mocha tests/selenium-ui.test.js --timeout 60000",
"test:ui": "npm run test:pw",
"test:ui:all": "npm run test:pw && npm run test:selenium"
},
"dependencies": {
"axios": "^1.12.2",
"bcrypt": "^5.1.1",
"cors": "^2.8.5",
"csv-parser": "^3.2.0",
"dotenv": "^16.6.1",
"express": "^4.18.2",
"graphql": "^16.11.0",
"graphql-request": "^7.3.1",
"html-pdf-node": "^1.0.8",
"joi": "^17.11.0",
"jsonwebtoken": "^9.0.2",
"multer": "^1.4.5-lts.1",
"mysql2": "^3.6.5",
"nodemon": "^3.0.2",
"openai": "^4.20.1",
"pdf-parse": "^1.1.1",
"puppeteer": "^24.21.0",
"socket.io": "^4.8.1",
"sqlite3": "^5.1.7",
"tesseract.js": "^5.0.4",
"winston": "^3.11.0"
},
"keywords": [
"tilbudgivern",
"ai",
"quotes",
"construction"
],
"author": "Alex",
"license": "MIT",
"devDependencies": {
"@playwright/test": "^1.56.1",
"chromedriver": "^137.0.0",
"mocha": "^11.7.5",
"react-scripts": "^5.0.1",
"selenium-webdriver": "^4.33.0"
}
}