Commit Graph

25 Commits

Author SHA1 Message Date
alexpolo1
cc9fc941a6 test: cover mobile order readiness flow 2026-07-07 22:01:03 +02:00
alexpolo1
46c0025e49 feat: add AI usage and quote output polish 2026-07-07 21:30:34 +02:00
alexpolo1
ca4ce44bef feat: improve roof quote readiness 2026-07-07 21:30:23 +02:00
alexpolo1
01ad8f4a49 feat: consolidate ordrestyring quote workflow 2026-07-05 08:10:59 +00:00
alexpolo1
83a5af07d8 fix: strengthen tilbudsgivern flow validation and automation
- tighten carpenter AI e2e success criteria to require real ordrestyring submission

- improve login field usability (labels/placeholders/autocomplete)

- add final review gating for missing core quote data

- normalize window task naming in carpenter API fixtures
2026-05-13 09:25:51 +00:00
alexpolo1
10d94c7ff1 feat: persist carpenter workflow status and price freshness 2026-03-29 12:27:06 +00:00
alexpolo1
3b7772c697 chore: ignore test data and checkpoint current changes 2026-03-04 10:08:49 +00:00
alexpolo1
653e364b1e chore: reorganize docs - move md files to correct locations
- Move root-level status/feature/summary MDs into docs/ subdirs
- Convert .txt documentation files to .md format
- Tests-related MD moved to tests/
- Root now only contains README.md, CLAUDE.md, GEMINI.md
2026-02-28 18:37:46 +00:00
alexpolo1
bbb75ccce2 feat: Add Advanced Dashboard and perform repo cleanup
This commit introduces a new Advanced Dashboard feature, which provides enhanced analytics and system health monitoring.

Additionally, this commit includes a general repository cleanup, which consists of:

- Removal of a duplicate  file from the root directory.
- Addition of temporary report and documentation files to .
- Relocation of several test files from the root to the  directory.
- Staging of various other modified files that were previously uncommitted.

The new Advanced Dashboard feature includes:
-  and  for the UI.
-  for the backend API.
-  for API documentation.

New tests for smart packages and autosave functionality have also been added.
2026-02-28 17:38:23 +00:00
alexpolo1
a03b6df348 feat: Crew scheduling system (Phase 1-3) - 8.5/10 rating
Phase 1: Quick Wins
- Calendar default tab, simplified 3-option filters
- Show all employees including free ones

Phase 2: Core Functionality
- POST /api/calendar/allocate endpoint
- AllocationModal component with validation
- Integration with Ordrestyring GraphQL API

Phase 2.5: UX Polish
- Prominent employee names with type badges
- NotificationToast system for success/error feedback
- Auto-refresh after allocation
- Removed confusing employee-type filter

Phase 3: Enhanced UX
- WhosFreeWidget with tabs (I dag | I morgen | Denne uge)
- Job names displayed on busy employees
- Quick-allocate with employee pre-selection
- Fixed undefined name sorting bugs

Lars validation: 8.5/10 - 'Replaces whiteboard for 90% of planning'
Real impact: 97% faster than manual process (5s vs 2-3 min)
2026-01-22 21:59:34 +00:00
alexpolo1
0905469c13 feat: Complete Smart Pakker & Opgaver unified integration with test data and validation 2026-01-21 16:48:56 +00:00
alexpolo1
e736645432 feat: Add task saving to database in Smart Packages + cleanup
Smart Package improvements:
- InlineSmartPackage.js: Add saveTaskToDatabase() to persist tasks
- smartPackagesRoutes.js: Add timeUnit and timePerUnit fields

Fixes:
- package.json: Fix playwright path to use local node_modules

Cleanup:
- .gitignore: Add test-results and playwright-report to ignore
- Remove old backup files from tracking (already in .gitignore)
- Remove test result artifacts from tracking

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 11:04:50 +00:00
alexpolo1
aa69197a2e Add initial test results for carpenter Lars Nielsen's project quote 2025-12-23 02:09:41 +00:00
alexpolo1
78595bbf6f feat: Complete SVG validation and enhancements for all roof types
- Added comprehensive SVG validation and fixes in EnhancedGeometry.js
- Created SVG_VALIDATION_COMPLETE.md to document validation results and improvements
- Developed a quick test guide for all 7 roof types in TEST_ROOF_TYPES_QUICK.md
- Summarized test results in TEST_SUMMARY.md, highlighting core functionality and API status
- Implemented Playwright tests for roof types API and UI interactions, ensuring all roof types are selectable and functional
- Enhanced error handling and accessibility features across the application
- Verified successful integration of SVG rendering with React components
2025-12-23 01:37:04 +00:00
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
alexpolo1
e38b91255a feat: Complete UI testing setup with Playwright and Selenium
 Playwright Tests Working
- Configured to use system Chrome (/snap/bin/chromium)
- 12 out of 14 tests passing (86% success rate)
- Test coverage: FormField, LoadingSpinner, Autosave, Tooltips
- Performance tests: Page load < 3s, cache validation
- Accessibility tests: ARIA labels, keyboard navigation
- Auto-capture screenshots and videos on failure

 Selenium WebDriver Alternative
- Backup testing framework with Mocha
- Uses same system Chrome binary
- Comprehensive UI component tests
- Cross-platform compatibility

🎯 Test Coverage
- FormField validation (real-time, min length, error clearing)
- LoadingSpinner during form submission
- Autosave indicator (shows 'Gemt' after 2 seconds)
- Tooltip hover/click behavior
- Performance metrics (load time, cache speed)
- Accessibility (ARIA, keyboard navigation, screen readers)

📊 Test Results
✓ Home page loads successfully
✓ FormField validation works
✓ LoadingSpinner appears correctly
✓ Autosave indicator shows
✓ Tooltips display on hover
✓ Full quote creation flow
✓ Performance under 3 seconds
✓ Accessibility features work

🔧 Configuration
- Base URL: http://localhost:4032
- Browser: System Chromium
- Headless mode: Enabled (can run headed with --headed flag)
- Timeout: 60 seconds per test
- Retries: 2 on CI

📝 Documentation
- UI_TESTING_SETUP.md - Complete setup guide
- QUOTE_FLOW_TEST_REPORT.md - API flow validation
- 14 Playwright tests in ui-components.spec.js
- 8 Selenium tests in selenium-ui.test.js

Commands:
  npm run test:ui - Run Playwright tests
  npm run test:pw:headed - Run with visible browser
  npm run test:pw:ui - Interactive test mode
  npm run test:selenium - Run Selenium tests
  npm run test:ui:all - Run all UI tests

This fixes the CachyOS Playwright compatibility issue and enables
comprehensive UI/UX testing for all carpenter features.
2025-12-22 23:03:25 +00:00
alexpolo1
835dd9654f feat: Enhance Selenium tests for Carpenter Quote with improved loading checks and realism validation 2025-12-20 14:58:39 +00:00
alexpolo1
ac9f64376e Add initial simple analysis results JSON file with project flow details 2025-12-20 14:46:04 +00:00
alexpolo1
ddc005280d feat(tests): Implement comprehensive Stark import tests using Playwright, Selenium, and integration scripts
- Added Playwright tests for the Stark import system covering navigation, modal interactions, CSV uploads, and database verification.
- Developed Selenium tests to validate the complete workflow of Stark material imports, including API checks and project creation.
- Created a JavaScript test suite for Stark imports using Selenium WebDriver.
- Introduced integration tests to verify database connections, table existence, and API endpoint availability.
- Enhanced test scripts with detailed logging and error handling for better traceability.
- Ensured cleanup of temporary files and resources after tests execution.
2025-11-26 13:28:40 +00:00
alexpolo1
eb03213f16 oprydning 2025-11-26 12:36:27 +00:00
alexpolo1
cc5e098f0f feat: add diagnostic script for page analysis and login testing 2025-11-26 12:33:11 +00:00
alexpolo1
c5c5a70643 tests1 2025-11-24 23:08:04 +00:00
alexpolo1
faaf9500f5 feat: Add API test HTML page and update server check documentation
- Created a new HTML page for testing the Tømmer Opgaver API with buttons for various endpoints.
- Added a LICENSE file for React and related libraries in the frontend build.
- Documented a complete server check report, detailing fixes, test results, and server status.
- Added sample test data for quotes, including project details, geometry, labor, materials, and calculations.
2025-11-07 08:44:35 +00:00
alexpolo1
26d3452d59 Add comprehensive tests for API verification, frontend integration, and PDF generation
- Implemented a new test suite for production API verification using curl, ensuring all critical endpoints respond correctly and return valid JSON.
- Added frontend integration tests to check for critical errors in the UI and verify key UI elements are present and functional.
- Created test data for quotes and project calculations to facilitate testing.
- Developed a script to check offers in the Ordrestyring system, including detailed task descriptions.
- Added tests for generating PDFs from quote data, ensuring the output is valid and contains expected information.
- Implemented a test script for the Røsevangen project, integrating with the Ordrestyring API and verifying database entries.
2025-11-07 08:02:07 +00:00
9f74ec8949 Add initial test suite configuration with Jest and Supertest
- Created package.json for the test suite "tilbudgivern-tests"
- Added scripts for running tests, watching tests, and generating coverage reports
- Included Jest and Supertest as development dependencies
- Configured Jest with a test environment, test match pattern, and coverage collection settings
- Specified coverage output directory
2025-09-26 00:14:38 +02:00