- 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.
164 lines
4.0 KiB
JSON
164 lines
4.0 KiB
JSON
|
|
{
|
|
"project": {
|
|
"id": 53,
|
|
"name": "Tag Renovering - Villaen på Skolevej",
|
|
"customer": {
|
|
"name": "Erik Andersen",
|
|
"email": "[email protected]",
|
|
"phone": "40 12 34 56",
|
|
"address": "Skolevej 42, 8000 Aarhus"
|
|
},
|
|
"description": "Komplet tag renovering inkl. undertag, isolering, og nyt overtag.",
|
|
"status": "materials_pending",
|
|
"created": "2025-11-26T13:27:11Z",
|
|
"totalValue": 45716.00,
|
|
"currency": "DKK"
|
|
},
|
|
"materials": [
|
|
{
|
|
"id": 299,
|
|
"name": "Tagsten røde 265x165",
|
|
"sku": "BYGMA-BYGMA-1200",
|
|
"category": "Tagmaterialer",
|
|
"quantity": 150,
|
|
"unit": "m2",
|
|
"unitPrice": 89.50,
|
|
"totalPrice": 13425.00,
|
|
"supplier": "Bygma",
|
|
"source": "database",
|
|
"notes": "Ny tag - røde tagsten"
|
|
},
|
|
{
|
|
"id": 300,
|
|
"name": "Undertaksmembran 75m",
|
|
"sku": "BYGMA-BYGMA-1300",
|
|
"category": "Isolering",
|
|
"quantity": 2,
|
|
"unit": "roll",
|
|
"unitPrice": 485.00,
|
|
"totalPrice": 970.00,
|
|
"supplier": "Bygma",
|
|
"source": "database",
|
|
"notes": "Undertaksmembran mod fugtindtrængning"
|
|
},
|
|
{
|
|
"id": 301,
|
|
"name": "Isolering 150mm",
|
|
"sku": "STARK-2000",
|
|
"category": "Isolering",
|
|
"quantity": 150,
|
|
"unit": "m2",
|
|
"unitPrice": 125.00,
|
|
"totalPrice": 18750.00,
|
|
"supplier": "Stark A/S",
|
|
"source": "database",
|
|
"notes": "Tagissolering 150mm - Stark"
|
|
},
|
|
{
|
|
"id": 302,
|
|
"name": "Dampbremse PE 100m",
|
|
"sku": "BYGMA-BYGMA-1301",
|
|
"category": "Isolering",
|
|
"quantity": 2,
|
|
"unit": "roll",
|
|
"unitPrice": 125.50,
|
|
"totalPrice": 251.00,
|
|
"supplier": "Bygma",
|
|
"source": "database",
|
|
"notes": "Dampbremse fra inderside"
|
|
},
|
|
{
|
|
"id": 303,
|
|
"name": "Regugle 38x73",
|
|
"sku": "STARK-1001",
|
|
"category": "Materialer",
|
|
"quantity": 400,
|
|
"unit": "meter",
|
|
"unitPrice": 12.75,
|
|
"totalPrice": 5100.00,
|
|
"supplier": "Stark A/S",
|
|
"source": "database",
|
|
"notes": "Bærende regler til tagkonstruktion"
|
|
},
|
|
{
|
|
"id": 304,
|
|
"name": "Tagskrue 4.8x35",
|
|
"sku": "STARK-1500",
|
|
"category": "Beslag",
|
|
"quantity": 50,
|
|
"unit": "kg",
|
|
"unitPrice": 89.50,
|
|
"totalPrice": 4475.00,
|
|
"supplier": "Stark A/S",
|
|
"source": "database",
|
|
"notes": "Tagskruer til fastgøring af tagsten"
|
|
},
|
|
{
|
|
"id": 305,
|
|
"name": "Træbeslag 50x50",
|
|
"sku": "BYGMA-BYGMA-2100",
|
|
"category": "Beslag",
|
|
"quantity": 60,
|
|
"unit": "meter",
|
|
"unitPrice": 45.75,
|
|
"totalPrice": 2745.00,
|
|
"supplier": "Bygma",
|
|
"source": "database",
|
|
"notes": "Træbeslag til samling af konstruktion"
|
|
}
|
|
],
|
|
"summary": {
|
|
"totalItems": 7,
|
|
"totalSuppliers": 2,
|
|
"bySupplier": {
|
|
"Stark A/S": {
|
|
"items": 3,
|
|
"value": 28325.00,
|
|
"percentage": 61.95,
|
|
"materials": ["Isolering 150mm", "Regugle 38x73", "Tagskrue 4.8x35"]
|
|
},
|
|
"Bygma": {
|
|
"items": 4,
|
|
"value": 17391.00,
|
|
"percentage": 38.05,
|
|
"materials": ["Tagsten røde 265x165", "Undertaksmembran 75m", "Dampbremse PE 100m", "Træbeslag 50x50"]
|
|
}
|
|
},
|
|
"byCategory": {
|
|
"Tagmaterialer": {
|
|
"value": 13425.00,
|
|
"percentage": 29.35,
|
|
"items": 1
|
|
},
|
|
"Isolering": {
|
|
"value": 19971.00,
|
|
"percentage": 43.68,
|
|
"items": 3
|
|
},
|
|
"Materialer": {
|
|
"value": 5100.00,
|
|
"percentage": 11.15,
|
|
"items": 1
|
|
},
|
|
"Beslag": {
|
|
"value": 7220.00,
|
|
"percentage": 15.79,
|
|
"items": 2
|
|
}
|
|
}
|
|
},
|
|
"capabilities": {
|
|
"mixedSuppliers": true,
|
|
"automaticPricing": true,
|
|
"databaseTracking": true,
|
|
"systemIntegration": "Database synced - Ready for quote generation",
|
|
"nextSteps": [
|
|
"Work calculation",
|
|
"Quote generation",
|
|
"Customer approval",
|
|
"Order execution"
|
|
]
|
|
}
|
|
}
|